ReviewBoard httpd + issues related to UnicodeEncodeError: 'ascii' codec can't encode characters in position

13 views
Skip to first unread message

harish.va...@gmail.com

unread,
Jun 27, 2021, 7:36:46 AM6/27/21
to reviewboard-issues
  Hi All,

We had a successful installation of RB 4.0.2 and as well the site upgrade done.
But now when we try to start the httpd, we end up getting the below error.
Any inputs on how to address it.


Jun 27 04:24:50 reviewboard rb-site[27123]: load_entry_point('ReviewBoard==4.0.2', 'console_scripts', 'rb-site')()
Jun 27 04:24:50 reviewboard rb-site[27123]: File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/rbsite.py", line 2732, in main
Jun 27 04:24:50 reviewboard rb-site[27123]: command.run(site, options)
Jun 27 04:24:50 reviewboard rb-site[27123]: File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/rbsite.py", line 2254, in run
Jun 27 04:24:50 reviewboard rb-site[27123]: leading_newlines=False)
Jun 27 04:24:50 reviewboard rb-site[27123]: File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/utils/console.py", line 297, in header
Jun 27 04:24:50 reviewboard rb-site[27123]: wrapper=self.header_sep_wrapper)
Jun 27 04:24:50 reviewboard rb-site[27123]: File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/utils/console.py", line 203, in print
Jun 27 04:24:50 reviewboard rb-site[27123]: wrapper=wrapper)))
Jun 27 04:24:50 reviewboard rb-site[27123]: UnicodeEncodeError: 'ascii' codec can't encode characters in position 8-86: ordinal not in range(128)

Adding the below to /usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/utils/console.py, enables the httpd to be brought up, but none of the links such as "All Review Requests", "New Review Request" or diff work as expected.

reload(sys)
sys.setdefaultencoding('utf-8')

harish.va...@gmail.com

unread,
Jun 28, 2021, 7:25:43 AM6/28/21
to reviewboard-issues
  Hi All,

The issue has been addressed.

Thanks.
Reply all
Reply to author
Forward
0 new messages