beeware / Python-Apple-support

A meta-package for building a version of Python that can be embedded into a macOS, iOS, tvOS or watchOS project.
MIT License
1.11k stars 160 forks source link

ImportError when import numpy on iOS at 3.8 #83

Closed youmenglidang closed 2 years ago

youmenglidang commented 4 years ago

.py could run on my mac(python3.8 as same), but after building python 3.8 environment on ios,when i copy numpy module into python some path it got wrong. Please see detail blow.

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/init.py", line 17, in from . import multiarray File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/multiarray.py", line 14, in from . import overrides File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/overrides.py", line 7, in from numpy.core._multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "snore_screening.py", line 28, in File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/init.py", line 142, in from . import core File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/init.py", line 47, in raise ImportError(msg) ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.

Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead.

Original error was: No module named 'numpy.core._multiarray_umath'

freakboy3742 commented 2 years ago

Closing as we're deprecating the numpy build system provided by this project, in favour of a more comprehensive approach to support binary packages.