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

macOS M1, Python 3.10, ModuleNotFoundError: No module named 'OCP' #1444

Closed
fferri opened this issue Nov 20, 2023 · 1 comment
Closed

macOS M1, Python 3.10, ModuleNotFoundError: No module named 'OCP' #1444

fferri opened this issue Nov 20, 2023 · 1 comment

Comments

@fferri
Copy link

fferri commented Nov 20, 2023

Not sure this is a duplicate of #590.

I am on macOS 13 arm64 and want to install cadquery with pip.

According to https://cadquery.readthedocs.io/en/latest/installation.html#install-via-pip 3.10 is the maximum Python version supported, so I installed python3.10 (via homebrew), then python3.10 -m pip install ocp cadquery (installed versions 0.1.9 and 2.3.0 respectively).

Then I run a cadquery script, but it fails:

$ python3.10 somescript.py
Traceback (most recent call last):
  File "somescript.py", line 1, in <module>
    import cadquery as cq
  File "/opt/homebrew/lib/python3.10/site-packages/cadquery/__init__.py", line 10, in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
  File "/opt/homebrew/lib/python3.10/site-packages/cadquery/occ_impl/geom.py", line 5, in <module>
    from OCP.gp import (
ModuleNotFoundError: No module named 'OCP'
@jmwright
Copy link
Member

@fferri M1 Mac is not supported by Python wheel yet. Conda should work though.

CadQuery/ocp-build-system#11

@adam-urbanczyk adam-urbanczyk closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants