On 06/08/2019 02:00 PM, Eamon Heaney wrote:
> Hey all, I'm getting a gtk error when I try to run gnuradio-companion as
> root. Error message below.
> 
> File "/usr/bin/gnuradio-companion", line 97, in <module>
>     check_gtk()
>   File "/usr/bin/gnuradio-companion", line 64, in check_gtk
>     die(err, "Failed to initialize GTK. If you are running over ssh, "
>   File "/usr/bin/gnuradio-companion", line 42, in die
>     import gtk
>   File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line
> 69, in <module>
>     _init()
>   File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line
> 57, in _init
>     warnings.warn(str(e), _gtk.Warning)
> gtk.GtkWarning: could not open display
> 
> 
> The instructions on the github repo I'm working from indicate that I should
> be running this as root, so I do think it's necessary. Any ideas on how to
> fix this?

That sounds like a terrible idea (running gnuradio-companion as root).
Where is this github repo?

That said, I've seen it run as root on embedded boards so there nothing
in the code to stop it.

The could not open display message suggest you are trying to run over
ssh without using X forwarding.

Philip


> 
> 
> 
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to