You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
this is a really special request since I am working with a production server that runs Debian Jeesie, python 3.4 and screeninfo 0.2.2. I am not allowed to update packages in there so I know this is going to be challenging.
Basically, we have a GUI that should run on a physical screen. This specific system does not have a physical screen connected, however X11 is running and I can take screenshots graphical programs like xterm.
However, when I run the app in this headless server I get the following error:
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "tools/start_webview.py", line 50, in <module>
File "tools/start_webview.py", line 27, in run
File "/usr/local/lib/python3.4/dist-packages/screeninfo/screeninfo.py", line 192, in get_monitors
return chosen.get_monitors()
File "/usr/local/lib/python3.4/dist-packages/screeninfo/screeninfo.py", line 144, in get_monitors
raise Exception('Xinerama is not active')
Exception: Xinerama is not active
And then systemctl restart display-manager. It is using slim. I even restarted the whole server since the issue persisted.
When I run just scrot, I get the following message giblib error: Can't open X display. It *is* running, yeah?but by googling a little bit I managed to make it work by setting the display environment variable for the command like this: DISPLAY=:0 scrot.
Any help to figure out what is going on with this error is more than welcome. I am quite new with trying to launch virtual displays on headless servers.
The text was updated successfully, but these errors were encountered:
Hi,
this is a really special request since I am working with a production server that runs Debian Jeesie, python 3.4 and screeninfo 0.2.2. I am not allowed to update packages in there so I know this is going to be challenging.
Basically, we have a GUI that should run on a physical screen. This specific system does not have a physical screen connected, however X11 is running and I can take screenshots graphical programs like xterm.
However, when I run the app in this headless server I get the following error:
I have tried to enable Xinerama on xorg.conf:
And then
systemctl restart display-manager
. It is usingslim
. I even restarted the whole server since the issue persisted.When I run just
scrot
, I get the following messagegiblib error: Can't open X display. It *is* running, yeah?
but by googling a little bit I managed to make it work by setting the display environment variable for the command like this:DISPLAY=:0 scrot
.Any help to figure out what is going on with this error is more than welcome. I am quite new with trying to launch virtual displays on headless servers.
The text was updated successfully, but these errors were encountered: