Skip to content

locale.Error: unsupported locale setting #10843

Closed

Description

@hlacikd

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 (View→Output, 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

Activity

  1. added
    triage-needed
    bug
    on Mar 28, 2020
  2. vassilyl commented on Mar 30, 2020

    @vassilyl

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

  3. riazjahangir commented on Mar 30, 2020

    @riazjahangir

    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).

  4. ghost removed
    triage-needed
    on Mar 30, 2020
  5. int19h commented on Mar 30, 2020

    @int19h

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

  6. ghost removed on Mar 30, 2020
  7. locked as resolved and limited conversation to collaborators on Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions