Forum: GNU Radio Here's an interesting bug

558c40b97bd1af8d912424757714bda9?d=identicon&s=25 Marcus D. Leech (Guest)
on 2013-05-31 05:32
(Received via mailing list)
That I suspect will be hard to fix.

If you run grcc in something that doesn't have access to the X display,
it barfs:


Traceback (most recent call last):
   File "/usr/local/bin/grcc", line 27, in <module>
     from gnuradio.grc.python.Platform import Platform
   File
"/usr/local/lib64/python2.7/site-packages/gnuradio/grc/python/Platform.py",
line 23, in <module>
     from .. gui.Platform import Platform as _GUIPlatform
   File
"/usr/local/lib64/python2.7/site-packages/gnuradio/grc/gui/Platform.py",
line 20, in <module>
     from Element import Element
   File
"/usr/local/lib64/python2.7/site-packages/gnuradio/grc/gui/Element.py",
line 20, in <module>
     from Constants import LINE_SELECT_SENSITIVITY
   File
"/usr/local/lib64/python2.7/site-packages/gnuradio/grc/gui/Constants.py",
line
22, in <module>
     import gtk
   File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py",
line 64, in <module>
     _init()
   File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py",
line 52, in _init
     _gtk.init_check()
RuntimeError: could not open display



--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org
4252201ac30d6dd44d8090ce1070e35f?d=identicon&s=25 Josh Blum (Guest)
on 2013-06-01 07:31
(Received via mailing list)
On 05/30/2013 11:31 PM, Marcus D. Leech wrote:
> That I suspect will be hard to fix.
>

Its kind of random between releases of pygtk, but its basically known
behaviour. You need X to import gtk. Perhaps, the grcc could be modified
to import only the non gui python builder classes. I think the two (gui
and non gui) are not too badly interwoven.

-josh
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.