yanne / api-testing

I am using this to test GitHub API
1 stars 0 forks source link

Ride could not be runned with UnicodeDecodeError("utf8") #129

Open yanne opened 10 years ago

yanne commented 10 years ago

It is impossible to run RIDE with below Error log (it is produced everytime)

++++++++++++++++++++++++++++++++log++++++++++++++++++++++++++++++++ Traceback (most recent call last): File "C:\Python27\lib\site-packages\robotide\contrib\testrunner\testrunnerplug in.py", line 390, in OnTimer out_buffer, err_buffer = self._test_runner.get_output_and_errors() File "C:\Python27\lib\site-packages\robotide\contrib\testrunner\testrunner.py" , line 240, in get_output_and_errors return self._process.get_output(), self._process.get_errors() File "C:\Python27\lib\site-packages\robotide\contrib\testrunner\testrunner.py" , line 293, in get_errors return self._error_stream.pop() File "C:\Python27\lib\site-packages\robotide\contrib\testrunner\testrunner.py" , line 380, in pop return result.decode('UTF-8') File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc0 in position 11: invalid start byte ++++++++++++++++++++++++++++++++log++++++++++++++++++++++++++++++++++

+++++++++++++++++++<S/W version>+++++++++++++++++++ Python 2.7.5 RIDE 1.2.1
+++++++++++++++++++++++++++++++++++++++++++++++++++

This issue was originally reported to Google Code on Oct 17, 2013.

yanne commented 10 years ago

Original comment by mikko.ko...@gmail.com on Oct 21, 2013.

thanks for the report.

yanne commented 10 years ago

Original comment by mikko.ko...@gmail.com on Oct 25, 2013.

I can't reproduce the problem with the given stack trace.

What operating system are you using? What is the default encoding in that operating system? Can you give a short example case where this problem occurs?

yanne commented 10 years ago

Original comment by kimhongs...@gmail.com on Oct 26, 2013.

My OS is WinXP. Where can I check my default encoding in OS???

yanne commented 10 years ago

Original comment by mikko.ko...@gmail.com on Oct 28, 2013.

From Control Panel open Regional and Language Options and check the Regional Options (language that is chosen).

yanne commented 10 years ago

Original comment by kimhongs...@gmail.com on Oct 28, 2013.

Language is Korean

yanne commented 10 years ago

Original comment by yihui.wang.yh on Apr 11, 2014.

Hi, the same error happens to me: I am using RIDE 1.3 on win7 32-bit platform. robotframework 2.7.6 python 2.7.3 wxPython 2.8.12.1 (unicode) for python 2.7