discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Here's an interesting bug


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Here's an interesting bug
Date: Sat, 01 Jun 2013 01:29:30 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5


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

> 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
> 
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]