easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb&#

easyprocess.EasyProcessCheckInstalledError: cmd=[#39;Xvfb#39;, #39;-help#39;] OSError=[Errno 2] No such file or directory(easyprocess.EasyProcessCheckInstalledError: cmd=[Xvfb, -help] OSError=[Errno 2] 没有这样的文件或目录) - IT屋-程序员软
本文介绍了easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help'] OSError=[Errno 2] 没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在尝试设置显示器,但它告诉我没有这样的文件或目录.

I'm trying to setup a display but it's telling 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!

推荐答案

您可能需要安装 xvfb 包,或者可能需要安装 xvfbwrapper:

You likely need to install either the xvfb package, or possibly the xvfbwrapper:

首先查看是否安装了xvfb:

Xvfb -help

如果命令找不到,那么您通常可以使用以下命令(或您通常使用的任何包管理器)安装 xvfb 包:

If the command is not found then you can usually install the xvfb package with the following command (or whichever package manager you generally use):

sudo apt-get install xvfb

xvfbwrapper 是用于在 X 虚拟帧缓冲区 (Xvfb) 中运行显示的 Python 包装器.

xvfbwrapper is Python wrapper for running a display inside X virtual framebuffer (Xvfb).

你可以安装它:

pip install xvfbwrapper

您遇到的错误似乎是由于找不到命令或模块造成的.

The error you are getting seems to be a result of either the command or module not being found.

这篇关于easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help'] OSError=[Errno 2] 没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)