Code-server: Installing packages with pip gives locale.Error: unsupported locale setting (Python2.7)

Created on 24 Mar 2019  路  2Comments  路  Source: cdr/code-server


  • 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
bug

Most helpful comment

Try running export LC_ALL=C

Edit
Just saw your referenced issue. Disregard :p

All 2 comments

Try running export LC_ALL=C

Edit
Just saw your referenced issue. Disregard :p

Closing since it looks like the dockerfile was merged

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Arsaev picture Arsaev  路  3Comments

infogulch picture infogulch  路  3Comments

korzq picture korzq  路  3Comments

grant picture grant  路  3Comments

avelino picture avelino  路  3Comments