Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory - grc.conf #37

Open
natevw opened this issue May 21, 2015 · 20 comments
Open

No such file or directory - grc.conf #37

natevw opened this issue May 21, 2015 · 20 comments

Comments

@natevw
Copy link

natevw commented May 21, 2015

Getting this during the make install portion of the gnuradio build:

bradner:~ natevw$ brew install gnuradio --build-from-source
==> Installing gnuradio from metacollin/homebrew-gnuradio
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://gnuradio.org/releases/gnuradio/gnuradio-3.7.7.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/gnuradio-3.7.7.1.tar.gz
==> cmake .. -DCMAKE_PREFIX_PATH=/usr/local/Cellar/gnuradio/3.7.7.1 -DENABLE_DOXYGEN=Off -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ 
==> make
==> make install
Error: No such file or directory - /usr/local/Cellar/gnuradio/3.7.7.1/etc/gnuradio/conf.d/grc.conf

OS X Yosemite (10.10.3), using system Python via the instructions at end of readme. Any idea why I would encounter this?

@ajajack
Copy link

ajajack commented May 22, 2015

I just tried last night. I am actually having the same exact problem.

MacBook Pro (13-inch, Mid 2012)
2.5 GHz Intel Core i5
10.10.3 (14D136)

Homebrew environment with no packages already installed. Brew doctor is reporting no issues.

$ brew install gnuradio --build-from-source
==> Installing gnuradio from metacollin/homebrew-gnuradio
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://gnuradio.org/releases/gnuradio/gnuradio-3.7.7.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/gnuradio-3.7.7.1.tar.gz
==> cmake .. -DCMAKE_PREFIX_PATH=/usr/local/Cellar/gnuradio/3.7.7.1 -DENABLE_DOXYGEN=Off -DCMAKE_C_COMPILER=cla
==> make
==> make install
Error: No such file or directory - /usr/local/Cellar/gnuradio/3.7.7.1/etc/gnuradio/conf.d/grc.conf

I can share the build logs if that helps (~/Library/Homebrew/gnuradio). They are too big for paste bin.

@ajajack
Copy link

ajajack commented May 22, 2015

Here are my logs (~/Library/Homebrew/gnuradio)

https://drive.google.com/folderview?id=0BxYMKU982Qv9fmhkc19JTC1fR2Iya0VfT3RZZFNLd21BUFk0U1RneEJtX3VZS0FnaDZtMkk&usp=sharing

$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: af65291b57fa6646180cd88bbcc74760b3183884
Last commit: 13 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.10.3-x86_64
Xcode: 6.3.2
CLT: 6.3.2.0.1.1431401888
Clang: 6.1 build 602
X11: 2.7.7 => /opt/X11
System Ruby: 2.0.0-p481
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
Java: 1.8.0_25

@natevw
Copy link
Author

natevw commented May 23, 2015

Related? pengwynn/grc#3 (comment)

@natevw
Copy link
Author

natevw commented May 23, 2015

Not sure that previous comment is all that related, the main homebrew formula for grc now looks completely different. I did notice this:

$ brew info grc
grc: stable 1.9
http://korpus.juls.savba.sk/~garabik/software/grc.html
Conflicts with: cc65
/usr/local/Cellar/grc/1.9 (32 files, 148K) *
  Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/grc.rb
==> Caveats
New shell sessions will start using GRC after you add this to your profile:
  source "`brew --prefix`/etc/grc.bashrc"

…I've done that, and am now waiting for the whole make rebuild to see if it helps the make install not snatch defeat from the jaws of non-defeat.

@natevw
Copy link
Author

natevw commented May 23, 2015

Still waiting, but realizing that's probably a total red herring. The grc here probably refers to Gnu Radio Companion rather that that shell stylesheet thing.

@natevw
Copy link
Author

natevw commented May 23, 2015

Via the brew install -vd gnuradio --build-from-source it became apparent that the problem was not even in the make install part, but in the formula itself. Did a EDITOR=xed brew edit gnuradio and commented out the last three lines of the install block:

      system "cmake", "..", *args, *std_cmake_args
      system "make"
      system "make install"
#      inreplace "#{prefix}/etc/gnuradio/conf.d/grc.conf" do |s|
#        s.gsub! "#{prefix}/", "#{HOMEBREW_PREFIX}/"
#      end
    end
  end
end

I may end up needing to manually patch that file, wherever it actually is (and therefore have a better fix for the formula), but I'm not familiar enough with the gnuradio mess to know how to tell at this point. Onwards to gqrx!

@metacollin
Copy link
Owner

Hi, commenting out that line only seems to fix the problem. grc.conf should definitely exist, if it doesn't, that means gnuradio built but without gnuradio companion (the GUI interface).

Based on @ajajack's logs, at least in his case, pygtk is not being found by cmake for some reason. It is a dependency, so homebrew must think it is installed at least. Hmmmm. Everyone, this is a problem with cmake disabling gnuradio companion because it couldn't find one of several dependencies, and that shouldn't happen, so the logs I need from everyone is just the 01.cmake log. It may or may not be the same problem for everyone.

As for ajajack, can you make sure your installed pygtk is up to date and correctly installed? I am running the exact same versions of everything that you are, and it finds pygtk just fine on my system, so there is something weird going on. It does require a minimum version of pygtk, so the only lead I have right now is that its too old on your system. But that seems unlikely. If you could investigate, that would be helpful.

Everyone else, please include your ~/Library/Logs/Homebrew/gnuradio/01.cmake log, I'll see what is preventing grc from being enabled on your systems.

@metacollin
Copy link
Owner

Also, updating formula to do some checks to handle the lack of grc.conf more gracefully, though this would still cause an error in this situation. If the user intentionally builds with the --without-qt flag, then gnuradio companion should not be built, but that is at the request of the user. Otherwise, grc should be being built, and a missing grc is a problem and should cause an error.

@natevw
Copy link
Author

natevw commented May 26, 2015

Here's my log: https://gist.github.com/natevw/e77fe8eed0e597dff3d3

Looks like perhaps it's the PYGTK_FOUND = FALSE that disabled it in my case? When I brew list the pygtk package does appear to be installed…I'll try a brew uninstall pygtk && brew install pygtk --build-from-source and see if that changes anything.

@natevw
Copy link
Author

natevw commented May 26, 2015

Noticed this information when installing pygtk manually by itself:

==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/natevw/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/natevw/Library/Python/2.7/lib/python/site-packages/homebrew.pth

…so perhaps that was why it was not detected? Would it have been better to pip install pygtk instead?


UPDATE: after following the post-install instructions for the brew package of pygtk, the build of gnuradio is looking better already:

-- Configuring gnuradio-companion support...
--   Dependency ENABLE_GNURADIO_RUNTIME = ON
--   Dependency ENABLE_PYTHON = ON
--   Dependency PYTHON_MIN_VER_FOUND = TRUE
--   Dependency CHEETAH_FOUND = TRUE
--   Dependency LXML_FOUND = TRUE
--   Dependency PYGTK_FOUND = TRUE
--   Dependency NUMPY_FOUND = TRUE
--   Enabling gnuradio-companion support.
--   Override with -DENABLE_GRC=ON/OFF

@dsound-zz
Copy link

What were the "post install' instructions? I'm getting the same error.

Here's my config:

HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 735d8d9b6f4cc3b6dcf41e815ae86e2098ea2e2f
Last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.5-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
LLVM-GCC: build 2336
Clang: 5.1 build 503
X11: 2.7.7 => /opt/X11
System Ruby: 1.8.7-p358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.2.2/bin/ruby
Java: 1.6.0_65

and I get this error when I run gnuradio-companion

Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

@natevw
Copy link
Author

natevw commented May 26, 2015

If brew info pygtk shows the caveats in my last comment, you need to run the commands it says so it will be available to system Python.

I can confirm that making the brew-installed pygtk available did fix this formula's build for me and my system Python setup — so I would suggest either this important manual step needs to be added to the "Python woes" section of the readme here, or perhaps just pip install it would work?

@dsound-zz
Copy link

I get

Error: No available formula for pyqtk

I know it's installed. I did take my system Python in Frameworks and move
it to a temporary location because of the warning about conflicting Pythons
and Brew using it's own Python. Was that a wrong move?

When I try brew install pyqtk, it says:

brew install pyqtk

When I try pip install pyqtk, it says:

You are using pip version 6.1.1, however version 7.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyqtk
Could not find a version that satisfies the requirement pyqtk (from
versions: )
No matching distribution found for pyqtk

On Tue, May 26, 2015 at 6:44 PM, Nathan Vander Wilt <
[email protected]> wrote:

If brew info pygtk shows the caveats in my last comment, you need to run
the commands it says so it will be available to system Python.

I can confirm that making the brew-installed pygtk available did fix this
formula's build — so I would suggest either this important manual step
needs to be added to the "Python woes" section of the readme here, or
perhaps just pip install it would work?


Reply to this email directly or view it on GitHub
#37 (comment)
.

@dsound-zz
Copy link

Yipes! I apologize to everyone on this thread. I was using PYQTK, not
PYGTK. Sorry, I'm very new at all this. I'm trying another go at brew
install gnuradio.

On Tue, May 26, 2015 at 8:18 PM, demian sims [email protected] wrote:

I get

Error: No available formula for pyqtk

I know it's installed. I did take my system Python in Frameworks and move
it to a temporary location because of the warning about conflicting Pythons
and Brew using it's own Python. Was that a wrong move?

When I try brew install pyqtk, it says:

brew install pyqtk

When I try pip install pyqtk, it says:

You are using pip version 6.1.1, however version 7.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyqtk
Could not find a version that satisfies the requirement pyqtk (from
versions: )
No matching distribution found for pyqtk

On Tue, May 26, 2015 at 6:44 PM, Nathan Vander Wilt <
[email protected]> wrote:

If brew info pygtk shows the caveats in my last comment, you need to run
the commands it says so it will be available to system Python.

I can confirm that making the brew-installed pygtk available did fix this
formula's build — so I would suggest either this important manual step
needs to be added to the "Python woes" section of the readme here, or
perhaps just pip install it would work?


Reply to this email directly or view it on GitHub
#37 (comment)
.

@dsound-zz
Copy link

So I'm still getting the error:

Error: No such file or directory - /usr/local/Cellar/gnuradio/3.7.7.1/etc/gnuradio/conf.d/grc.conf

Here's the output when I run 'brew info pygtk':

pygtk: stable 2.24.0 (bottled)
http://www.pygtk.org/
/usr/local/Cellar/pygtk/2.24.0 (624 files, 17M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/pygtk.rb
==> Dependencies
Build: pkg-config ✔
Required: glib ✔, gtk+ ✔, atk ✔, pygobject ✔, py2cairo ✔
Optional: libglade ✘
==> Options
--universal
Build a universal binary
--with-libglade
Build with libglade support

@dsound-zz
Copy link

I should also add that I had to modify the gnuradio.rb file because I kept
getting this error:

Error: compile error
/usr/local/Library/Taps/metacollin/homebrew-gnuradio/gnuradio.rb:65: syntax
error, unexpected tSTAR, expecting tAMPER
system "cmake", "..", _args,_std_cmake_args

I replaced the 'star' with and 'ampersend' assuming that's what was meant
by 'tAMPER' and removed the space because I had read somewhere that you
don't want any spaces on a line like that. Again, this is over my head so
I'm just guessing. It did manage to allow for make and install but then
keep getting to the error:

Error: No such file or directory - /usr/local/Cellar/gnuradio/
3.7.7.1/etc/gnuradio/conf.d/grc.conf

I should also add that I am using OSX 10.8.5.

On Tue, May 26, 2015 at 9:25 PM, demian sims [email protected] wrote:

Yipes! I apologize to everyone on this thread. I was using PYQTK, not
PYGTK. Sorry, I'm very new at all this. I'm trying another go at brew
install gnuradio.

On Tue, May 26, 2015 at 8:18 PM, demian sims [email protected] wrote:

I get

Error: No available formula for pyqtk

I know it's installed. I did take my system Python in Frameworks and move
it to a temporary location because of the warning about conflicting Pythons
and Brew using it's own Python. Was that a wrong move?

When I try brew install pyqtk, it says:

brew install pyqtk

When I try pip install pyqtk, it says:

You are using pip version 6.1.1, however version 7.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyqtk
Could not find a version that satisfies the requirement pyqtk (from
versions: )
No matching distribution found for pyqtk

On Tue, May 26, 2015 at 6:44 PM, Nathan Vander Wilt <
[email protected]> wrote:

If brew info pygtk shows the caveats in my last comment, you need to
run the commands it says so it will be available to system Python.

I can confirm that making the brew-installed pygtk available did fix
this formula's build — so I would suggest either this important manual step
needs to be added to the "Python woes" section of the readme here, or
perhaps just pip install it would work?


Reply to this email directly or view it on GitHub
#37 (comment)
.

@dsound-zz
Copy link

Ok I went ahead an upgraded to Yosemeti and now the install error says the following:

make[2]: *** [gnuradio-runtime/lib/libgnuradio-runtime.3.7.7.dylib] Error 1
make[1]: *** [gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/all] Error 2
/usr/local/Cellar/cmake/3.2.2/bin/cmake -E cmake_progress_report /tmp/gnuradio20150527-21019-          qp29cv/gnuradio-3.7.7.1/build/CMakeFiles 
[ 37%] Built target trellis_swig_gr_trellis_swig_30622
make: *** [all] Error 2

@nguillermin
Copy link

I have had this same error message as well, it seems that CMake is not finding numpy (Mine is at /Users/username/Library/Python/2.7/lib/python/site-packages) which results in gnuradio-companion not being built.

300 -- Python checking for numpy
301 -- Python checking for numpy - not found
302 --
303 -- Configuring gnuradio-companion support...
304 --   Dependency ENABLE_GNURADIO_RUNTIME = ON
305 --   Dependency ENABLE_PYTHON = ON
306 --   Dependency PYTHON_MIN_VER_FOUND = TRUE
307 --   Dependency CHEETAH_FOUND = TRUE
308 --   Dependency LXML_FOUND = TRUE
309 --   Dependency PYGTK_FOUND = TRUE
310 --   Dependency NUMPY_FOUND = FALSE
311 --   Disabling gnuradio-companion support.
312 --   Override with -DENABLE_GRC=ON/OFF

Full 01.cmake here: https://gist.github.com/nguillermin/8b7d7ab18ac1280390bb

@nguillermin
Copy link

^Above turned out to be an issue with my numpy install...I was getting permission errors installing numpy with pip because of a previous install which was done with sudo (so the numpy install wanted to overwrite some files but couldn't because they had been put there with sudo). I had previously gotten around that by installing numpy on a per-user basis.

I uninstalled numpy, deleted offending files that were giving me permission errors, then reinstalled numpy with pip.

@soupdiver
Copy link

I had to install matplotlib numpy scipy via pip.
I don't know why brew did not complain on the first install attempt but after I tried the second time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants