td-gonzales / gitinspector

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

UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 129: \ at end of string #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download on Mac OS X 10.8.3
2. Extract
3. Run "./gitinspector.py THl ~/repos/my/webapp/"

Result:
$ ./gitinspector.py THl ~/repos/nelo2/webapp/
Traceback (most recent call last):
  File "./gitinspector.py", line 136, in <module>
    __run__.output()
  File "./gitinspector.py", line 57, in output
    outputable.output(changes.ChangesOutput(self.hard))
  File "/Users/nbp/Downloads/gitinspector/outputable.py", line 37, in output
    outputable.output_text()
  File "/Users/nbp/Downloads/gitinspector/changes.py", line 225, in output_text
    authorinfo_list = get(self.hard).get_authorinfo_list()
  File "/Users/nbp/Downloads/gitinspector/changes.py", line 158, in get
    __changes__ = Changes(hard)
  File "/Users/nbp/Downloads/gitinspector/changes.py", line 102, in __init__
    i = codecs.getdecoder("unicode_escape")(i.strip())[0]
UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 
129: \ at end of string

What is the expected output? What do you see instead?
The stats for the specified git repository.

What version of the product are you using? On what operating system?
0.2.0

Please provide any additional information below.

Original issue reported on code.google.com by kadish...@gmail.com on 14 Jun 2013 at 6:25

GoogleCodeExporter commented 9 years ago
The same error occurs on Ubuntu 12.04 x64 as well.

Original comment by kadish...@gmail.com on 14 Jun 2013 at 7:19

GoogleCodeExporter commented 9 years ago
Hi. Thanks for your report.

It looks like there is a dangling "\" character at the end of some string 
somewhere.

Most "UnicodeDecode" errors should have been fixed in the current master branch.
I am however not sure if I have seen this specific one directly related to 
"unicodeescape". Maybe it is related to your Python version?

Which version of Python are you running under?

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 14 Jun 2013 at 7:18

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 8a386225fd9f.

Original comment by gitinspe...@ejwa.se on 17 Jun 2013 at 5:51

GoogleCodeExporter commented 9 years ago
The revision above hopefully fixes it. Ignoring the failed decode should be an 
acceptable solution in this case.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 17 Jun 2013 at 5:53

GoogleCodeExporter commented 9 years ago
Is the fix in 0.2.2 already? Can I use it?

Original comment by kadish...@gmail.com on 17 Jun 2013 at 5:55

GoogleCodeExporter commented 9 years ago
The fix is pushed up to the master branch. You will have to check out the 
master branch to use it. I will make a new release eventually.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 17 Jun 2013 at 6:10