Skip to content

Installing packages with pip gives locale.Error: unsupported locale setting (Python2.7) #326

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
JimiPedros opened this issue Mar 24, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@JimiPedros
Copy link
Contributor

  • Code-Server version: 1.32

  • OS Version: Windows 10

Description

Installing a package with pip produces an error 'locale.Error: unsupported locale setting'

Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Steps to Reproduce

  1. Open ide.coder.com
  2. Open the terminal
  3. Install python and pip
  4. Install a package using pip
@JimiPedros JimiPedros added the bug Something isn't working label Mar 24, 2019
@nol166
Copy link
Contributor

nol166 commented Mar 25, 2019

Try running export LC_ALL=C

Edit
Just saw your referenced issue. Disregard :p

@nol166
Copy link
Contributor

nol166 commented Mar 28, 2019

Closing since it looks like the dockerfile was merged

@nol166 nol166 closed this as completed Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants