Error on running usrp2_version of 80211

when i run the 80211b.test.py it appears an error wich is
[[email protected] examples]# ./bbn_80211b.test.py
bash: ./bbn_80211b.test.py: Aucun fichier ou dossier de ce type
[[email protected] examples]# ./bbn_80211b_test.py
Traceback (most recent call last):
 File “./bbn_80211b_test.py”, line 35, in
   from bbn_80211b_pkt import *
 File
“/home/maher/usrp2_version/gr-bbn/src/examples/bbn_80211b_pkt.py”, line
32, in
   from gnuradio import bbn
ImportError: cannot import name bbn

i ask if it’s a problem of gcc or another problem

On Wed, Sep 16, 2009 at 05:46:48AM -0700, maher manai wrote:

i ask if it’s a problem of gcc or another problem

Check the setting on your PYTHONPATH.

Eric

I seem to be having a similar problem. I built and installed the
USRP2 branch of BBN code on Ubuntu 9.04 without any errors, but when I
try
to run any of the examples I receive:
Traceback (most recent call last):
File “/usr/local/bin/bbn_80211b_tx.py”, line 32, in
from bbn_80211b_pkt import *
File “/usr/local/lib/python2.6/dist-packages/bbn_80211b_pkt.py”, line
32,
in
from gnuradio import bbn
ImportError: cannot import name bbn

I don’t have an environment variable PYTHONPATH, but within python, when
issuing print sys.path, I get the following:

[’’, ‘/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’,
‘/var/lib/python-support/python2.6’,
‘/usr/lib/python2.6/dist-packages/gtk-2.0’,
‘/var/lib/python-support/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’]

The directory /usr/local/lib/python2.6/dist-packages/gnuradio contains
bbn.py.

After setting PYTHONPATH to
/usr/local/lib/python2.6/dist-packages:/usr/local/lib/python2.6/dist-packages/gnuradio,
I still receive the “cannot import name bbn” error.

Could someone point out what I am doing wrong?

Ilya

Eric B. wrote:

line 32, in


Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


View this message in context:
http://www.nabble.com/error-on-running-usrp2_version-of--80211-tp25472151p26096371.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hi Alexander,

After running “sudo ldconfig”, and then bbn_80211b_tx.py -h I received
the same error. The output of “sudo ldconfig -v” that was relevant to
gnuradio was:

/usr/local/lib:
libgromnithread.so.0 -> libgromnithread.so.0.0.0
libgnuradio-usrp.so.0 -> libgnuradio-usrp.so.0.0.0
libmblock-qa.so -> libmblock-qa.so
libgnuradio-vrt.so.0 -> libgnuradio-vrt.so.0.0.0
libgnuradio-audio-oss.so.0 -> libgnuradio-audio-oss.so.0.0.0
libgnuradio-cvsd-vocoder.so.0 ->
libgnuradio-cvsd-vocoder.so.0.0.0
libgnuradio-video-sdl.so.0 -> libgnuradio-video-sdl.so.0.0.0
libusrp2.so.0 -> libusrp2.so.0.0.0
libmblock.so.0 -> libmblock.so.0.0.0
libgnuradio-pager.so.0 -> libgnuradio-pager.so.0.0.0
libvrt.so.0 -> libvrt.so.0.0.0
libgnuradio-trellis.so.0 -> libgnuradio-trellis.so.0.0.0
libgnuradio-msdd6000.so.0 -> libgnuradio-msdd6000.so.0.0.0
libgnuradio-audio-alsa.so.0 -> libgnuradio-audio-alsa.so.0.0.0
libgnuradio-usrp2.so.0 -> libgnuradio-usrp2.so.0.0.0
libgnuradio-core.so.0 -> libgnuradio-core.so.0.0.0
libusrp.so.0 -> libusrp.so.0.0.0
libgnuradio-qtgui.so.0 -> libgnuradio-qtgui.so.0.0.0
libgnuradio-atsc.so.0 -> libgnuradio-atsc.so.0.0.0
libgnuradio-core-qa.so.0 -> libgnuradio-core-qa.so.0.0.0
libgnuradio-gsm-fr-vocoder.so.0 ->
libgnuradio-gsm-fr-vocoder.so.0.0.0
libgruel.so.0 -> libgruel.so.0.0.0
/lib:

Are there supposed to be bbn .so files?

Hi Ilya,

Sometimes you need to run “sudo ldconfig” by hands to update
ldcocnfig db. Or it might not find required .so files.

On Wed, Oct 28, 2009 at 18:09, Ilya C. [email protected]
wrote:

ImportError: cannot import name bbn
‘/var/lib/python-support/python2.6’,
/usr/local/lib/python2.6/dist-packages:/usr/local/lib/python2.6/dist-packages/gnuradio,

[[email protected] examples]# ./bbn_80211b.test.py
i ask if it’s a problem of gcc or another problem

[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Regards,
Alexander C…