Cannot import name VERSION

Hi guys,

I have gnuradio and gnuradio-companion installed, but I get the
following
error when I try to run grc:

randy@RLP2:~$ grc
Traceback (most recent call last):
File “/usr/bin/grc”, line 33, in
from gnuradio.grc import VERSION
ImportError: cannot import name VERSION

My system was working just fine at one point, but it started throwing
this
error overnight. I reinstalled gnuradio and rebuilt the library
tarball,
but after a day or so, the error came up again. Now when I reinstall, I
get
hit with this right away. Has anyone else run into this problem?

Randy

On 06/24/2011 02:03 PM, Randy Westlund wrote:

My system was working just fine at one point, but it started throwing this
error overnight. I reinstalled gnuradio and rebuilt the library tarball,
but after a day or so, the error came up again. Now when I reinstall, I get
hit with this right away. Has anyone else run into this problem?

Seems to be a mismatch between bin scripts and python modules.
Basically, you need to completely clean out the old install.

-josh

I’ve tried that using the following commands:
*
sudo apt-get purge gnuradio gnuradio-companion
sudo apt-get autoremove
sudo rm -rf /usr/share/gnuradio #this also removes the library
tarball

*
Then I reboot and run my shell script to install GNU Radio and its
tarball
again. Is there something more that I need to clean out before
reinstalling?

Randy

On 06/27/2011 06:36 AM, Martin B. wrote:

If you install from source, Python stuff ends up in
/usr/local/lib/pythonXX/dist-packages and /usr/local/lib.

Try looking for ‘usrp’ and ‘gnuradio’ in /usr/local (e.g. with find
/usr/local -name “usrp”)

/usr/local/bin too

http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Execution

I found the files you indicated and wiped those with my last reinstall,
but
I still get the same error. Any other ideas?

Randy

Problem solved. It works if I launch with the command
gnuradio-companion' and not withgrc.’ I still don’t know why that changed overnight, but
now
this machine launches with the first command and my other machines only
launch with `grc.’ I’m running Ubuntu 10.10 on all of them, and I
installed
gnuradio in parallel on my machines. But so long as it runs, I’m not
complaining. Thanks for the help guys.

Randy

On Mon, Jun 27, 2011 at 09:17:22AM -0400, Randy Westlund wrote:

I’ve tried that using the following commands:

sudo apt-get purge gnuradio gnuradio-companion
sudo apt-get autoremove
sudo rm -rf /usr/share/gnuradio #this also removes the library tarball

Then I reboot and run my shell script to install GNU Radio and its tarball
again. Is there something more that I need to clean out before reinstalling?

If you install from source, Python stuff ends up in
/usr/local/lib/pythonXX/dist-packages and /usr/local/lib.

Try looking for ‘usrp’ and ‘gnuradio’ in /usr/local (e.g. with find
/usr/local -name “usrp”)

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

On Tue, Jun 28, 2011 at 08:41:24AM -0400, Randy Westlund wrote:

Problem solved. It works if I launch with the command gnuradio-companion' and not withgrc.’ I still don’t know why that changed overnight, but now this
machine launches with the first command and my other machines only launch with
`grc.’ I’m running Ubuntu 10.10 on all of them, and I installed gnuradio in
parallel on my machines. But so long as it runs, I’m not complaining. Thanks
for the help guys.

Hi Randy,

the name was changed from grc to gnuradio-companion many, many revisions
ago. If you still have a grc executable, you still have old stuff on
your machine.

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association