Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

VSCode Extension: Python import parsing ignores requirements.txt / import tooling #10

Open
evankanderson opened this issue Nov 6, 2023 · 0 comments

Comments

@evankanderson
Copy link
Member

Python library import foo statements don't always line up with the package name on pypi. This is probably partially historical accident (libraries existed before PyPI, and PyPI didn't enforce a mapping between package names and how they are imported). This shows up with a number of modules, for example, the elasticsearch7 package, which installs as import elasticsearch. (This example is benign, but was easy to find.)

I think the proper fix requires understanding requirements.txt and the python library imports -- maybe from the PyLance python language server?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant