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

Doesn't run on OS X 10.10b6 #32

Closed
GoogleCodeExporter opened this issue Aug 23, 2015 · 3 comments
Closed

Doesn't run on OS X 10.10b6 #32

GoogleCodeExporter opened this issue Aug 23, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

MacBook-Pro% uname -a
Darwin MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0: Sat Aug  9 
00:14:02 PDT 2014; root:xnu-2782.1.80~2/RELEASE_X86_64 x86_64
MacBook-Pro% cd ~/Downloads/gitinspector-0.3.2 
MacBook-Pro% env|grep LC
LC_CTYPE=UTF-8
MacBook-Pro% python2.6 gitinspector/gitinspector.py
Traceback (most recent call last):
  File "gitinspector/gitinspector.py", line 25, in <module>
    localization.init()
  File "/Users/niklas/Downloads/gitinspector-0.3.2/gitinspector/localization.py", line 43, in init
    lang = locale.getlocale()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 497, in getlocale
    return _parse_localename(localename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
MacBook-Pro% python2.7 gitinspector/gitinspector.py
Traceback (most recent call last):
  File "gitinspector/gitinspector.py", line 25, in <module>
    localization.init()
  File "/Users/niklas/Downloads/gitinspector-0.3.2/gitinspector/localization.py", line 43, in init
    lang = locale.getlocale()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 530, in getlocale
    return _parse_localename(localename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 443, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
MacBook-Pro% export LC_CTYPE=en_us
MacBook-Pro% python2.6 gitinspector/gitinspector.py
WARNING: The terminal encoding is not correctly configured. gitinspector might 
malfunction. The encoding can be configured with the environment variable 
'PYTHONIOENCODING'.
Traceback (most recent call last):
  File "gitinspector/gitinspector.py", line 202, in <module>
    main()
  File "gitinspector/gitinspector.py", line 118, in main
    argv = terminal.convert_command_line_to_utf8()
  File "/Users/niklas/Downloads/gitinspector-0.3.2/gitinspector/terminal.py", line 121, in convert_command_line_to_utf8
    argv.append(arg.decode(sys.stdin.encoding, "replace"))
TypeError: decode() argument 1 must be string, not None
MacBook-Pro% unset LC_CTYPE
MacBook-Pro% python2.6 gitinspector/gitinspector.py
Traceback (most recent call last):
  File "gitinspector/gitinspector.py", line 25, in <module>
    localization.init()
  File "/Users/niklas/Downloads/gitinspector-0.3.2/gitinspector/localization.py", line 48, in init
    os.environ['LANG'] = lang[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py", line 471, in __setitem__
    putenv(key, item)
TypeError: putenv() argument 2 must be string, not None
MacBook-Pro% python2.7 gitinspector/gitinspector.py
Traceback (most recent call last):
  File "gitinspector/gitinspector.py", line 25, in <module>
    localization.init()
  File "/Users/niklas/Downloads/gitinspector-0.3.2/gitinspector/localization.py", line 48, in init
    os.environ['LANG'] = lang[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 471, in __setitem__
    putenv(key, item)
TypeError: must be string, not None

Original issue reported on code.google.com by nik...@saers.com on 20 Aug 2014 at 12:47

@GoogleCodeExporter
Copy link
Author

Hi. I belive your terminal is incorrectly configured. Hence the warning. This 
is a common problem under default OS X installations.

See 
http://stackoverflow.com/questions/19961239/pelican-3-3-pelican-quickstart-error
-valueerror-unknown-locale-utf-8 and also check out issue 9 and issue 19 for 
further information.

A workaround could be to ignore localization when LANG is missing, but it's not 
really correct behaviour :)

Hopefully, the information referenced above will help you resolve it.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 21 Aug 2014 at 12:54

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Marking as invalid, considering the cause.

Original comment by gitinspe...@ejwa.se on 8 Sep 2014 at 12:08

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Issue 53 has been merged into this issue.

Original comment by gitinspe...@ejwa.se on 27 Dec 2014 at 6:12

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

2 participants