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

Svn log: 'utf8' codec can't decode byte error #271

Closed
fabiodeuzebio opened this issue Jul 1, 2019 · 8 comments
Closed

Svn log: 'utf8' codec can't decode byte error #271

fabiodeuzebio opened this issue Jul 1, 2019 · 8 comments
Labels

Comments

@fabiodeuzebio
Copy link

fabiodeuzebio commented Jul 1, 2019

While viewing the Svn log, I got the following error
image

Here is the contents of the log file
2019-07-01 09:43:02,432 ERROR rabbitvcs.util.__init__ Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/__init__.py", line 120, in start func.start() File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/__init__.py", line 45, in start self.result = self.func(*self.args, **self.kwargs) File "/usr/lib/python2.7/dist-packages/rabbitvcs/ui/log.py", line 478, in refresh msg = helper.format_long_text(item.message, cols = 80, line1only = True) File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/helper.py", line 193, in format_long_text text = text.strip().replace(u"\n", LINE_BREAK_CHAR) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128) 2019-07-01 09:43:02,433 ERROR rabbitvcs.ui.action 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128) None

@pinguingman
Copy link

Have similar issue:
image

@gabrielfin
Copy link

I'm having the same issue. Don't know what's causing it but here's a quick and dirty hack:

In /usr/lib/python2.7/dist-packages/rabbitvcs/util/helper.py line 193 add:

text = text.decode('utf-8')

right before

text = text.strip().replace(u"\n", LINE_BREAK_CHAR)

@monnerat
Copy link

There is currently an experimental branch named encoding in the github repo. It is supposed fixing most encoding-related problems (though filenames with invalid characters in subversion repos are not yet handled). Can you check it out and reinstall everything from there to see if your problems disappear?
Once you'll have installed this version, you must restart the service checker (menu --> RabbitVCS Git --> Settings --> Status Checker --> Restart Checker).

Thanks in advance for feedback.

@fabiodeuzebio
Copy link
Author

I reinstalled everything from there as suggested but the problem still occurs.

2019-08-14 07:57:37,636 ERROR rabbitvcs.util.__init__ Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/__init__.py", line 120, in start func.start() File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/__init__.py", line 45, in start self.result = self.func(*self.args, **self.kwargs) File "/usr/lib/python2.7/dist-packages/rabbitvcs/ui/log.py", line 482, in refresh msg = helper.format_long_text(item.message, cols = 80, line1only = True) File "/usr/lib/python2.7/dist-packages/rabbitvcs/util/helper.py", line 181, in format_long_text text = text.strip().replace(u"\n", LINE_BREAK_CHAR) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128) 2019-08-14 07:57:37,636 ERROR rabbitvcs.ui.action 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128) None

@monnerat
Copy link

Many thanks for the feedback.
I just pushed commit e0abbbc to the encoding branch: this should resolve your issue.

@fabiodeuzebio
Copy link
Author

With this setting now it worked, Thanks !!

@monnerat
Copy link

Many thanks for reporting. This will land in master branch in a few days or weeks, when I'll have some more feedbacks on it from other issues.
Thanks again.

@monnerat monnerat removed the needinfo label Aug 15, 2019
@monnerat
Copy link

It should be fixed now in the master branch. If the problem persists, please reopen this issue. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants