<div dir="auto">Cerbero was recently converted to python 3 from python 2. Python 3 uses a different string encoding standard (utf8 I think) and errors like this often appear when something was missed during the conversion process.<div dir="auto"><br></div><div dir="auto">You might try debugging with pycharm to patch the offending line of code.</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Apr 24, 2018, 1:27 AM Matthew Thyer <<a href="mailto:matthew.thyer@adelaide.edu.au">matthew.thyer@adelaide.edu.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="#0563C1" vlink="#954F72">
<div class="m_-3095132239368283283WordSection1">
<p class="MsoNormal">Greetings gstreamer-devel list,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m wishing to build and package GStreamer v1.14 (or later) for the ARM32 hard-float architecture (for Raspberry Pi 2, 3, 3B+). I mean the GNU Triplet: arm-linux-gnueabihf.<u></u><u></u></p>
<p class="MsoNormal">As you may have seen from my last two emails (“Failure to cross compile GStreamer v1.14 with config/cross-lin-arm.cbc” & “How to cross compile GStreamer for Raspberry Pi 2, 3, 3B+ (arch=armhf)?”) I’m not currently able to cross compile
for this outcome so I have instead setup docker on my Raspberry Pi 3 and run a native build. This completes normally but then fails to package the results of the build.<u></u><u></u></p>
<p class="MsoNormal">It looks like cerbero tries to fall back to some kind of default packager but then crashes and I get a python traceback.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The error messages from the failure are:<u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black">WARNING: No specific packager available for the distro version ubuntu_16_04_xenial, using generic packager for distro debian</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black">WARNING: No packager defined, using default packager "Default <<a href="mailto:default@change.me" target="_blank" rel="noreferrer">default@change.me</a>>"</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black">Traceback (most recent call last):</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero-uninstalled", line 9, in <module></span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> main()</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero/main.py", line 130, in main</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> Main(sys.argv[1:])</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero/main.py", line 55, in __init__</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> self.run_command()</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero/main.py", line 105, in run_command</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> res = commands.run(command, self.config, self.args)</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero/commands/__init__.py", line 78, in run</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> return _commands[command].run(config, args)</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero/commands/package.py", line 82, in run</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> pkg = Packager(config, p, self.store)</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero/packages/packager.py", line 53, in __new__</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> return _packagers[d][v](config, package, store)</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero/packages/debian.py", line 448, in __new__</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> return DebianPackager(config, package, store)</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "./cerbero/packages/debian.py", line 187, in __init__</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> self.license = f.read()</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black"> return codecs.ascii_decode(input, self.errors)[0]</span><u></u><u></u></p>
<p style="margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-family:"Courier New";color:black">UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve confirmed that I get the same error when running a native build in a docker container on an x86_64 VM so this problem is not specific to the ARM architecture.<u></u><u></u></p>
<p class="MsoNormal">Does anyone have a solution for this issue?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray">---</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">Matthew Thyer</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">(08) 8313 9283</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">4.38 Ingkarni Wardli</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">Adelaide University</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>