stepjam / PyRep

A toolkit for robot learning research.
MIT License
683 stars 162 forks source link

Running headless inside container #297

Closed telejesus2 closed 2 years ago

telejesus2 commented 2 years ago

Hi,

I am running code on a headless server, and when I follow https://github.com/stepjam/PyRep/blob/master/README.md#running-headless it works fine.

However, I am trying to migrate my code to a docker container, and I am constantly running into the same issue:

[CoppeliaSimClient] loading the CoppeliaSim library... [CoppeliaSimClient] done. [CoppeliaSimClient:loadinfo] launching CoppeliaSim... [CoppeliaSim:loadinfo] CoppeliaSim V4.1.0., (rev. 1), flavor: 1 [CoppeliaSim:loadinfo] Legacy machine ID: 51B6-94EB-B7C3-9CEC-F7E3-6D1D [CoppeliaSim:loadinfo] Machine ID: 0212-3B4E-CA9D-0000-55AE-0101 qt.qpa.xcb: could not connect to display :0.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/workspace/CoppeliaSim_Edu_V4_1_0_Ubuntu18_04" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Has anybody tried this ? I have tried both installing virtualgl in the host and replacing the python instruction with the container execution, and installing everything inside the container.

Thanks!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.