The Wayback Machine - https://web.archive.org/web/20260228003204/https://github.com/python/cpython/pull/145007
Skip to content

GH-145006: add ModuleNotFoundError hints when a module for a differen…#145007

Merged
FFY00 merged 6 commits intopython:mainfrom
FFY00:gh-145006
Feb 25, 2026
Merged

GH-145006: add ModuleNotFoundError hints when a module for a differen…#145007
FFY00 merged 6 commits intopython:mainfrom
FFY00:gh-145006

Conversation

@FFY00
Copy link
Member

@FFY00 FFY00 commented Feb 19, 2026 •

Python 3.15.0a6+ free-threading build (heads/main-dirty:f282f7aed91, Feb 19 2026, 17:33:04) [GCC 15.2.1 20260209] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import foo.ext
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import foo.ext
ModuleNotFoundError: No module named 'foo.ext'. Although a module with this name was found for a different Python version (ext.cpython-315-x86_64-linux-gnu.so).
…fferent ABI exists

Signed-off-by: Filipe Laíns <lains@riseup.net>
@benediktjohannes
Copy link
Contributor

Unforetunately, multiple checks seem to be failing, I'll have a look on this

Copy link
Contributor

@benediktjohannes benediktjohannes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that this should fix the failing tests

Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00
Copy link
Member Author

FFY00 commented Feb 24, 2026

Thanks for the review @benediktjohannes! I had forgotten we deprecated passing strings to the MultiplexedPath constructor. I opted to fix it using map as I think, in this case, chaining map and filter reads a little easier than using a list comprehension to do both the type conversion and filtering together. Though this is very much a personal preference 😄

@benediktjohannes
Copy link
Contributor

Thank you for the fix! You are welcome!

…ilable

Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00 FFY00 merged commit 1ac9d13 into python:main Feb 25, 2026
47 checks passed
@hugovk
Copy link
Member

hugovk commented Feb 25, 2026

Reminder for next time, please try and keep the squashed commit message a bit tidier: 1ac9d13.

A descriptive commit body isn't necessary, but let's keep out the individual commit messages. I usually remove the whole thing via Refined GitHub.

Thanks!

@FFY00
Copy link
Member Author

FFY00 commented Feb 25, 2026

Ah, sorry!

Do you know the name of the Refined Github setting to remove the automatically generated squash description? I can't seem to find it.

@hugovk
Copy link
Member

hugovk commented Feb 25, 2026

I use the defaults, and helpfully the merge box shows, this linking to the clear-pr-merge-commit-message rule:

The description field was cleared by Refined GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants