0

我在 Azure 上运行 Docker 容器并使用 pyvirtualdisplay 打开一个显示进行渲染。做完之后

from pyvirtualdisplay import Display
display = Display(visible=False, size=(1400, 900))
display.start()

我收到以下错误。有小费吗?

  File "/code/.../scripts.py", line 3, in <module>
    display = Display(visible=False, size=(1400, 900))
  File "/root/miniconda3/envs/ic2/lib/python3.6/site-packages/pyvirtualdisplay/display.py", line 63, in __init__
    **kwargs
  File "/root/miniconda3/envs/ic2/lib/python3.6/site-packages/pyvirtualdisplay/xvfb.py", line 50, in __init__
    manage_global_env=manage_global_env,
  File "/root/miniconda3/envs/ic2/lib/python3.6/site-packages/pyvirtualdisplay/abstractdisplay.py", line 88, in __init__
    helptext = get_helptext(program)
  File "/root/miniconda3/envs/ic2/lib/python3.6/site-packages/pyvirtualdisplay/util.py", line 10, in get_helptext
    p.call()
  File "/root/miniconda3/envs/ic2/lib/python3.6/site-packages/easyprocess/__init__.py", line 141, in call
    self.start().wait(timeout=timeout)
  File "/root/miniconda3/envs/ic2/lib/python3.6/site-packages/easyprocess/__init__.py", line 219, in wait
    self._wait4process()
  File "/root/miniconda3/envs/ic2/lib/python3.6/site-packages/easyprocess/__init__.py", line 250, in _wait4process
    self.stdout = self._stdout_file.read()
FileNotFoundError: [Errno 2] No such file or directory

另外,我已经在我的 Dockerfile 中安装了 xvfb

RUN apt-get install xvfb mesa-utils -y \
        && apt install freeglut3-dev -y
4

0 回答 0