[elbe-devel] elbe 1.9.13 fails on extracting licenses (jessie)

Manuel Traut manuel.traut at linutronix.de
Fri Nov 4 12:53:01 CET 2016


Hi,
 
> with elbe 1.9.13 on a jessie system I'm trying to build a jessie
> image (xml below).
> 
> This fails during the "Extract Licenses" step.
> >Build failed
> >Traceback (most recent call last):
> > File "/usr/lib/python2.7/dist-packages/elbepack/asyncworker.py",
> >line 116, in execute
> >   skip_pbuild=self.skip_pbuilder)
> > File "/usr/lib/python2.7/dist-packages/elbepack/elbeproject.py",
> >line 287, in build
> >   reportpath, self.targetfs )
> > File "/usr/lib/python2.7/dist-packages/elbepack/dump.py", line
> >198, in elbe_report
> >   with xml.archive_tmpfile() as fp:
> > File "/usr/lib/python2.7/dist-packages/elbepack/elbexml.py", line
> >272, in archive_tmpfile
> >   fp.write( standard_b64decode( self.text("archive") ) )
> > File "/usr/lib/python2.7/base64.py", line 93, in standard_b64decode
> >   return b64decode(s)
> > File "/usr/lib/python2.7/base64.py", line 73, in b64decode
> >   return binascii.a2b_base64(s)
> >TypeError: must be string or buffer, not None
> >
> >
> >Exception:
> >must be string or buffer, not None

> >   fp.write( standard_b64decode( self.text("archive") ) )

is the actual problem; because your archive tag is empty.
I think we should add code, that ignores empty archives.
But for the moment it should be ok, if you just delete the <archive>
tag from your XML.

Regards,
   Manuel




More information about the elbe-devel mailing list