napari / docs

Documentation for napari (other than API docs)
BSD 3-Clause "New" or "Revised" License
11 stars 36 forks source link

Doc build failure with PyQt5 on gitpod #176

Closed melonora closed 1 month ago

melonora commented 1 year ago

🐛 Bug

When attempting to build the docs in a gitpod environment with PyQt5 the build fails due to an error in drawing a visual. With Pyside2 I am able to complete the build.

Environment

Output and environment can be found attached. I tried with both python 3.10 and 3.9, both resulting in the same error.

Additional context

sdtout.txt environment.odt

melissawm commented 1 year ago

I believe since you are using gitpod, you may have to use xvfb instead of "make docs" directly, like we do in CI. As far as I know, gitpod does not offer you a desktop where the GUI application can be initiated. Can you try looking at our CI action to see if this helps?

The command would be something like

xvfb-run --auto-servernum make docs-build GALLERY_PATH=../napari/examples/

where you can change the GALLERY_PATH to point to your set up on gitpod.

Czaki commented 1 year ago

The xvfb was used in this context. Without xvfb he will not reach visual problems.

psobolewskiPhD commented 12 months ago

@melonora Is this still an issue? A number of tweaks have been done... Second, it looks like a issue with 3D, so might be pointing to something related to OpenGL and drivers.