-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Does importlib_resources work for namespace packages? #20
Comments
In GitLab by @brettcannon on Dec 8, 2017, 13:10 changed the description |
In GitLab by @warsaw on Dec 8, 2017, 13:14 changed the description |
1 similar comment
In GitLab by @warsaw on Dec 8, 2017, 13:14 changed the description |
In GitLab by @warsaw on Dec 8, 2017, 13:18 changed title from {-Pedantic error message-} to {+Does importlib_resources work for namespace package?+} |
In GitLab by @warsaw on Dec 8, 2017, 13:21 changed title from Does importlib_resources work for namespace package? to Does importlib_resources work for namespace package{+s+}? |
In GitLab by @brettcannon on Dec 8, 2017, 13:23 Namespace packages will fail eventually, but it will come up as an |
In GitLab by @warsaw on Dec 8, 2017, 14:06 @brettcannon and I are in agreement, namespace packages can't have resources. If we want to relax this later, we can. |
In GitLab by @brettcannon on Dec 8, 2017, 17:01 There actually is a loader for namespace packages but it isn't being set on their spec:
|
In GitLab by @brettcannon on Dec 8, 2017, 17:05 So the question now becomes do we want to make this work? The problem is that if a namespace package spans a file system directory and a zip file then how the heck do we get the appropriate loader for either? Since namespace packages are really just a placeholder for |
In GitLab by @warsaw on Dec 13, 2017, 11:26 mentioned in commit a48726b0a285c92a624b563aedb590ea9af80d10 |
In GitLab by @warsaw on Dec 13, 2017, 11:27 mentioned in merge request !50 |
In GitLab by @warsaw on Dec 13, 2017, 11:30 I have a MR that properly prevents namespace packages from having resources. Along the way I filed bugs for a couple of inconsistencies in namespace package metadata: |
In GitLab by @warsaw on Dec 13, 2017, 14:59 closed via merge request !50 |
In GitLab by @dgreiman on Dec 18, 2017, 17:54 If someone came up with a patch to add support for namespaces, would it be considered? I agree it would be hairy, but all of the google-cloud-* packages are namespace packages, so I'm motivated to get this to work. |
In GitLab by @warsaw on Nov 3, 2017, 20:26
This error message
Technically speaking, I think this can also happen for namespace packages, which are packages, but which shouldn't be usable as an anchor for importlib_resources. So I think this error message might need to change.
The text was updated successfully, but these errors were encountered: