Hi all,
I installed GNU Radio via the Ubuntu package first, and when trying to
run
usrp2_probe, i got the error “ImportError: cannot import name usrp2” …
so
then I tried a manual install from the latest git, and I still get that
same
error.
I have confirmed that gnuradio exists in:
/usr/local/lib/python2.6/dist-packages/gnuradio
I see the usrp2 module here:
-rw-r–r-- 1 root staff 58800 2010-04-21 14:34
/usr/local/lib/python2.6/dist-packages/gnuradio/usrp2.py
/usr/local/lib/python2.6/dist-packages is in the sys.path variable in
python:
sys.path
[’’, ‘/usr/lib/python2.6’, ‘/usr/lib/python2.6/plat-linux2’,
‘/usr/lib/python2.6/lib-tk’, ‘/usr/lib/python2.6/lib-old’,
‘/usr/lib/python2.6/lib-dynload’, ‘/usr/lib/python2.6/dist-packages’,
‘/usr/lib/python2.6/dist-packages/Numeric’,
‘/usr/lib/python2.6/dist-packages/PIL’,
‘/usr/lib/python2.6/dist-packages/gst-0.10’,
‘/usr/lib/pymodules/python2.6’,
‘/usr/lib/python2.6/dist-packages/gtk-2.0’,
‘/usr/lib/pymodules/python2.6/gtk-2.0’,
‘/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode’,
‘/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode’,
‘/usr/local/lib/python2.6/dist-packages’]
NOTE I do not get the import error when I do not run the command
with
sudo, but then I do not get the proper raw socket permissions. Maybe
that
rings a bell to someone? Something probably about an environment
variable I
am missing.
Thanks!
George
