You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an editable install of a python module in a virtual environment managed by pipenv. The package was installed directly from git.
The package is not recognized by pylance unless it is explicitly added to the python.analysis.extraPaths list, even though it is located in the src (vs the lib/.../site-packages) directory. It is included in site-packages.
Environment data
Language Server version: 2023.5.50
OS and version: darwin arm64
Python version (and distribution if applicable, e.g. Anaconda): 3.9.16
python.analysis.indexing: true
python.analysis.typeCheckingMode: basic
Code Snippet
importgreat_expectationsasgx# great_expectations has been installed directly from github using pipenv
Repro Steps
Install an editable module using pipenv: pipenv install -e git+https://github.com/great-expectations/great_expectations.git@develop#egg=great-expectations
Expected behavior
Module is correctly analyzed.
Actual behavior
Module must be included in analysis.extraPaths
Logs
Here are what I think are the relevant logs...
2023-06-08 16:05:46.403 [info] [Info - 4:05:46 PM] (88455) Looking in extraPath '/Users/james/.local/share/virtualenvs/data-validation-3VeP54W-/src/great-expectations'
2023-06-08 16:05:46.403 [info] [Info - 4:05:46 PM] (88455) Attempting to resolve stub package using root path '/Users/james/.local/share/virtualenvs/data-validation-3VeP54W-/src/great-expectations'
2023-06-08 16:05:46.404 [info] [Info - 4:05:46 PM] (88455) Attempting to resolve using root path '/Users/james/.local/share/virtualenvs/data-validation-3VeP54W-/src/great-expectations'
Hard to know what are the right missing logs.
The text was updated successfully, but these errors were encountered:
Thanks for pointing me to the docs--I was able to get it to work as expected by using a pip install instead of pipenv install; if it's an issue at all, then, it would seem to be with having pipenv allow that flag. Thank you!
I have an editable install of a python module in a virtual environment managed by pipenv. The package was installed directly from git.
The package is not recognized by pylance unless it is explicitly added to the
python.analysis.extraPaths
list, even though it is located in thesrc
(vs thelib/.../site-packages
) directory. It is included in site-packages.Environment data
Code Snippet
Repro Steps
Install an editable module using pipenv:
pipenv install -e git+https://github.com/great-expectations/great_expectations.git@develop#egg=great-expectations
Expected behavior
Module is correctly analyzed.
Actual behavior
Module must be included in analysis.extraPaths
Logs
Here are what I think are the relevant logs...
Hard to know what are the right missing logs.
The text was updated successfully, but these errors were encountered: