[MacPorts] #28567: gnuradio 3.3.0 installed but cannot run any script
#28567: gnuradio 3.3.0 installed but cannot run any script -----------------------------------+---------------------------------------- Reporter: haxor@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: -----------------------------------+---------------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/28567> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28567: gnuradio 3.3.0 installed but cannot run any script -----------------------------------+---------------------------------------- Reporter: haxor@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gnuradio -----------------------------------+---------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => michaelld@… * port: => gnuradio Old description:
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.
New description: 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. -- -- Ticket URL: <https://trac.macports.org/ticket/28567#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28567: gnuradio 3.3.0 installed but cannot run any script -----------------------------------+---------------------------------------- Reporter: haxor@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gnuradio -----------------------------------+---------------------------------------- Comment(by michaelld@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/28567#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28567: gnuradio 3.3.0 installed but cannot run any script -----------------------------------+---------------------------------------- Reporter: haxor@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gnuradio -----------------------------------+---------------------------------------- Comment(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. -- Ticket URL: <https://trac.macports.org/ticket/28567#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28567: gnuradio 3.3.0 installed but cannot run any script -----------------------------------+---------------------------------------- Reporter: haxor@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gnuradio -----------------------------------+---------------------------------------- Comment(by michaelld@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/28567#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28567: gnuradio 3.3.0 installed but cannot run any script -----------------------------------+---------------------------------------- Reporter: haxor@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gnuradio -----------------------------------+---------------------------------------- Comment(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$ -- Ticket URL: <https://trac.macports.org/ticket/28567#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28567: gnuradio 3.3.0 installed but cannot run any script -----------------------------------+---------------------------------------- Reporter: haxor@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gnuradio -----------------------------------+---------------------------------------- Comment(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! -- Ticket URL: <https://trac.macports.org/ticket/28567#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28567: gnuradio 3.3.0 installed but cannot run any script ------------------------------------+--------------------------------------- Reporter: haxor@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: gnuradio | ------------------------------------+--------------------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => fixed Comment: You're welcome; I'm glad you're install of GNU Radio is now working! -- Ticket URL: <https://trac.macports.org/ticket/28567#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts