Erro ao importar o PyGTK: Não é possível usar a GUI no Contêiner do Docker

0

Estou trabalhando em um servidor remoto usando o SSH. Estou executando o Docker Container no servidor. No Container eu tenho PyGTK e quando tentei importá-lo usando

Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.require_version('Gtk', '3.0')
>>> from gi.repository import Gtk, Gdk

Está me dando o seguinte erro.

Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

Devido a isso, não consigo abrir a GUI. Meu objetivo é gravar a tela.

Qualquer ajuda seria legal. Posso tentar o xhost ?

    
por Harsh Patel 10.01.2018 / 08:11

0 respostas