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

unknown locale: UTF-8 in preprocessing.py file #1

Open
ghost opened this issue Mar 4, 2017 · 1 comment
Open

unknown locale: UTF-8 in preprocessing.py file #1

ghost opened this issue Mar 4, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 4, 2017

Hi,

I'm trying to execute the jupiter notebook Introduction. However I've been having an issue with the line "from dariah_topics import preprocessing as pre". I get always the following error:

Traceback (most recent call last):

File "/Users/MissOgra/Topics/dariah_topics/preprocessing.py", line 28, in
import regex
File "/Users/MissOgra/anaconda3/lib/python3.5/site-packages/regex.py", line 683, in
_pattern_type = type(_compile("", 0, {}))
File "/Users/MissOgra/anaconda3/lib/python3.5/site-packages/regex.py", line 436, in _compile
pattern_locale = _getlocale()[1]
File "/Users/MissOgra/anaconda3/lib/python3.5/locale.py", line 577, in getlocale
return _parse_localename(localename)
File "/Users/MissOgra/anaconda3/lib/python3.5/locale.py", line 486, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8

Any ideas about how can I resolve this problem?

Thank you.

Carolina

@SinaB0ck
Copy link
Contributor

SinaB0ck commented Mar 5, 2017

Hi Carolina,

if you using Anaconda on Mac OS X one this solution might help -> http://patrick.arminio.info/fix-valueerror-unknown-locale-utf8/

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

No branches or pull requests

1 participant