You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I run percol right after installing but I got an error.
So I looked in the code and found the reason why I got this error.
Anybody else got the same error?
Traceback (most recent call last):
File "/usr/local/bin/percol", line 14, in <module>
main()
File "/usr/local/lib/python2.7/site-packages/percol/cli.py", line 186, in main
output_encoding = set_proper_locale(options)
File "/usr/local/lib/python2.7/site-packages/percol/cli.py", line 122, in set_proper_locale
locale.setlocale(locale.LC_ALL, '')
File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 581,in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
I fixed this proble by just putting specific locale "C" into the second parameter. @line 122
locale.setlocale(locale.LC_ALL, 'C')
The text was updated successfully, but these errors were encountered:
Similar error in Emacs ansi-term but python3, it works fine in Mac Terminal though.
~$ percol
Traceback (most recent call last):
File "/usr/local/bin/percol", line 14, in <module>
main()
File "/usr/local/lib/python3.6/site-packages/percol/cli.py", line 186, in main
output_encoding = set_proper_locale(options)
File "/usr/local/lib/python3.6/site-packages/percol/cli.py", line 122, in set_proper_locale
locale.setlocale(locale.LC_ALL, '')
File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/locale.py", line 598, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
~$
It seems Emacs ansi-term will not read ~/.profile, so after source ~/.profile, everything is fine. Also, it's a bad idea use it in any Emacs shell emulator.
@dyong0 Maybe you should check your locale setting.
Hi I run percol right after installing but I got an error.
So I looked in the code and found the reason why I got this error.
Anybody else got the same error?
I fixed this proble by just putting specific locale "C" into the second parameter.
@line 122
The text was updated successfully, but these errors were encountered: