You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: 'OCP.OCP.TopoDS.TopoDS_Shape' object has no attribute 'HashCode' #18
The issue comes from a newer version of ocp being released & getting installed by default with gflabel (I just did a default pip install gflabel on a brand new Python install)
I fixed the issue using (cadquery-ocp version found from your poetry.lock): pip install cadquery-ocp==7.7.2 ocpsvg==0.3.4
Looks like this also needs build123d==0.8.0 now as well. Atleast on a mac, it will also require python@3.12 or lower, as there is no wheel for cadquery-ocp=7.7.2 on the later versions of python.
build123d 0.9.1 supporting python > 3.12 is now available.
Unfortunately I can't install gflabel 0.2.0 because it only supports python < 3.13.
Is the release of build123d supporting python > 3.12 now a reason to also support python > 3.12 in gflabel? Would be great, so the tool would just work then.
For now I installed with pip install build123d==0.9.1 which shows a conflict with gflabel but it works now.
> pip install build123d==0.9.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
gflabel 0.1.7 requires build123d<0.6.0,>=0.5.0, but you have build123d 0.9.1 which is incompatible.
Successfully installed build123d-0.9.1
> pip install gflabel==0.2.0
Defaulting to user installation because normal site-packages is not writeable
ERROR: Ignored the following versions that require a different python version: 0.2.0 Requires-Python <3.13,>=3.10
ERROR: Could not find a version that satisfies the requirement gflabel==0.2.0 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7)
ERROR: No matching distribution found for gflabel==0.2.0
Activity
jseriff commentedon Feb 27, 2025
Looks like this also needs
build123d==0.8.0now as well. Atleast on a mac, it will also require python@3.12 or lower, as there is no wheel for cadquery-ocp=7.7.2 on the later versions of python.hacki11 commentedon Jul 13, 2025
build123d 0.9.1 supporting python > 3.12 is now available.
Unfortunately I can't install gflabel 0.2.0 because it only supports python < 3.13.
Is the release of build123d supporting python > 3.12 now a reason to also support python > 3.12 in gflabel? Would be great, so the tool would just work then.
For now I installed with
pip install build123d==0.9.1which shows a conflict with gflabel but it works now.