# Cannot import name VERSION

**URL:** <https://www.ruby-forum.com/t/cannot-import-name-version/208705>\
**Category:** GNU Radio\
**Created:** [June 24, 2011, 11:11pm UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705 "2011-06-24T23:11:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [June 24, 2011, 11:11pm UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705/1 "2011-06-24T23:11:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Randy\_Westlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@Randy\_Westlund](https://www.ruby-forum.com/u/Randy_Westlund)\
**Post date:** [June 24, 2011, 11:51pm UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705/2 "2011-06-24T23:51:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Randy\_Westlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@Randy\_Westlund](https://www.ruby-forum.com/u/Randy_Westlund)\
**Post date:** [June 27, 2011, 3:19pm UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705/3 "2011-06-27T15:19:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Randy\_Westlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@Randy\_Westlund](https://www.ruby-forum.com/u/Randy_Westlund)\
**Post date:** [June 27, 2011, 7:22pm UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705/4 "2011-06-27T19:22:15Z")

</div>

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](http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Execution)

---

<div class="post-metadata">

**Author:** ![Randy\_Westlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@Randy\_Westlund](https://www.ruby-forum.com/u/Randy_Westlund)\
**Post date:** [June 27, 2011, 8:17pm UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705/5 "2011-06-27T20:17:15Z")

</div>

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

Randy

---

<div class="post-metadata">

**Author:** ![Randy\_Westlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@Randy\_Westlund](https://www.ruby-forum.com/u/Randy_Westlund)\
**Post date:** [June 28, 2011, 3:02pm UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705/6 "2011-06-28T15:02:04Z")

</div>

Problem solved. It works if I launch with the command  
`gnuradio-companion' and not with`grc.’ 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

---

<div class="post-metadata">

**Author:** ![Randy\_Westlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@Randy\_Westlund](https://www.ruby-forum.com/u/Randy_Westlund)\
**Post date:** [June 27, 2011, 4:29pm UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705/7 "2011-06-27T16:29:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Randy\_Westlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@Randy\_Westlund](https://www.ruby-forum.com/u/Randy_Westlund)\
**Post date:** [June 29, 2011, 10:15am UTC](https://www.ruby-forum.com/t/cannot-import-name-version/208705/8 "2011-06-29T10:15:59Z")

</div>

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 with `grc.’ 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
