Content-Length: 287044 | pFad | http://github.com/numpy/numpy/pull/29036

74 DOC: Expand/clean up extension module import error by seberg · Pull Request #29036 · numpy/numpy · GitHub
Skip to content

DOC: Expand/clean up extension module import error #29036

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

Merged
merged 4 commits into from
May 23, 2025

Conversation

seberg
Copy link
Member

@seberg seberg commented May 22, 2025

We get a lot of these reports and it is never us... But unfortunately, Python (currently) doesn't report why the module wasn't found. (I have opened an issue asking for that.)

Until Python does, try to figure it out ourselves, i.e. list C modules (I guess its always one, but OK).
If anything it'll give us an immediate thing to point out if an issue is reported...

I also hid the "source import" thing to only occur if config doesn't exist. Not sure that catches this fully, but I also feel like this isn't an actual problem anymore (i.e. we could just delete it also).

Tested locally by renaming or deleting _multiarray_umath.

We get a lot of these reports and it is never us... But unfortunately,
Python (currently) doesn't report *why* the module wasn't found.
(I have  opened an issue asking for that.)

Until Python does, try to figure it out ourselves, i.e. list C modules
(I guess its always one, but OK).
If anything it'll give *us* an immediate thing to point out if an
issue is reported...

I also hid the "source import" thing to only occur if __config__
doesn't exist.  Not sure that catches this fully, but I also feel
like this isn't an actual problem anymore (i.e. we could just delete
it also).

Tested locally by renaming or deleting `_multiarray_umath`.
@jorenham
Copy link
Member

hey, there's got a seggo again 🎉

Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
@charris charris merged commit 1d271d5 into numpy:main May 23, 2025
74 checks passed
@charris
Copy link
Member

charris commented May 23, 2025

Thanks Sebastian.

@seberg seberg deleted the cmodule-import-info branch May 24, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/numpy/numpy/pull/29036

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy