[elbe-devel] Python error during pbuilder execution

Torben Hohn torben.hohn at linutronix.de
Mon Jul 18 09:43:44 CEST 2016


On Thu, Jul 14, 2016 at 11:44:35AM +0200, Alex Söhn wrote:
> Hi Iurii,
> 
> I encountered the same problem some time ago. Manuel suggested to, as a
> quickfix, delete the lines 365 to 368 from
> /usr/lib/python2.7/dist-packages/elbepack/elbeproject.py
> in the initvm.
> 
> As far as I know there is no final solution yet.
> 
> Best regards,
> Alex
> 
> On 07/12/16 19:14, Iurii Mykhalskyi wrote:
> >hello elbe team,
> >
> >I'm using pbuilder to build u-boot under ELBE environment.
> >"pbuilder create" command executes successfully, but "pbuilder build"
> >failed with next reason:
> >
> >/Pdebuild failed/
> >/Traceback (most recent call last):/
> >/  File "/usr/lib/python2.7/dist-packages/elbepack/asyncworker.py", line
> >168, in execute/
> >/    self.project.pdebuild()/
> >/  File "/usr/lib/python2.7/dist-packages/elbepack/elbeproject.py", line
> >365, in pdebuild/
> >/self.log.do <http://self.log.do> ("cd %s; dch -v `date +'%y%m%d%H%M%S'`
> >elbe pbuilder build" % pbdir)/
> >/TypeError: not enough arguments for format string/
> >
> >Have somebody faced with this issue?

This looks like the format string for date needs to be escaped.

-------------------------------------------------------------------------------------------
diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 2f3949e..60f9d84 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -362,7 +362,7 @@ class ElbeProject (object):
                                                 pbdir))
 
         # generate an increasing debian package version and set correct suite
-        self.log.do ("cd %s; dch -v `date +'%y%m%d%H%M%S'` elbe pbuilder build" % pbdir)
+        self.log.do ("cd %s; dch -v `date +'%%y%%m%%d%%H%%M%%S'` elbe pbuilder build" % pbdir)
         self.log.do ("cd %s; dch -D %s" % (pbdir, self.suite))
         self.log.do ("cd %s; dch -D %s" % (pbdir, self.suite))
         self.log.do ("cd %s; git commit -sam 'version bump %s by elbe pbuilder'" % (pbdir, self.suite))
-------------------------------------------------------------------------------------------


-- 
Mit freundlichen Grüßen
Torben Hohn

Linutronix GmbH

Standort: Bremen

Phone: +49 7556 45218-93 ; Fax.: +49 7556 919 886
mailto: torbenh at linutronix.de
Firmensitz / Registered Office: D-88690 Uhldingen, Auf dem Berg 3
Registergericht / Local District Court: Freiburg i. Br., HRB Nr. / Trade
register no.: 700 806;

Geschäftsführer / Managing Directors: Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20160718/73d7d020/attachment.sig>


More information about the elbe-devel mailing list