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

Bug #1300230 reported by Alan Pope 🍺🐧🐱 🦄
This bug report is a duplicate of:  Bug #1267117: adbd does not use pam_env. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Music App
Incomplete
High
Dimitri John Ledkov

Bug Description

I get the error message below when running AP tests:-

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

http://paste.ubuntu.com/7184813/ is the full log

Traceback (most recent call last):
File "/home/phablet/autopilot/music_app/tests/test_music.py", line 26, in setUp
super(TestMainWindow, self).setUp()
File "/home/phablet/autopilot/music_app/tests/__init__.py", line 82, in setUp
launch()
File "/home/phablet/autopilot/music_app/tests/__init__.py", line 104, in launch_test_click
emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
File "/usr/lib/python3/dist-packages/autopilot/testcase.py", line 311, in launch_click_package
app_uris)
File "/usr/lib/python3/dist-packages/autopilot/testcase.py", line 352, in _launch_test_application
pid = launcher_instance.launch(application, *args)
File "/usr/lib/python3/dist-packages/autopilot/application/_launcher.py", line 163, in launch
app_id = _get_click_app_id(package_id, app_name)
File "/usr/lib/python3/dist-packages/autopilot/application/_launcher.py", line 248, in _get_click_app_id
for pkg in _get_click_manifest():
File "/usr/lib/python3/dist-packages/autopilot/application/_launcher.py", line 271, in _get_click_manifest
universal_newlines=True
File "/usr/lib/python3.4/subprocess.py", line 605, in check_output
output, unused_err = process.communicate(inputdata, timeout=timeout)
File "/usr/lib/python3.4/subprocess.py", line 936, in communicate
stdout = _eintr_retry_call(self.stdout.read)
File "/usr/lib/python3.4/subprocess.py", line 487, in _eintr_retry_call
return func(*args)
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 33484: ordinal not in range(128)

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

This also fails with:-

Music app 389 on mako #250

Does that make it an autopilot issue?

Revision history for this message
Victor Thompson (vthompson) wrote :

I've seen this same error before. I'm not sure if I was able to get rid of it in my case. But what it seems to do is prevent AP from reporting what the actual failure was. As for the 13 failures, did your device still see your old library when the tests ran?

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I'm concerned this traces back to the python3 and phablet-tools changes. Due to the fact the click package fails on the old image (and the image and click haven't changed ;-) ), the method of running must be suspected.

Changed in music-app:
status: New → Confirmed
Changed in music-app:
assignee: nobody → Dimitri John Ledkov (xnox)
importance: Undecided → High
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Leaving the relevant IRC snippet here :-)

<xnox> balloons: if a click declares autopilot directory in the manifest, it must be python3 compliant tests.

Basically, everything needs to be py3 compatible now, and the unicode errors are symptoms.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Please tell me which combination of version of phablet-tools and music-app you are trying to test?

Note that 369 and earlier music-app erroneously declared python3 compatibility whilst it actually wasn't.
Thus 369 and earlier must be tested with phablet-tools <= 1.0+14.04.20140227.1-0ubuntu1

music-app 370+ can be tested with any phablet-tools in python2 or python3 modes.

Tests:
$ phablet-test-run -v music_app
16:26:56.720 INFO run:66 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.04.20140319.1-0ubuntu2
Loading tests from: /home/phablet/autopilot
...
Ran 13 tests in 664.660s
OK

$ adb shell click list | grep music
com.ubuntu.music 1.3.389

$ apt-cache policy phablet-tools
phablet-tools:
  Installed: 1.0+14.04.20140326-0ubuntu1

Changed in music-app:
status: Confirmed → Incomplete
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

$ adb shell system-image-cli -i
current build number: 270
device name: mako
channel: ubuntu-touch/trusty-proposed
last update: 2014-03-31 15:24:00
version version: 270
version ubuntu: 20140331.1
version device: 20140331

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.