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

UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c #4

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

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 14 Jun 2013 at 6:25

@GoogleCodeExporter
Copy link
Author

The same error occurs on Ubuntu 12.04 x64 as well.

Original comment by [email protected] on 14 Jun 2013 at 7:19

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 14 Jun 2013 at 7:18

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision 8a386225fd9f.

Original comment by [email protected] on 17 Jun 2013 at 5:51

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

The revision above hopefully fixes it. Ignoring the failed decode should be an 
acceptable solution in this case.

/Adam Waldenberg

Original comment by [email protected] on 17 Jun 2013 at 5:53

@GoogleCodeExporter
Copy link
Author

Is the fix in 0.2.2 already? Can I use it?

Original comment by [email protected] on 17 Jun 2013 at 5:55

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 17 Jun 2013 at 6:10

@adam-waldenberg adam-waldenberg self-assigned this Oct 9, 2015
@adam-waldenberg adam-waldenberg added this to the 0.3.0 milestone Oct 9, 2015
@adam-waldenberg adam-waldenberg changed the title UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 129: \ at end of string UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c Nov 25, 2015
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