Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#37619 closed defect (fixed)

running gnuradio-companion

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

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

i installed gnuradio on an almost virgin macmini running Mountain Lion through macports with no errors.
then i installed gqrx_5.dmg wich is running fine.
then trying gnuradio-companion --> sh: gnuradio-companion: command not found
find / -name "gnuradio-companion" did not find something to execute
installed:

port install gnuradio @3.6.2_2+grc+python27+qtgui+docs

maybe im overlooking something, or should there be a script or executable named gnuradio-companion?

Change History (8)

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

It looks like +grc requires +swig also (after reviewing the debug output from your variants). I'll add that it as a requirement.

I'm wondering why you don't just choose "+full"? The hardest dependency to be met is Qt, which you already have there with +qtgui.

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

Owner: changed from macports-tickets@… to michaelld@…
Port: gnuradio added
Status: newassigned

Fixed in r101526. This change will go live in ~30 minutes; after that, you can do:

sudo port -f uninstall gnuradio
sudo port selfupdate
sudo port install gnuradio +grc +python27 +qtgui +docs

and, gnuradio-companion should now work.

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

Resolution: fixed
Status: assignedclosed

comment:4 Changed 11 years ago by cgcgcg@…

ok, thank you
did sudo port selfupdate and installed Gnuradio +full
port install gnuradio +grc +python27 +qtgui was a suggestion from another ticket
now im a step further:

sh-3.2# gnuradio-companion
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/gui/Actions.py:30: GtkWarning: GdkKeymap *gdk_keymap_get_for_display(GdkDisplay *): assertion `GDK_IS_DISPLAY (display)' failed
  _keymap = gtk.gdk.keymap_get_default()
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/gui/Colors.py:24: GtkWarning: GdkColormap *gdk_screen_get_system_colormap(GdkScreen *): assertion `GDK_IS_SCREEN (screen)' failed
  _COLORMAP = gtk.gdk.colormap_get_system() #create all of the colors
Traceback (most recent call last):
  File "/opt/local/bin/gnuradio-companion", line 58, in <module>
    from gnuradio.grc.python.Platform import Platform
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/python/Platform.py", line 24, in <module>
    from FlowGraph import FlowGraph as _FlowGraph
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/python/FlowGraph.py", line 22, in <module>
    from .. gui.FlowGraph import FlowGraph as _GUIFlowGraph
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/gui/FlowGraph.py", line 22, in <module>
    import Colors
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/gui/Colors.py", line 27, in <module>
    HIGHLIGHT_COLOR = get_color('#00FFFF')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/gui/Colors.py", line 25, in get_color
    def get_color(color_code): return _COLORMAP.alloc_color(color_code, True, True)
AttributeError: 'NoneType' object has no attribute 'alloc_color'

PS: dont know if that matter, but its a mac mini without screen and keyboard accessed through remote desktop
gqrx still running fine

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

You probably need to set the DISPLAY environment variable; what does it return by default:

env | grep DISPLAY

comment:6 Changed 11 years ago by michaelld (Michael Dickens)

Also, if the solution here isn't obvious, please open a new ticket and we'll work with it there since this issue is different than the ticket's issue.

comment:7 Changed 11 years ago by cgcgcg@…

yippie!
had to install x11 first trough /Applications/Utilities/X11.app
maybe this mac mini was too virgin.
Thanks for your patience!

comment:8 in reply to:  7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Replying to michaelld@…:

You probably need to set the DISPLAY environment variable; what does it return by default:

env | grep DISPLAY

The OS sets DISPLAY for you. You probably do not need to change it.

Replying to cgcgcg@…:

yippie!
had to install x11 first trough /Applications/Utilities/X11.app
maybe this mac mini was too virgin.
Thanks for your patience!

If desired, you could install X11 using the xorg-server port in MacPorts. Or you can install XQuartz which is presumably what you did. They're both the same software, it's just a matter of what method you want to use to install and update it.

Note: See TracTickets for help on using tickets.