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

Cannot detect imports inside pyz package #3887

Closed
galah92 opened this issue Oct 9, 2020 · 2 comments · Fixed by pylint-dev/astroid#1161
Closed

Cannot detect imports inside pyz package #3887

galah92 opened this issue Oct 9, 2020 · 2 comments · Fixed by pylint-dev/astroid#1161
Labels
Enhancement ✨ Improvement to a component Needs astroid update Needs an astroid update (probably a release too) before being mergable Proposal 📨
Milestone

Comments

@galah92
Copy link

galah92 commented Oct 9, 2020

Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is.
I'm building and packaging my app using the zipapp module to create a myapp.pyz app. Then, I'm able to import modules from inside it (in a new python script). pylint can't detect these imports and can't search for the code inside.

Describe the solution you'd like

I'd like pylint to support importing from .pyz files.

Thanks!

@hippo91
Copy link
Contributor

hippo91 commented Oct 17, 2020

@galah92 thanks for this idea. However i m unable to estimate the amount of work required to achieve this.

@PCManticore
Copy link
Contributor

I think this makes sense but it will be mostly handled in astroid.

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.11.0 milestone Sep 2, 2021
@Pierre-Sassoulas Pierre-Sassoulas added the Needs astroid update Needs an astroid update (probably a release too) before being mergable label Sep 2, 2021
@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 2.11.0, 2.12.0 Sep 4, 2021
Pierre-Sassoulas pushed a commit to pylint-dev/astroid that referenced this issue Sep 10, 2021
@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 2.12.0, 2.11.0 Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component Needs astroid update Needs an astroid update (probably a release too) before being mergable Proposal 📨
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants