Skip to content
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

ModuleNotFoundError with import-mode=importlib and src layout #10228

Open
jaraco opened this issue Aug 19, 2022 · 0 comments
Open

ModuleNotFoundError with import-mode=importlib and src layout #10228

jaraco opened this issue Aug 19, 2022 · 0 comments
Labels
topic: collection related to the collection phase topic: config related to config handling, argument parsing and config file

Comments

@jaraco
Copy link
Contributor

jaraco commented Aug 19, 2022

In #3396, I'm exploring a fix for namespace packages, but the fix requires the use of import-mode=importlib. When I enable that setting on configparser, it fails with:

ModuleNotFoundError: No module named 'src.backports'; 'src' is not a package

I tried applying the fix in #7936, which promises to address the issue, but the issue persists.

In this case, the failure is not in the tests, but in the package itself. backports.configparser should be able to import relative to that package.

@Zac-HD Zac-HD added topic: collection related to the collection phase topic: config related to config handling, argument parsing and config file labels Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: collection related to the collection phase topic: config related to config handling, argument parsing and config file
Projects
None yet
Development

No branches or pull requests

2 participants