ejwa / gitinspector

:bar_chart: The statistical analysis tool for git repositories
GNU General Public License v3.0
2.38k stars 328 forks source link

gitinspector crashes with not being able to encode a unicode character #103

Closed Sermus closed 8 years ago

Sermus commented 8 years ago

For me it crashes when it's invoked with python.exe gitinspector.py -lr --format=html --file-types=c,cpp,cs,csproj,sln,sql,xaml,asmx,config,dbml,publishsettigs,bat,settings,cmd,csdef,vcxproj,saproj -x Reference,.designer.cs,GMap.NET,GlobalExpert,onvifcombined,Xmpp -l ../Code/ForestGuard 1>statJan2016.html

The symptom is:

Exception in thread Thread-2993: Traceback (most recent call last): File "C:\Python27\lib\threading.py", line 810, in bootstrap_inner self.run() File "D:\Tools\gitinspector\gitinspector\blame.py", line 94, in run git_blame_r = subprocess.Popen(self.blame_command, bufsize=1, stdout=subprocess.PIPE).stdout File "C:\Python27\lib\subprocess.py", line 710, in __init errread, errwrite) File "C:\Python27\lib\subprocess.py", line 958, in _execute_child startupinfo) UnicodeEncodeError: 'ascii' codec can't encode character u'\u0421' in position 96: ordinal not in range(128)

adam-waldenberg commented 8 years ago

Hi.

Your terminal is probably set to standard ASCII. This is already covered in the FAQ. This is most likely related to the terminal and not gitinspector directly. See issues #9, #19 and #54 for previous discussions on this. There are also a few other issues that cover this.

Please report if any of the above fixes the issue.

Sermus commented 8 years ago

Yes, you're right. Sorry for not reading FAQ section thoroughly enough.

2016-01-28 12:14 GMT+03:00 Adam Waldenberg notifications@github.com:

Hi.

Your terminal is probably set to standard ASCII. This is already covered in the [FAQ (https://github.com/ejwa/gitinspector/wiki/FAQ). This is most likely related to the terminal and not gitinspector directly. See issues #9 https://github.com/ejwa/gitinspector/issues/9, #19 https://github.com/ejwa/gitinspector/issues/19 and #54 https://github.com/ejwa/gitinspector/issues/54 for previous discussions on this. There are also a few other issues that cover this.

Please report if any of the above fixes the issue.

— Reply to this email directly or view it on GitHub https://github.com/ejwa/gitinspector/issues/103#issuecomment-176077015.

adam-waldenberg commented 8 years ago

@Sermus

No worries. Great to hear that it's working. Marking as invalid and closing.