-
Notifications
You must be signed in to change notification settings - Fork 29
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
Installation Order - OCP with VTK and PyVista [pip specific issues] #119
Comments
@akaszynski - are you installing OCP via conda? |
This is all just from good old |
@akaszynski I see. This may not be an adequate solution for you, but this should "just work" if you use This seems to be mainly an issue with the wheels, whose builds are handled in a separate project - https://github.com/CadQuery/ocp-build-system/. Cross-referencing your issue there (CadQuery/ocp-build-system#14) |
Yep, I recall opening that there, but reposted here so that others could know there's a solution. Sadly, conda isn't an option for me at this point due to issues repackaging with |
Here's another (albeit still non-ideal) hack. Install everything normally and then proceed to reinstall
|
Thanks for sharing, noted. Still, the advised installation method is conda.
There should not be any fundamental issue pyinstaller and conda. BTW: recently for CQ-editor, we switched to constructor. Maybe something to try? |
Ran into an issue recently where tessellation to VTK wasn't working:
Where
pdata
was output asNone
. Same issue using the more concise:After a bit of debugging, turns out the issue will occur if you install
vtk
with:pip install vtk==9.2.5
.Since OCP installs the
vtkmodules
directory, this is silently overwritten when installingvtk
.This is an issue on my end since I'm using
cadquery
and I'd like to also plot the resulting CAD usingpyvista
, which depends on thevtk
package. The only way I can think to work around this is to installpyvista
with no dependencies. If anyone wishes to plot cadquery shapes usingpyvista
, here's a minimum working example:Followed by installing pyvista without VTK
This works and the plots look great!
Ask for the maintainers: Is there any way for
OCP
to use a pre-compiled version of VTK? Is there any other way of working around this issue?The text was updated successfully, but these errors were encountered: