Skip to content

How to deal with namespace-packages that are split between multiple repos? #17286

Answered by benjyw
TalAmuyal asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for posting this, and for the easy repro.

The issue here is due to this code:

# If the module is not found, try the parent, if any. This is to accommodate `from`

That code exists so that we correctly infer from imports that import a symbol defined in a file. E.g., from my_project.app import App.

In this case, it is causing us to identify pacifica_db/pacifica/__init__.py as a potential provider of pacifica.cli, even though it isn't.

Will think about a solution.

Replies: 4 comments 9 replies

Comment options

benjyw
Oct 20, 2022
Maintainer Sponsor

You must be logged in to vote
5 replies
@TalAmuyal
Comment options

@TalAmuyal
Comment options

@TalAmuyal
Comment options

@benjyw
Comment options

benjyw Oct 23, 2022
Maintainer Sponsor

@benjyw
Comment options

benjyw Oct 23, 2022
Maintainer Sponsor

Answer selected by TalAmuyal
Comment options

benjyw
Oct 23, 2022
Maintainer Sponsor

You must be logged in to vote
2 replies
@TalAmuyal
Comment options

@benjyw
Comment options

benjyw Oct 23, 2022
Maintainer Sponsor

Comment options

benjyw
Oct 23, 2022
Maintainer Sponsor

You must be logged in to vote
2 replies
@benjyw
Comment options

benjyw Oct 23, 2022
Maintainer Sponsor

@TalAmuyal
Comment options

Comment options

benjyw
Nov 8, 2022
Maintainer Sponsor

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants