Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Description
Bug report
Bug description:
importnumpyUsing default Python.org installers installed for all users. Running Windows 11 (intel) using the python 3.13 debug executable, python_d.exe numpy gives an ImportError. While the import is successful if using python.exe. My suspicion is the changes that 3.13 militantly enforces making everything debug need an _d suffix. Libraries, python313.zip needs to be python313_d.zip so I'm assuming it's looking for _d libraries in the numpy dirctories as well? I'm seeing a failure on numpy._core._multiarray_umath which is a .pyd file.
This is broken for python_d.exe and embedding the python313_d.dll gives rise to the same issues. It makes a debug build worthless for packages with compiled executables since the pip installs aren't downloading debug builds of the packages.
Below is the output from running in a cmd window on Windows
c:\Program Files\Python313>.\python_d.exe Python 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 18:47:37) [MSC v.1942 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "C:\Users\panels\AppData\Roaming\Python\Python313\site-packages\numpy\_core\__init__.py", line 23, in <module>from . import multiarray File "C:\Users\panels\AppData\Roaming\Python\Python313\site-packages\numpy\_core\multiarray.py", line 10, in <module>from . import overrides File "C:\Users\panels\AppData\Roaming\Python\Python313\site-packages\numpy\_core\overrides.py", line 8, in <module>from numpy._core._multiarray_umath import ( add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\panels\AppData\Roaming\Python\Python313\site-packages\numpy\__init__.py", line 127, in <module>from numpy.__config__ import show as show_config File "C:\Users\panels\AppData\Roaming\Python\Python313\site-packages\numpy\__config__.py", line 4, in <module>from numpy._core._multiarray_umath import ( ...<3 lines>... ) File "C:\Users\panels\AppData\Roaming\Python\Python313\site-packages\numpy\_core\__init__.py", line 49, in <module>raiseImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.13 from "c:\Program Files\Python313\python_d.exe" * The NumPy version is: "2.1.3" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: No module named 'numpy._core._multiarray_umath' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<python-input-0>", line 1, in <module>import numpy File "C:\Users\panels\AppData\Roaming\Python\Python313\site-packages\numpy\__init__.py", line 132, in <module>raiseImportError(msg) from e ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. >>>CPython versions tested on:
3.13
Operating systems tested on:
Windows