Easyprocess.EasyProcessCheckInstalledError: cmd = ['Xvfb', '-help'] OSError = [Errno 2] There is no such file or directory

I am trying to customize the display, but it tells me No such file or directory.

Traceback (most recent call last):
  File "/var/www/envs/venv/proj/scripts/my_file.py", line 44, in click
    display = Display(visible=0, size=(800,600))
  File "/usr/lib/python2.6/site-packages/pyvirtualdisplay/display.py", line 33, in __init__
    self._obj = self.display_class(
  File "/usr/lib/python2.6/site-packages/pyvirtualdisplay/display.py", line 51, in display_class
    cls.check_installed()
  File "/usr/lib/python2.6/site-packages/pyvirtualdisplay/xvfb.py", line 38, in check_installed
    ubuntu_package=PACKAGE).check_installed()
  File "/usr/lib/python2.6/site-packages/easyprocess/__init__.py", line 209, in check_installed
    raise EasyProcessCheckInstalledError(self)
easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help']
OSError=[Errno 2] No such file or directory
Program install error!
+13
source share
2 answers

You probably need to install either the package xvfb, or perhaps xvfbwrapper:

First check and see if xvfb is installed :

Xvfb -help

If the command is not found, you can usually install the package xvfbusing the following command (or any other package manager that you usually use):

sudo apt-get install xvfb

xvfbwrapper - Python X (Xvfb).

:

pip install xvfbwrapper

, , , .

+14

Mac , , , Xquartz: https://www.xquartz.org/ ( !)

-1

Source: https://habr.com/ru/post/1664082/


All Articles