Opened 10 years ago

Closed 10 years ago

#44659 closed defect (invalid)

GR sample OoT module fails with : "ImportError: No module named gnuradio"

Reported by: mpm114@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: gnuradio

Description

Trying to verify correct GR install by building simple 'howto' block, but it fails on ctest.

  • Mac OS X 10.9.4
  • downloaded gnuradio and uhd via MacPorts - no errors indicated
  • port installed gnuradio: gnuradio @3.7.4_0+docs+grc+jack+orc+portaudio+python27+qtgui+sdl+swig+uhd+wavelet+wxgui (active)
  • which python: /usr/bin/python
  • python -V: Python 2.7.5

Change History (4)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: ImportError removed
Owner: changed from macports-tickets@… to michaelld@…
Type: submissiondefect

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Certainly if you're trying to use a module installed by a port with a python27 variant, then you'll need to use MacPorts python27 (i.e. /opt/local/bin/python2.7), not OS X python (i.e. /usr/bin/python).

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

Ditto what Ryan wrote. This is the current state of OoT module building with GNU Radio. It's on my queue to get this fixed. Until then, I recommend you append the following to your cmake configuration command:

-DPYTHON_EXECUTABLE=/opt/local/bin/python2.7 \
-DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers \
-DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python

to guarantee that the MacPorts Python 2.7 is used.

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

Resolution: invalid
Status: newclosed

This is not a MacPorts issue, so I'm closing this ticket. Please email me directly if you want to discuss further: michael.dickens@… .

Note: See TracTickets for help on using tickets.