Skip to content

locale.Error: unsupported locale setting #10843

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
hlacikd opened this issue Mar 28, 2020 · 3 comments
Closed

locale.Error: unsupported locale setting #10843

hlacikd opened this issue Mar 28, 2020 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@hlacikd
Copy link

hlacikd commented Mar 28, 2020

Environment data

  • VS Code version: 1.43.2
  • Extension version (available under the Extensions sidebar): docker,python,remote developement
  • OS and version: Pop OS 19.10
  • Python version (& distribution if applicable, e.g. Anaconda): docker - python 3.69
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): none
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: ms-python.python

Expected behaviour

Run / Start Debugging, it works , as it worked before some unknown update for past 6 months.
Why is now ms-python touching locales?

Actual behaviour

File "/home/vscode/.vscode-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher/main.py", line 78, in
locale.setlocale(locale.LC_ALL, "")
File "/usr/lib/python3.6/locale.py", line 598, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

just try to debug python code inside any ubuntu 18.04lts container (i've used nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04)

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

vscode@pop-os:/workspaces/yolo-darknet$  env DEBUGPY_LAUNCHER_PORT=45079 /usr/bin/python3 /home/vscode/.vscode-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher /workspaces/yolo-darknet/DarknetVideo.py 
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/vscode/.vscode-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher/__main__.py", line 78, in <module>
    locale.setlocale(locale.LC_ALL, "")
  File "/usr/lib/python3.6/locale.py", line 598, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
@hlacikd hlacikd added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Mar 28, 2020
@vassilyl
Copy link

Same behaviour, Python extension version 2020.3.69010, VS Online default environment.

@riazjahangir
Copy link

Experiencing the same behavior on MacOS 10.15.3 using Python extension 2020.3.69010, and even after downgrading to 2020.2.64397, running Python 3.8.0.

But this was working for me on Friday (3 days ago).

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Mar 30, 2020
@int19h
Copy link

int19h commented Mar 30, 2020

Dupe of microsoft/debugpy#87. We have the fix already, and it'll be in the next release.

@int19h int19h closed this as completed Mar 30, 2020
@ghost ghost removed the triage label Mar 30, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

5 participants