xtrasmal / gitinspector

Automatically exported from code.google.com/p/gitinspector
GNU General Public License v3.0
0 stars 0 forks source link

Doesn't run on OS X 10.10b6 #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Marking as invalid, considering the cause.

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

GoogleCodeExporter commented 9 years ago
Issue 53 has been merged into this issue.

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