Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stpyvista not displaying .stl file when deployed on community cloud #25

Closed
TomCarts opened this issue Jul 6, 2024 · 1 comment
Closed

Comments

@TomCarts
Copy link

TomCarts commented Jul 6, 2024

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.

67bf4028e7fdf36583894ae40936b65630eb89e3

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

dad014cdd37eaa5394dcf9c494a1251563d8a000

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

@edsaac
Copy link
Owner

edsaac commented Jul 19, 2024

Copy-pasting here my reply in the Streamlit forum:

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.

I will mark this cadquery conflict as a known issue. 🦖

@edsaac edsaac closed this as completed Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants