<div dir="ltr">I can tell you that I built the deb packages for Gstreamer 1.12.4 on Lubuntu 16.04.   This version of cerbero (1.12.4) was prior to the migration from Python 2 to Python 3.  I did this because the Xenial version of Gstreamer is 1.8.something; and the Xenial repositories don't offer other versions (nobody is really distributing pre-built deb packages of all the different versions).<div><br></div><div>You can read about my deb packaging experience here:  <a href="https://lists.freedesktop.org/archives/gstreamer-devel/2018-April/067562.html">https://lists.freedesktop.org/archives/gstreamer-devel/2018-April/067562.html</a></div><div><br></div><div>But having said that, errors like this are almost always about Python 2 vs. 3 compatability issues.</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>

<p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;margin-right:0cm;margin-left:36pt;margin-bottom:0.0001pt"><span style="font-family:"Courier New";color:black"> File "/usr/lib/python3.5/encodings/<wbr>ascii.py", line 26, in decode</span><u></u><u></u></p><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;margin-right:0cm;margin-left:36pt;margin-bottom:0.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="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;margin-right:0cm;margin-left:36pt;margin-bottom:0.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></p>

<br></div></blockquote></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 25, 2018 at 8:06 PM, Matthew Thyer <span dir="ltr"><<a href="mailto:matthew.thyer@adelaide.edu.au" target="_blank">matthew.thyer@adelaide.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-AU" link="blue" vlink="purple">
<div class="m_-8953568151499761523WordSection1">
<p class="MsoNormal"><span>David,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>As the traceback occurs after cerbero declares that “ubuntu_16_04_xenial” has no specific packager, I’m wondering whether I still have a chance to produce packages by using some other Linux distribution
 (e.g. would Debian 9.4 x86_64 work?).<u></u><u></u></span></p>
<p class="MsoNormal"><span>How would I find out what distributions are supported for packaging?<u></u><u></u></span></p>
<p class="MsoNormal"><span>I’m guessing that distros like Ubuntu aren’t building GStreamer using cerbero or else this wouldn’t still be an issue.<u></u><u></u></span></p>
<p class="MsoNormal"><span>For the Linux case it seems that I can revert to building from git as per the FAQ answer: “<a href="https://gstreamer.freedesktop.org/documentation/frequently-asked-questions/git.html" target="_blank">Building GStreamer
 from git</a>”.<u></u><u></u></span></p>
<p class="MsoNormal"><span>I guess that I should examine Ubuntu’s
<a href="https://launchpad.net/" target="_blank">launchpad.net</a> to understand how they are packaging GStreamer.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@<wbr>lists.freedesktop.org</a>>
<b>On Behalf Of </b>David Ing<br>
<b>Sent:</b> Wednesday, 25 April 2018 11:54 PM<br>
<b>To:</b> Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>><br>
<b>Subject:</b> Re: No specific packager available for the distro version ubuntu_16_04_xenial<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">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.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">You might try debugging with pycharm to patch the offending line of code.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Apr 24, 2018, 1:27 AM Matthew Thyer <<a href="mailto:matthew.thyer@adelaide.edu.au" target="_blank">matthew.thyer@adelaide.edu.au</a><wbr>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<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">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__.<wbr>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.<wbr>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.<wbr>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"<wbr>, 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"<wbr>, 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/<wbr>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><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">Matthew Thyer</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">(08) 8313 9283</span><u></u><u></u></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><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">Adelaide University</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><u></u><u></u></p>
</blockquote>
</div>
</div></div></div>
</div>

<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>