-
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
Activating venv to run Jupyter failed #8112
Comments
This is the problem that I also encoutered, searching for help |
Actually this problem isn't specific to data science. This looks like a bug in the getActivatedEnvironmentVariables? |
I did not encounter any errors when using Python 3.7.5. But after I upgraded to Pyhton 3.8.0, when I executed
This is the error of Jupyter itself on Python 3.8.0, so I manually followed this to fix the error: It now works fine when running
Asking for help now. My info: VS Code -> Help -> About
> python --version
Python 3.8.0
> pip --version
pip 19.3.1 from ...\python38\lib\site-packages\pip (python 3.8)
> jupyter --version
jupyter core : 4.6.1
jupyter-notebook : 6.0.2
qtconsole : 4.5.5
ipython : 7.9.0
ipykernel : 5.1.3
jupyter client : 5.3.4
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 4.4.0
traitlets : 4.3.3 |
me too |
Hey folks, this issue seems to be out of date. If you do still experience it, please file a new bug report so we can investigate. Thanks! |
Bug: Notebook Editor, Interactive Window, Python Editor cells
Steps to cause the bug to occur
Vscode recognizes the venv in the terminal.
"python.pythonPath": "C:\\Users\\myname\\Envs\\myenv\\Scripts\\python.exe",
works as expected.python -m jupyter notebook --version
also works as expected and returns 6.0.1.(tornado had a bug on python3.8 though, which I manually fixed with the solution in tornadoweb/tornado#2751 )
Actual & Expected behavior
activate the notebook in the venv and run the cell with no errors
Your Jupyter and/or Python environment
Developer Tools Console Output
Error Python Extension: 2019-10-19 14:59:31: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, Parameterformat falsch - 850.
at _.getActivatedEnvironmentVariables (c:\Users\myname.vscode\extensions\ms-python.python-2019.10.41019\out\client\extension.js:75:1244856)]
Error Python Extension: 2019-10-19 14:59:31: getActivatedEnvironmentVariables, Class name = _, completed in 218ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"C:\Users\myname\envs\myenv\Scripts\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.0-final","major":3,"minor":8,"patch":0,"prerelease":["final"],"build":[],"version":"3.8.0-final"},"sysPrefix":"C:\Users\myname\envs\myenv","fileHash":"3825012762f2f81474bab568edd5862c7d432337a71852b5d2af2aa0751a97044ebbfb6887e92fd505aeed6dca87c236403040442555e4b92464ffbb485ced96","envName":"myenv","type":"Venv","displayName":"Python 3.8.0 64-bit ('myenv': venv)"}, Arg 3: true { [Error: StdErr from ShellExec, Parameterformat falsch - 850.
at _.getActivatedEnvironmentVariables (c:\Users\myname.vscode\extensions\ms-python.python-2019.10.41019\out\client\extension.js:75:1244856)] vslsStack: [ CallSite {} ] }
The text was updated successfully, but these errors were encountered: