I created a new container using lxc on my ubuntu platform, created a sudo user, installed Uhd and finally gnuradio. However, when I try to run gnuradio I get the following error:
~$ sudo gnuradio-companion
Traceback (most recent call last):
File "/usr/local/bin/gnuradio-companion", line 97, in <module>
check_gtk()
File "/usr/local/bin/gnuradio-companion", line 64, in check_gtk
die(err, "Failed to initialize GTK. If you are running over ssh, "
File "/usr/local/bin/gnuradio-companion", line 42, in die
import gtk
File "/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py", line 69, in <module>
_init()
File "/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py", line 57, in _init
warnings.warn(str(e), _gtk.Warning)
gtk.GtkWarning: could not open display
I have tried several methods found here to try to fix this issue with gtk.GtkWarning
when I attempt to run gnuradio and none have worked. I am fairly new to gnuradio, ubuntu, and lxc containers. I tried running the program from outside the container as root as well as with the sudo user. Can anyone help me with this?