Opened 10 years ago

Closed 10 years ago

#28315 closed defect (fixed)

gnuradio 3.3.0 installed but cannot run any script

Reported by: mostafa.mabrouk.khedr@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: gnuradio, usrp Cc:
Port: gnuradio


I installed gnuradio 3.3.0 using macports and it took very long time to be installed.

sudo port install gnuradio

and i opened the .profile and added the pythonpath

export PYTHONPATH=$PYTHONPATH:/opt/local/lib/python2.6/site-packages

then i connected the usrp and used the following path

cd /usr/local/share/gnuradio/examples/usrp/

i got the following error

Traceback (most recent call last):
  File "./", line 30, in <module>
    from gnuradio import gr
ImportError: No module named gnuradio

I don't if this is the right place to post such an error, but i will appreciate your help guys.

Change History (5)

comment:1 Changed 10 years ago by michaelld (Michael Dickens)

Owner: changed from macports-tickets@… to michaelld@…

What does "port installed | grep gnuradio" return? What does "ls /opt/local/lib/python2.6/site-packages" return?

comment:2 Changed 10 years ago by mostafa.mabrouk.khedr@…

port installed | grep gnuradio returns

test:usrp mostafamabrouk$ port installed | grep gnuradio
  gnuradio @3.3.0_0+python26 (active)
  gnuradio-atsc @3.3.0_0+python26 (active)
  gnuradio-audio-jack @3.3.0_0+python26 (active)
  gnuradio-audio-osx @3.3.0_0+python26 (active)
  gnuradio-audio-portaudio @3.3.0_0+python26 (active)
  gnuradio-companion @3.3.0_0+python26 (active)
  gnuradio-core @3.3.0_0+python26 (active)
  gnuradio-cvsd-vocoder @3.3.0_0+python26 (active)
  gnuradio-examples @3.3.0_0+python26 (active)
  gnuradio-gpio @3.3.0_0+python26 (active)
  gnuradio-gruel @3.3.0_0+python26 (active)
  gnuradio-gsm-fr-vocoder @3.3.0_0+python26 (active)
  gnuradio-msdd6000 @3.3.0_0+python26 (active)
  gnuradio-noaa @3.3.0_0+python26 (active)
  gnuradio-pager @3.3.0_0+python26 (active)
  gnuradio-qtgui @3.3.0_1+python26 (active)
  gnuradio-radar-mono @3.3.0_0+python26 (active)
  gnuradio-radio-astronomy @3.3.0_0+python26 (active)
  gnuradio-sounder @3.3.0_0+python26 (active)
  gnuradio-trellis @3.3.0_0+python26 (active)
  gnuradio-usrp @3.3.0_0+python26 (active)
  gnuradio-utils @3.3.0_0+python26 (active)
  gnuradio-video-sdl @3.3.0_0+python26 (active)
  gnuradio-wxgui @3.3.0_0+python26 (active)

ls /opt/local/lib/python2.6/site-packages returns

test:usrp mostafamabrouk$ ls /opt/local/lib/python2.6/site-packages
gnuradio	grc_gnuradio	usrpm		xcbgen

comment:3 Changed 10 years ago by michaelld (Michael Dickens)

That looks good. Did you either source the .profile, or re-start your shell, in order for the PYTHONPATH to be updated?

comment:4 Changed 10 years ago by mostafa.mabrouk.khedr@…

I restarted the shell and it worked, now i tested the USRP, thanks michael for your help

comment:5 Changed 10 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

You're welcome; glad it's working!

Note: See TracTickets for help on using tickets.