Hello, I installed GNURadio using the deb package Ettus distributes here<http://files.ettus.com/binaries/gnuradio/latest_stable/>. I'm using Ubuntu 12.04 64 bit. The install seems to work properly but when I try to open GNURadio companion I get a Cannot import GNURadio error. This<http://gnuradio.org/redmine/projects/gnuradio/wiki... says to add "export PYTHONPATH=$PYTHONPATH:/opt/gnuradio/lib/python2.6/site-packages" to my bashrc. However, opt is empty and I believe the relevant files have been installed to /usr/lib/python2.7/dist-packages as there is a gnuradio folder there. I have added "export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.6/dist-packages" to my bashrc. However, when I run $PYTHONPATH in a new terminal I get "bash: :/usr/local/lib/python2.6/dist-packages: No such file or directory" and grc gives the same cannot import GNURadio error. I used nano to edit the bashrc. Does anyone know what I'm doing wrong? Thanks ahead of time! -Dan
on 2012-06-25 16:38
on 2012-06-25 16:52
The gnuradio.org page you linked to describes how to install GNU Radio from source, which, by default, installs to /usr/local. /opt is given as an example for another occasionally used install prefix. Our installers install to /usr, so the relevant Python files would indeed be installed to /usr/lib/python2.7/dist-packages, as you observed. Setting the PYTHONPATH to use /usr/local/lib/python2.6/dist-packages will make it look for files that don't exist, thus the "No such file or directory" error. Remove the /usr/local path from .bashrc, and the "No such file or directory" error should disappear. Assuming you don't have any local installs, GRC should then look at /usr/lib.
on 2012-06-25 16:53
Dan, typing $PYTHONPATH at the command line will give an error, bash is trying to execute it. use: echo $PYTHONPATH instead. Ubuntu 12.04 is using: /usr/local/lib/python2.7/dist-packages instead of python2.6 73s jim On Monday, June 25, 2012 10:37:46 AM Daniel Labarowski wrote: Hello, I installed GNURadio using the deb package Ettus distributes here. I'm using Ubuntu 12.04 64 bit. The install seems to work properly but when I try to open GNURadio companion I get a Cannot import GNURadio error. This page says to add "export PYTHONPATH=$PYTHONPATH:/opt/gnuradio/lib/python2.6/site-packages" to my bashrc. However, opt is empty and I believe the relevant files have been installed to /usr/lib/python2.7/dist-packages as there is a gnuradio folder there. I have added "export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.6/dist-packages" to my bashrc. However, when I run $PYTHONPATH in a new terminal I get "bash: :/usr/local/lib/python2.6/dist-packages: No such file or directory" and grc gives the same cannot import GNURadio error. I used nano to edit the bashrc. Does anyone know what I'm doing wrong? Thanks ahead of time! -Dan
on 2012-06-25 16:59
Daniel, while it's also the case that you are referring to a different version of Python, our installers install to /usr/lib/python2.7/dist-packages instead of /usr/local.
on 2012-06-25 17:10
Thanks jim. Not sure how I didn't realize that. Seems all to obvious now. Nicholas, you were right about python 2.7. I made a type and put 2.6. However, I'm still getting the same error from grc. Perhaps the LD_LIBRARY_PATH is the issue? I can't seem to find what I should set this path to based on a search of the file system. Should I set LD_Library or any other path variables besides the PYTHONPATH for the Ettus package? Thanks!
on 2012-06-25 17:19
You shouldn't need to set any of those variables manually. By default, your system looks at /usr/lib for libraries, and all of our libraries are stored there.
on 2012-06-25 17:31
Nicholas, I'm not finding anything related to gnuradio in /usr/lib, although the file names may not be obvious. Is there anything else I should try? Does the deb package take care of dependencies? I was expecting it to but I don't believe dpkg installed any dependencies. If the deb does not handle dependencies, is there a list of dependencies for 12.04 such as the apt-get lists here?<http://gnuradio.org/redmine/projects/gnuradio/wiki... -Dan
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.