ponty / PyVirtualDisplay

Python wrapper for Xvfb, Xephyr and Xvnc
BSD 2-Clause "Simplified" License
714 stars 78 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb' #72

Closed vvanglro closed 2 years ago

vvanglro commented 2 years ago

hi, how to use in m1 mac?

$ xdpyinfo -version                                                                                           
xdpyinfo 1.3.2
$ brew info xquartz                                                                                            
xquartz: 2.8.1 (auto_updates)
from pyvirtualdisplay import Display

display = Display(size=(1920, 1080))
display.start()
display.stop()
ponty commented 2 years ago

Run: Xvfb -help If it doesn't work then Xvfb is not in your $PATH.

vvanglro commented 2 years ago

Xvfb -help is working

Xvfb -help                                                                                                  
use: X [:<display>] [option]
-a #                   default pointer acceleration (factor)
-ac                    disable access control restrictions
-audit int             set audit trail level
-auth file             select authorization file
-br                    create root window with black background
...
vvanglro commented 2 years ago

sry, i reboot ide and terminal, is working