Skip to content

Run Jupyter failed with Error: Command failed: #2615

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

Closed
muziyongshixin opened this issue Nov 27, 2019 · 3 comments
Closed

Run Jupyter failed with Error: Command failed: #2615

muziyongshixin opened this issue Nov 27, 2019 · 3 comments

Comments

@muziyongshixin
Copy link

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. when run a juypter notebook in vs code, there occures command failed error.
    When I run a general python file in vs code, everything goes well, but when I create a .ipynb file and try to run print('hello world') I got the error below. I have tried several conda enviroments, the result is the same. I am not sure wheather this is caused by the chinese character in the extentsions path.
    And there are garbled characters in the error message, I don’t know what happened.

The error message is below:

Error: Activating Python 3.7.5 64-bit ('torch': conda) to run Jupyter failed with Error: Command failed: D:/software/anaconda/Scripts/activate && conda activate torch && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:/Users/木子-勇士心/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/printEnvVariables.py
ϵͳ�Ҳ���ָ����·����
ϵͳ�Ҳ���ָ����·����
ϵͳ�Ҳ���ָ����·����
ϵͳ�Ҳ���ָ����·����

Expected behavior

hello world

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local
  • Extension version: 2019.11.50794
  • VS Code version: 1.40.2
  • Setting python.jediEnabled: true
  • Python and/or Anaconda version: 3.7
  • OS: Windows
  • Virtual environment: conda

Developer Tools Console Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

@rchiodo
Copy link
Contributor

rchiodo commented Nov 27, 2019

I believe this should be fixed once we ship the fix for this issue:
microsoft/vscode-python#7696

@IanMatthewHuff
Copy link
Member

Actually I think this is related to the unicode issue here, not to the general conda issues.
microsoft/vscode-python#8150

@greazer
Copy link
Member

greazer commented Dec 5, 2019

Will be resolved by microsoft/vscode-python#8928.

@greazer greazer closed this as completed Dec 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 12, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
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

4 participants