question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when user folder name contains '&'

See original GitHub issue

Issue Type: Bug

Behaviour

Expected vs. Actual

[ERROR 2022-2-21 10:25:37.522]: Error: Command failed: "C:\Program Files\Python39\python.exe" c:\Users\A.B.CCC&DD~YYY\.vscode\extensions\ms-python.python-2022.2.1924087327\pythonFiles\get_output_via_markers.py c:\Users\A.B.CCC&DD~YYY\.vscode\extensions\ms-python.python-2022.2.1924087327\pythonFiles\interpreterInfo.py
C:\Program Files\Python39\python.exe: can't open file 'c:\Users\A.B.CCC': [Errno 2] No such file or directory
ϵͳ�Ҳ���ָ����·����
ϵͳ�Ҳ���ָ����·����

Steps to reproduce:

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.0, 3.10.0
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): None
  • Value of the python.languageServer setting: Default
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: false
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: true
• optInto: []
• optOutFrom: []

insidersChannel: "off"

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2022.2.1924087327 VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:55.248Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tccrabyoguycommented, Apr 7, 2022

Hi, @karrtikr

I can run the python, thanks for your help, have a nice day!

image

0reactions
karrtikrcommented, Apr 6, 2022

Thanks for letting us know! Can you please try to install https://github.com/microsoft/vscode-python/suites/5958529344/artifacts/204630783 and see if it helps?

Read more comments on GitHub >

github_iconTop Results From Across the Web

I had to rename my username because it had a space in it ...
1) Create a new local user account and make it admin. Make sure to assign a working user name. ... I say to...
Read more >
Unable to change user folder name in Windows 10
I simply wanted to change my user folder name in Windows 10. ... An unexpected error is keeping you from renaming this folder....
Read more >
PROBLEMS IF FOLDER NAME CONTAINS AN UNDERSCORE
Problem from Customer: He created folders with one or more underscores in folder names. If he connect to Domino using IMAP the folders...
Read more >
Troubles in VSCode terminal because of user folder name
The command (like a pip install for ex) won't run because my users folder name has a space in it. It shows "C:\User<my...
Read more >
How To Change User Folder Name in Windows 10 - YouTube
Learn, how to change user folder name in Windows 10 after changing the user account name so that you can match the folder...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found