Stpyvista not displaying .stl file when deployed on community cloud

Hi there,

I have been using @edsaac stpyvista component to provide a visulisation to support an engineering optimisation exercise for a simple retaining wall calculation but I am having issues once deploying to the cloud.

The application runs fine when running locally, see snip below.

But when I deploy it with recommended packages It doesn’t display anything, see snip below

The app is live here → https://lunitoptimisation.streamlit.app/

And the code is here → GitHub - TomCarts/L_Unit_Optimisation: Streamlit application for optimising an 'L' shaped retaining wall under global sliding and overturning

Any help really appreciated

@tom.cartigny, what version of Python are you using to deploy? I have only seen that happen under <=3.9 (for example, Coloration abnormalities · Issue #19 · edsaac/stpyvista · GitHub).

1 Like

I managed to get the visualization going:

The issue seems to be that cadquery bundles an outdated version of vtk, which ends up conflicting with the vtk that pyvista uses as a dependency (cadquery and vtk compatibility · Issue #23 · CadQuery/ocp-build-system · GitHub). Playing with the order the dependencies are resolved in the requirements.txt seems to do the trick.


Would you open an issue in the stpyvista repository to get this properly documented?


A related post with instructions on installing cadquery and pyvista:

1 Like

That’s brilliant thank you very much. I will do,

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.