UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 80769: ordinal not in range(128)

486 views
Skip to first unread message

Sam

unread,
Oct 16, 2015, 3:35:31 PM10/16/15
to reviewboard
Hello,

I am trying to post a review and getting the following error:
Traceback (most recent call last):
    load_entry_point('RBTools==0.7.4', 'console_scripts', 'rbt')()
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.4-py2.6.egg/rbtools/commands/main.py", line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.4-py2.6.egg/rbtools/commands/__init__.py", line 612, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.4-py2.6.egg/rbtools/commands/post.py", line 691, in main
    extra_args=extra_args)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.4-py2.6.egg/rbtools/clients/clearcase.py", line 751, in diff
    return self._do_diff(changeset)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.4-py2.6.egg/rbtools/clients/clearcase.py", line 882, in _do_diff
    dl = self._diff_files(old_file, new_file)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.4-py2.6.egg/rbtools/clients/clearcase.py", line 793, in _diff_files
    translate_newlines=False)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.4-py2.6.egg/rbtools/utils/process.py", line 180, in execute
    % (rc, command, data))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 80769: ordinal not in range(128)


rbt version:
$ rbt --version
RBTools 0.7.4

Can you please help me to resolve the failure.

Christian Hammond

unread,
Oct 16, 2015, 4:27:42 PM10/16/15
to revie...@googlegroups.com
Hi,

This problem should be fixed in 0.7.5, which we're preparing to release. (To the astute observer, we've said this before, but many things have come up, but it should be out by this weekend.)

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - https://www.reviewboard.org

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sam

unread,
Oct 16, 2015, 5:11:02 PM10/16/15
to reviewboard
Thank you Christian for quick response.
We are also seeing followng error:

ERROR: Could not load SCM Client "git": [Errno 2] No such file or directory

From other threads, it is mentioned that will be fixed in next drop. Do you know if the fix included in version 0.7.5 as well.

Thank you in advance!
Regards,


========================

Griffin Myers

unread,
Oct 16, 2015, 11:14:44 PM10/16/15
to reviewboard
Yes, I'm 99% certain this has been fixed in 7.0.5 as well.

Sam

unread,
Oct 17, 2015, 10:05:04 PM10/17/15
to reviewboard
Thanks Griffin,

Is there any way to get notified for version 7.0.5 and the location to pick up this version?


=====================

On Friday, October 16, 2015 at 3:35:31 PM UTC-4, Sam wrote:

Christian Hammond

unread,
Oct 18, 2015, 12:45:41 AM10/18/15
to revie...@googlegroups.com
Hi Sam,

You can subscribe to our announcements list at https://www.reviewboard.org/mailing-lists/, and you'll receive an e-mail when it's released.

Christian
--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
-- 
Christian Hammond - chri...@beanbaginc.com

Sam

unread,
Oct 23, 2015, 4:01:09 PM10/23/15
to reviewboard
Thank you I have subscribed. I wanted to check as if there is any new word on when the RBTools 7.0.5 will be out?


On Friday, October 16, 2015 at 3:35:31 PM UTC-4, Sam wrote:

Christian Hammond

unread,
Oct 23, 2015, 4:32:29 PM10/23/15
to revie...@googlegroups.com
Hi,

We had a regression reported to us right before the intended release date, and were working to fix it since. We're gearing up for the release again.

Christian

-- 
Christian Hammond - chri...@beanbaginc.com
Review Board - https://www.reviewboard.org

--

Sam

unread,
Oct 27, 2015, 11:20:54 PM10/27/15
to reviewboard

Hello,

I tried this with RBTools 0.7.5 and still seeing the same error:
CRITICAL: 'ascii' codec can't decode byte 0xc2 in position 81162: ordinal not in range(128)

Christian Hammond

unread,
Oct 28, 2015, 1:19:51 AM10/28/15
to revie...@googlegroups.com
Hi Sam,

Can you provide an updated debug log, along with the content containing non-ASCII characters?

Thanks,

Christian

-- 
Christian Hammond - chri...@beanbaginc.com
Review Board - https://www.reviewboard.org

--

er...@tibco.com

unread,
Oct 28, 2015, 2:29:10 PM10/28/15
to reviewboard
I suspect this is the same problem as this:


I'm guessing rbt is merely faithfully passing along the problem encountered on the server.

Eric.

Sam

unread,
Oct 29, 2015, 1:25:19 AM10/29/15
to reviewboard
I have over 400 files to review. When I run the cleartool diff on the last file in the trace I dont see any error but seems when rbt tries it fails.

>>> Running: diff -uN /vbs/e/nq/file1.C@@/main/310 /vbs/e/nq/file1.C@@/main/br1_main_int/13

Traceback (most recent call last):
  File "/home/sam/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.7.5', 'console_scripts', 'rbt')()
  File "/home/hotellnx117/sam/bin/RBTools-0.7.5-py2.6.egg/rbtools/commands/main.py", line 133, in main

    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/home/hotellnx117/sam/bin/RBTools-0.7.5-py2.6.egg/rbtools/commands/__init__.py", line 622, in run_from_argv

    exit_code = self.main(*args) or 0
  File "/home/hotellnx117/sam/bin/RBTools-0.7.5-py2.6.egg/rbtools/commands/post.py", line 691, in main
    extra_args=extra_args)
  File "/home/hotellnx117/sam/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 751, in diff
    return self._do_diff(changeset)
  File "/home/hotellnx117/sam/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 882, in _do_diff
    dl = self._diff_files(old_file, new_file)
  File "/home/hotellnx117/sam/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 793, in _diff_files
    translate_newlines=False)
  File "/home/hotellnx117/sam/bin/RBTools-0.7.5-py2.6.egg/rbtools/utils/process.py", line 180, in execute
    % (rc, command, data))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 81162: ordinal not in range(128)


    extra_args=extra_args)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 751, in diff
    return self._do_diff(changeset)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 882, in _do_diff
    dl = self._diff_files(old_file, new_file)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 793, in _diff_files
    translate_newlines=False)
  File "/home/hotellnx117/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/utils/process.py", line 180, in execute
    % (rc, command, data))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 81162: ordinal not in range(128)


Eric Johnson

unread,
Oct 29, 2015, 2:46:22 AM10/29/15
to revie...@googlegroups.com
When I posted before, I surmised that the problem might be on the server. To check that, have you tried browsing around in the web UI, fetching the diffs from previous reviews? For a proper test, you may need to restart memcached.

I figured out that the problem I was seeing is a problem with moving the ReviewBoard instance from one machine to another, and not keeping the secret key.

Eric.


--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to a topic in the Google Groups "reviewboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/Q2LwgQsAfO4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reviewboard...@googlegroups.com.

Sam

unread,
Oct 29, 2015, 4:46:04 PM10/29/15
to reviewboard
Hello,
I dont have any issue on seeing the diffs, and I did not move the instance of reviewboard. I can post reviews but only on this single set of the post I am seeing the failure.
restarting memcached did not help either.
Regards,

Sam

unread,
Nov 2, 2015, 7:46:44 PM11/2/15
to reviewboard
Hi Christian,

Do you know what am I missing here?

Sam

unread,
Nov 3, 2015, 11:28:01 PM11/3/15
to reviewboard
 I really need an expert advise on this. I still see this failure when I try to post the review but when I try to diff the same version of the file in clearcase I dont see any issue. I upgraded the RBTools but did not help. Really appreciate your input on this?


Traceback (most recent call last):
  File "/wsdb/oemtools/linux/bin/db2rbt", line 9, in <module>
    load_entry_point('RBTools==0.7.5', 'console_scripts', 'rbt')()
  File "/home/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/commands/main.py", line 133, in main

    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/home/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/commands/__init__.py", line 622, in run_from_argv

    exit_code = self.main(*args) or 0
  File "/home/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/commands/post.py", line 691, in main
    extra_args=extra_args)
  File "/home/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 751, in diff
    return self._do_diff(changeset)
  File "/home/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 882, in _do_diff
    dl = self._diff_files(old_file, new_file)
  File "/home/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/clients/clearcase.py", line 793, in _diff_files
    translate_newlines=False)
  File "/home/mojgans/bin/RBTools-0.7.5-py2.6.egg/rbtools/utils/process.py", line 180, in execute
    % (rc, command, data))

Sam

unread,
Nov 23, 2015, 9:55:33 PM11/23/15
to reviewboard


I have fixed this by adding reload and sys.setdefaultencoding("utf-8") after import sys in "RBTools-0.7.5-py2.6.egg/rbtools/utils/process.py":

import sys
reload(sys)
sys.setdefaultencoding("utf-8")


Do you see any issue with this change? is it possible to get this to your next drop so I dont have to make the change on next update?
Reply all
Reply to author
Forward
0 new messages