Skip to content

show doesn't work in python 3.13 but works in 3.12 #1944

@dvd101x

Description

@dvd101x

To Reproduce

Making a new venv on 3.13.9 installing cadquery (pip) and running the example for show

from cadquery import *
from cadquery.vis import show

w = Workplane().sphere(1).split(keepBottom=True) - Workplane().sphere(0.5)
r = w.faces('>Z').fillet(0.1)

# Show the result
show(r, alpha=0.5)

Throws an error, but the same procedure of creating a venv in 3.12.10, installing cadquery and running the show example works as expected.

I found it while trying to make a mixture of cadquery and sdf (like microgen), I don't specifically need 3.13, just filling the report in case it helps.

Backtrace

^CVTK not installed
Traceback (most recent call last):
  File "/Users/david/Documents/code/cq2/test.py", line 1, in <module>
    from cadquery import *
  File "/Users/david/Documents/code/cq2/lib/python3.13/site-packages/cadquery/__init__.py", line 11, in <module>
    from .occ_impl.shapes import (
    ...<9 lines>...
    )
  File "/Users/david/Documents/code/cq2/lib/python3.13/site-packages/cadquery/occ_impl/shapes.py", line 292, in <module>
    from OCP.IVtkOCC import IVtkOCC_Shape, IVtkOCC_ShapeMesher
ImportError: cannot import name 'IVtkOCC_Shape' from 'OCP.IVtkOCC' (/Users/david/Documents/code/cq2/lib/python3.13/site-packages/OCP/IVtkOCC/__init__.py)

Environment

OS:
MaxOS 26.1
Sorry, I wasn't using conda, I was using pip.

Was CadQuery installed using Conda?:
Output of conda list from your active Conda environment:

Using:
Python interpreter

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpip

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions