Opened 14 years ago
Closed 14 years ago
#28567 closed defect (fixed)
gnuradio 3.3.0 installed but cannot run any script
Reported by: | haxor@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ||
Port: | gnuradio |
Description (last modified by mf2k (Frank Schima))
I am having the same problem as in Ticket #28315. My output from port installed | grep gnuradio is the same. However, ls /opt/local/lib/python2.6/site-packages returns:
gnuradio grc_gnuradio usrpm
(thus, there is no reference to xcbgen as exists in ticket #28315)
When I restart the shell, I still get the same error when I try to run, for example, usrp_probe:
machinegeekcoms-Mac-mini:~ machinegeekcom$ usrp_probeTraceback (most recent call last): File "/opt/local/bin/usrp_probe", line 21, in <module> from gnuradio import usrp ImportError: No module named gnuradio machinegeekcoms-Mac-mini:~ machinegeekcom$
Any assistance will be appreciated.
Change History (7)
comment:1 Changed 14 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to michaelld@… |
Port: | gnuradio added |
comment:2 Changed 14 years ago by michaelld (Michael Dickens)
comment:3 Changed 14 years ago by haxor@…
Here's the result:
machinegeekcoms-Mac-mini:/ machinegeekcom$ usrp_probe Traceback (most recent call last):
File "/opt/local/bin/usrp_probe", line 21, in <module>
from gnuradio import usrp
ImportError: No module named gnuradio machinegeekcoms-Mac-mini:/ machinegeekcom$ echo $PYTHONPATH
machinegeekcoms-Mac-mini:/ machinegeekcom$
As you see, nothing results from this command. I appreciate our efforts.
comment:4 Changed 14 years ago by michaelld (Michael Dickens)
Please read through the "description" part of ticket #28315, to set your shell's PYTHONPATH so that Python finds the GNU Radio scripts area. Once you've edited your ~/.profile to include the "export PYTHONPATH.." line, make sure to "source ~/.profile" to get the changes in your shell.
comment:5 Changed 14 years ago by haxor@…
Thank you. I followed the instructions in ticket #28315 regarding setting pythonpath, and I get the following:
machinegeekcoms-Mac-mini:Users machinegeekcom$ echo $PYTHONPATH :/opt/local/lib/python2.6/site-packages machinegeekcoms-Mac-mini:Users machinegeekcom$ usrp_probe Traceback (most recent call last):
File "/opt/local/bin/usrp_probe", line 24, in <module>
import pygtk
ImportError: No module named pygtk machinegeekcoms-Mac-mini:Users machinegeekcom$
comment:6 Changed 14 years ago by haxor@…
Update: Problem solved!
In addition to the previously suggested steps, I appended the following to the "export PYTHONPATH..." lie in .profile:
:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
Then I ran "source ~/.profile" and now usrp_probe runs successfully!
Thank you for your assistance!
comment:7 Changed 14 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
You're welcome; I'm glad you're install of GNU Radio is now working!
What does "echo $PYTHONPATH" return for you in the shell in which you're trying to execute "usrp_probe"? It should include "/opt/local/lib/python2.6/site-packages" somewhere. The directory "xcbgen" is not installed by GNU Radio, and so is not important here.