Skip to content

Error on import cadquery with new install without explicitly specifying occt version #1304

@lorenzncode

Description

@lorenzncode

Install command: mamba install -c conda-forge cadquery

It looks like this issue is due to new OCCT 7.7.1.

$ python
Python 3.11.0 | packaged by conda-forge | (main, Jan 14 2023, 12:27:40) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cadquery
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/lorenzn/tools/mambaforge_230402/envs/cqreltestbad/lib/python3.11/site-packages/cadquery/__init__.py", line 10, in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
  File "/home/lorenzn/tools/mambaforge_230402/envs/cqreltestbad/lib/python3.11/site-packages/cadquery/occ_impl/geom.py", line 5, in <module>
    from OCP.gp import (
ImportError: /home/lorenzn/tools/mambaforge_230402/envs/cqreltestbad/lib/python3.11/site-packages/OCP.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN20DE_ConfigurationNode10UpdateLoadEv
$ conda list "cadquery|ocp|occt"
# packages in environment at /home/lorenzn/tools/mambaforge_230402/envs/cqreltestbad:
#
# Name                    Version                   Build  Channel
cadquery                  2.2.0              pyhd8ed1ab_0    conda-forge
occt                      7.7.1                h6cf717c_0    conda-forge
ocp                       7.7.0.0         py311hb87e267_1    conda-forge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions