Open Victornovikov opened 1 year ago
Sorry I have no wsl and I had no feedback of Windows usage. You can try this environment variable:
PYVIRTUALDISPLAY_DISPLAYFD=0
On settings up the above environment variable it is working for me in Ubuntu 20.04 WSL2 + Windows 10
So the -displayfd
flag has some problem on this config.
Please test it
https://stackoverflow.com/questions/2520704/find-a-free-x11-display-number/
This is my test on Ubuntu 22.04
exec 6>display.log
Xvfb -displayfd 6
other terminal
cat display.log
1
On my Ubuntu 20.04 WSL 2 + Windows 11 (had the exact same issue and using PYVIRTUALDISPLAY_DISPLAYFD=0 fixed it)
Running :
exec 6>display.log
Xvfb -displayfd 6
creates an empty display.log file The console in which I run this outputs a bunch of lines, the last of which read :
_XSERVTransOpen: transport open failed for unix/URANUS:59531
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for unix
_XSERVTransSocketOpenCOTSServer: Unable to open socket for unix
_XSERVTransOpen: transport open failed for unix/URANUS:59532
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for unix
_XSERVTransSocketOpenCOTSServer: Unable to open socket for unix
_XSERVTransOpen: transport open failed for unix/URANUS:59533
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for unix
_XSERVTransSocketOpenCOTSServer: Unable to open socket for unix
_XSERVTransOpen: transport open failed for unix/URANUS:59534
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for unix
_XSERVTransSocketOpenCOTSServer: Unable to open socket for unix
_XSERVTransOpen: transport open failed for unix/URANUS:59535
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for unix
(EE)
Fatal server error:
(EE) Failed to find a socket to listen on(EE)
I am trying to run the following example
This results in
xfvb is running on the wsl2
I'd appreciate any suggestions.