Skip to content

pyvirtualdisplay not visible [HANDS-ON BUG] #453

Closed
@blexo

Description

@blexo

Describe the bug

I may be misunderstanding - the class text is not clear on this point, but when I run:

from pyvirtualdisplay import Display
virtual_display = Display(visible=0, size=(1400, 900))
virtual_display.start()

I do not see a display screen... I notice that visible=0 in the code - but if I try to set it to one, it crashes with:
No such file or directory: 'Xephyr'

Is this lesson supposed to display a screen - or is this just a context for the gymnasium library to operate in?

Also - just an aside, the class content on the HuggingFace site is not in sync with the code in this github repo... the code on the site still uses old code that fails to install libraries for example:

apt install python-opengl

Material

  • Did you use Google Colab?
    Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions