Opened 13 years ago

Closed 12 years ago

#32147 closed defect (fixed)

gnuradio 3.3.0 installs to the wrong site-packages folder

Reported by: nicholas.pate@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: Feuermurmel (Michael Schwarz)
Port: gnuradio

Description (last modified by ryandesign (Ryan Carsten Schmidt))

In Summer 2011, python ports were merged into a single portgroup and the site-packages folder for python26 was moved (see wiki:Python). However, gnuradio 3.3.0 and all of its component ports (gnuradio-wxgui, etc.) still install to the old location, /opt/local/lib/python2.6/site-packages/, where the python interpreter cannot find them. The correct site-packages folder, per the wiki link above, is /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages.

Presumably the fix needs to happen in the Portfile, which I suspect is hardcoded for the old destination. The correct behavior would be declaring the python portgroup and then using the python.pkgd variable, which will always point to the correct site-packages. I can't for the life of me figure out where the gnuradio Portfile is stored to go look at this myself.

Adding /opt/local/lib/python2.6/site-packages/ to the PYTHONPATH environment variable functions as a workaround.

Change History (4)

comment:1 in reply to:  description Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: gnuradio removed
Owner: changed from macports-tickets@… to michaelld@…

Replying to nicholas.pate@…:

I can't for the life of me figure out where the gnuradio Portfile is stored to go look at this myself.

The command port file gnuradio will show you.

Michael, if you need to make a change to gnuradio and increase its revision to fix this, could you take the opportunity to make gnuradio install into an unversioned docdir, and make python27 the default?

comment:2 Changed 13 years ago by michaelld (Michael Dickens)

I need to update GNU Radio to 3.4.1, and soon after that to 3.5.0 (which I think will be in RC testing pretty soon). So, when I do I'll make sure it installs into the new Python path.

comment:3 Changed 12 years ago by Feuermurmel (Michael Schwarz)

Cc: michi.schwarz@… added

Cc Me!

comment:4 Changed 12 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Fixed in r99885.

Note: See TracTickets for help on using tickets.