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

Upgrading from cadquery-ocp<7.8 to cadquery-ocp>=7.8 #871

Open
jdegenstein opened this issue Jan 15, 2025 · 1 comment
Open

Upgrading from cadquery-ocp<7.8 to cadquery-ocp>=7.8 #871

jdegenstein opened this issue Jan 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jdegenstein
Copy link
Collaborator

Reproduced a user report that during from build123d import * an error occurred: ImportError: cannot import name 'IVtkOCC_Shape' from 'OCP.IVtkOCC' (...\Lib\site-packages\OCP\IVtkOCC\__init__.py)

Traced it down and determined that if an environment previously contained e.g. cadquery-ocp==7.7.2.1 then upgrading to e.g. cadquery-ocp==7.8.x will cause this problem. I suspect that some of the VTK libraries in the older version are not uninstalled completely and are creating some conflicts.

The workaround is create a new clean environment from scratch and directly install the newer version of build123d (and its dependency cadquery-ocp>7.8).

@jdegenstein jdegenstein added the bug Something isn't working label Jan 15, 2025
@jdegenstein
Copy link
Collaborator Author

Another workaround if the installation is broken:

pip uninstall vtk
pip install vtk==9.3.1

@gumyr gumyr added this to the Gating Release 1.0.0 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants