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
When LANG environment variable is set to C, the following happens:
% ./gitinspector/gitinspector.py -h
Traceback (most recent call last):
File "./gitinspector/gitinspector.py", line 25, in <module>
localization.init()
File "./gitinspector/localization.py", line 54, in init
filename = basedir.get_basedir() + "/translations/messages_%s.mo" % lang[0][0:2]
TypeError: 'NoneType' object is unsubscriptable
The attached fix avoids the problem by not using translations in this case.
Original issue reported on code.google.com by vzeitlin@gmail.com on 7 Jun 2014 at 9:21
The fix is needed even for setup portion:
+ /usr/bin/python setup.py build --build-base build-2
Traceback (most recent call last):
File "setup.py", line 22, in <module>
from gitinspector.version import __version__
File "/home/users/glen/rpm/BUILD/x86_64-linux/gitinspector-0.3.2/gitinspector/version.py", line 27, in <module>
import gitinspector.localization
File "/home/users/glen/rpm/BUILD/x86_64-linux/gitinspector-0.3.2/gitinspector/gitinspector.py", line 25, in <module>
localization.init()
File "/home/users/glen/rpm/BUILD/x86_64-linux/gitinspector-0.3.2/gitinspector/localization.py", line 50, in init
filename = basedir.get_basedir() + "/translations/messages_%s.mo" % lang[0][0:2]
TypeError: 'NoneType' object has no attribute '__getitem__'
error: Bad exit status from /home/users/glen/tmp/rpm-tmp.93968 (%build)
Original comment by elan.ruu...@gmail.com on 8 Nov 2014 at 5:49
Original issue reported on code.google.com by
vzeitlin@gmail.com
on 7 Jun 2014 at 9:21Attachments:
The text was updated successfully, but these errors were encountered: