Skip to content
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

ValueError: unknown locale when starting kernels #7051

Closed
solueverest opened this issue May 2, 2018 · 3 comments
Closed

ValueError: unknown locale when starting kernels #7051

solueverest opened this issue May 2, 2018 · 3 comments

Comments

@solueverest
Copy link

Problem Description

I can not open spyder in anaconda at ubuntu 18

What steps will reproduce the problem?

  1. Run anaconda
  2. Launch spyder
  3. it doesnot open

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)

Traceback (most recent call last):
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 3126, in main
mainwindow = run_spyder(app, options, args)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 3023, in run_spyder
main.setup()
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 1182, in setup
self.setup_layout(default=False)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 1452, in setup_layout
self.setup_default_layouts('default', settings)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 1628, in setup_default_layouts
widget.toggle_view(True)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/plugins/ipythonconsole.py", line 725, in toggle_view
self.create_new_client(give_focus=False)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/plugins/ipythonconsole.py", line 1033, in create_new_client
self.connect_client_to_kernel(client)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/plugins/ipythonconsole.py", line 1059, in connect_client_to_kernel
stderr_file)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/spyder/plugins/ipythonconsole.py", line 1477, in create_kernel_manager_and_kernel_client
config=None, autorestart=True)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 958, in new
inst.setup_instance(*args, **kwargs)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 986, in setup_instance
super(HasTraits, self).setup_instance(*args, **kwargs)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 977, in setup_instance
value.instance_init(self)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 1691, in instance_init
self._resolve_classes()
File "/home/tesla/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 1696, in _resolve_classes
self.klass = self._resolve_string(self.klass)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 1507, in _resolve_string
return import_item(string)
File "/home/tesla/anaconda3/lib/python3.6/site-packages/traitlets/utils/importstring.py", line 34, in import_item
module = import(package, fromlist=[obj])
File "/home/tesla/anaconda3/lib/python3.6/site-packages/jupyter_client/session.py", line 61, in
from jupyter_client.jsonutil import extract_dates, squash_dates, date_default
File "/home/tesla/anaconda3/lib/python3.6/site-packages/jupyter_client/jsonutil.py", line 28, in
datetime.strptime("1", "%d")
File "/home/tesla/anaconda3/lib/python3.6/_strptime.py", line 280, in
_TimeRE_cache = TimeRE()
File "/home/tesla/anaconda3/lib/python3.6/_strptime.py", line 194, in init
self.locale_time = LocaleTime()
File "/home/tesla/anaconda3/lib/python3.6/_strptime.py", line 72, in init
self.lang = _getlang()
File "/home/tesla/anaconda3/lib/python3.6/_strptime.py", line 31, in _getlang
return locale.getlocale(locale.LC_TIME)
File "/home/tesla/anaconda3/lib/python3.6/locale.py", line 581, in getlocale
return _parse_localename(localename)
File "/home/tesla/anaconda3/lib/python3.6/locale.py", line 490, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: bho_NP

PASTE TRACEBACK HERE

Package Versions

  • Spyder:
  • Python:
  • Qt:
  • PyQt:
  • Operating System:

Dependencies

PASTE DEPENDENCIES HERE
@animeshroy
Copy link

I am having same problem..
applied code:
conda update --all

@ccordoba12
Copy link
Member

ccordoba12 commented May 2, 2018

Thanks for reporting. We'll fix this in our next release.

In the meantime, please start Spyder from a terminal (xterm, konsole, etc) with the following command

LC_ALL=C spyder

That should be enough to workaround this bug until we fix it.

@ccordoba12 ccordoba12 added this to the v3.3 milestone May 2, 2018
@ccordoba12 ccordoba12 changed the title not opening spyder in anaconda(Ubuntu 18) ValueError: unknown locale when starting kernels May 2, 2018
@solueverest
Copy link
Author

solueverest commented May 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants