-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Environment in terminal different than bottom left, no warning that they are mismatching #15814
Comments
Did you install these packages while Pylance was running and expected to see them resolve, or was this a project you opened where the packages were already installed? Do you have the correct interpreter selected at the bottom left? We use the same python interpreter for imports that is activated in the Python extension. Do you have trace logs? Our bug template asks for them. https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue |
Thanks. The environment was the problem. It looks like the environment used in the terminal window is different from the environment in the bottom left corner or the environment being used in the shell when vscode is launched. It would be nice to get some help or a warning when the environments are different.
José
From: Jake Bailey ***@***.***>
Sent: Tuesday, March 30, 2021 12:15 PM
To: microsoft/pylance-release ***@***.***>
Cc: Jose Oglesby ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/pylance-release] Installed packages reported as missing (#1105)
Did you install these packages while Pylance was running and expected to see them resolve, or was this a project you opened where the packages were already installed?
Do you have the correct interpreter selected at the bottom left? We use the same python interpreter for imports that is activated in the Python extension.
Do you have trace logs? Our bug template asks for them. https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://github.com/microsoft/pylance-release/issues/1105#issuecomment-810512672>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANXOXNTWG5SLICS2NMXFUVTTGIPJVANCNFSM42CX6UGQ>.
|
I'm not entirely certain how the Python extension would be able to tell, but I can transfer this issue to them as that sort of thing (interpreter selection and terminal activation) is under their purview). |
@jose-applesox If you are using virtual environment then it should activate in the terminal. Please provide details on the environment type and logs from But if it is non-virtual environment based python, then |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off. |
Environment data
Imported mip and openpyxl with pip and requirements.txt
Expected behaviour
No error
Actual behaviour
Import could not be resolved. Interpreter runs OK.
The text was updated successfully, but these errors were encountered: