Skip to content

AttributeError: 'OCP.OCP.TopoDS.TopoDS_Shape' object has no attribute 'HashCode' #18

Open

Description

@flavour

I got this with my initial install as per #17

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

Activity

  1. jseriff commented on Feb 27, 2025

    @jseriff

    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.

  2. hacki11 commented on Jul 13, 2025

    @hacki11

    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
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions