Closed RobotcomFA closed 3 years ago
I finally solved the problem. I use PyVirtualDisplay (a Python wrapper for Xvfb).
from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(800, 600))
display.start()
# launch stuff inside virtual display here
display.stop()
I am working with python 3.8.5 and pythonocc-core 7.5.1 on Ubuntu VM, Google Cloud Platform and I am trying covert shape to png by offscreen_rendering
The error when I am trying create the renderer: offscreen_renderer = Viewer3d()
Thank you for your help!