我正在尝试运行一个下载下来的程序,但它无法正常工作。
PyCharm 返回以下信息:
-----------------------------------------------------------------------------
Traceback (most recent call last):
File "fb-hfc.py", line 291, in <module>
display = Display(visible=0, size=(1600, 900))
File "/home/apple/.local/lib/python2.7/site- packages/pyvirtualdisplay/display.py", line 33, in __init__
self._obj = self.display_class(
File "/home/apple/.local/lib/python2.7/site- packages/pyvirtualdisplay/display.py", line 51, in display_class
cls.check_installed()
File "/home/apple/.local/lib/python2.7/site- packages/pyvirtualdisplay/xvfb.py", line 38, in check_installed
ubuntu_package=PACKAGE).check_installed()
File "/home/apple/.local/lib/python2.7/site- packages/easyprocess/__init__.py", line 180, in check_installed
raise EasyProcessCheckInstalledError(self)
easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help']
OSError=[Errno 2] No such file or directory
Program install error!
You can install it in terminal:
sudo apt-get install xvfb
运行apt-get install xvfb并没有帮助。
这个应用是fb-hfc,可以搜索谷歌找到它的代码。如果有代码方面的问题,请参考。