Title: Python 3.13.0, 3.13.1 python_d.exe cannot import numpy, python.exe works fine. · Issue #127619 · python/cpython · GitHub
Open Graph Title: Python 3.13.0, 3.13.1 python_d.exe cannot import numpy, python.exe works fine. · Issue #127619 · python/cpython
X Title: Python 3.13.0, 3.13.1 python_d.exe cannot import numpy, python.exe works fine. · Issue #127619 · python/cpython
Description: Bug report Bug description: import numpy Using 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 success...
Open Graph Description: Bug report Bug description: import numpy Using 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 ...
X Description: Bug report Bug description: import numpy Using 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 ...
Opengraph URL: https://github.com/python/cpython/issues/127619
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python 3.13.0, 3.13.1 python_d.exe cannot import numpy, python.exe works fine.","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\n```python\r\nimport numpy\r\n```\r\nUsing 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.\r\n\r\nThis 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.\r\n\r\n\r\nBelow is the output from running in a cmd window on Windows\r\n\r\n```pytb\r\nc:\\Program Files\\Python313\u003e.\\python_d.exe\r\nPython 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 18:47:37) [MSC v.1942 64 bit (AMD64)] on win32\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import numpy\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\panels\\AppData\\Roaming\\Python\\Python313\\site-packages\\numpy\\_core\\__init__.py\", line 23, in \u003cmodule\u003e\r\n from . import multiarray\r\n File \"C:\\Users\\panels\\AppData\\Roaming\\Python\\Python313\\site-packages\\numpy\\_core\\multiarray.py\", line 10, in \u003cmodule\u003e\r\n from . import overrides\r\n File \"C:\\Users\\panels\\AppData\\Roaming\\Python\\Python313\\site-packages\\numpy\\_core\\overrides.py\", line 8, in \u003cmodule\u003e\r\n from numpy._core._multiarray_umath import (\r\n add_docstring, _get_implementing_args, _ArrayFunctionDispatcher)\r\nModuleNotFoundError: No module named 'numpy._core._multiarray_umath'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\panels\\AppData\\Roaming\\Python\\Python313\\site-packages\\numpy\\__init__.py\", line 127, in \u003cmodule\u003e\r\n from numpy.__config__ import show as show_config\r\n File \"C:\\Users\\panels\\AppData\\Roaming\\Python\\Python313\\site-packages\\numpy\\__config__.py\", line 4, in \u003cmodule\u003e\r\n from numpy._core._multiarray_umath import (\r\n ...\u003c3 lines\u003e...\r\n )\r\n File \"C:\\Users\\panels\\AppData\\Roaming\\Python\\Python313\\site-packages\\numpy\\_core\\__init__.py\", line 49, in \u003cmodule\u003e\r\n raise ImportError(msg)\r\nImportError:\r\n\r\nIMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!\r\n\r\nImporting the numpy C-extensions failed. This error can happen for\r\nmany reasons, often due to issues with your setup or how NumPy was\r\ninstalled.\r\n\r\nWe have compiled some common reasons and troubleshooting tips at:\r\n\r\n https://numpy.org/devdocs/user/troubleshooting-importerror.html\r\n\r\nPlease note and check the following:\r\n\r\n * The Python version is: Python3.13 from \"c:\\Program Files\\Python313\\python_d.exe\"\r\n * The NumPy version is: \"2.1.3\"\r\n\r\nand make sure that they are the versions you expect.\r\nPlease carefully study the documentation linked above for further help.\r\n\r\nOriginal error was: No module named 'numpy._core._multiarray_umath'\r\n\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"\u003cpython-input-0\u003e\", line 1, in \u003cmodule\u003e\r\n import numpy\r\n File \"C:\\Users\\panels\\AppData\\Roaming\\Python\\Python313\\site-packages\\numpy\\__init__.py\", line 132, in \u003cmodule\u003e\r\n raise ImportError(msg) from e\r\nImportError: Error importing numpy: you should not try to import numpy from\r\n its source directory; please exit the numpy source tree, and relaunch\r\n your python interpreter from there.\r\n\u003e\u003e\u003e\r\n```\r\n### CPython versions tested on:\r\n\r\n3.13\r\n\r\n### Operating systems tested on:\r\n\r\nWindows","author":{"url":"https://github.com/prniii","@type":"Person","name":"prniii"},"datePublished":"2024-12-04T21:42:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/127619/cpython/issues/127619"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6d7a7578-e2c2-78e9-ee38-423591e26d0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D78:2DA0AC:C71B92:10F1F6F:6A55B332 |
| html-safe-nonce | 97376f20b21e013a788cd35a370ddd5a02e884e3f8cb236a6a2fc90cfd180e89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDc4OjJEQTBBQzpDNzFCOTI6MTBGMUY2Rjo2QTU1QjMzMiIsInZpc2l0b3JfaWQiOiIzOTI4NDE3MzQ2ODgxMTcyMjc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eb94d75022fb8e5b852e6be00cbab3a586fc0876b878c72971812479dacfbe1f |
| hovercard-subject-tag | issue:2718845198 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/127619/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dad66e9f9ff66c271b5452f907103ca143bfdc419e53177303a06322f1f6f984/python/cpython/issues/127619 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dad66e9f9ff66c271b5452f907103ca143bfdc419e53177303a06322f1f6f984/python/cpython/issues/127619 |
| og:image:alt | Bug report Bug description: import numpy Using 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | prniii |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653fccf1e27344851c0d3de3fa6faa526197f072 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width