Bug#1143856: python-reportlab: FTBFS: ImportError: cannot import name 'rlSkipIf' from 'reportlab.platypus'

Georges Khaznadar <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <anXBYnMmbV0vXCah__31790.0924639375$1786102638$gmane$org@pc-coop.home>
Hi Santiago, thank you for the bug report.

The upload of release 5.0.0-3 shoud fix this bug.

Best regards, 	      	      Georges.

Santiago Vila a écrit :
> Package: src:python-reportlab
> Version: 5.0.0-2
> Severity: serious
> Tags: ftbfs forky sid
> 
> Dear maintainer:
> 
> During a rebuild of all packages in unstable, this package failed to build.
> 
> Below you will find the last part of the build log (probably the most
> relevant part, but not necessarily). If required, the full build log
> is available here:
> 
> https://people.debian.org/~sanvila/build-logs/202608/
> 
> About the archive rebuild: The build was made on virtual machines from AWS,
> using sbuild and a reduced chroot with only build-essential packages.
> 
> If you cannot reproduce the bug please contact me privately, as I
> am willing to provide ssh access to a virtual machine where the bug is
> fully reproducible.
> 
> If this is really a bug in one of the build-depends, please use
> reassign and add an affects on src:python-reportlab, so that this is still
> visible in the BTS web page for this package.
> 
> Thanks.
> 
> --------------------------------------------------------------------------------
> [...]
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> cd tests && PYTHONPATH=/<<PKGBUILDDIR>>/src python3 -B runAll.py
> ................s...........sssssss....................................sssss.........E...........s...ss........s....................................................................................sss..ss............sss..s.......................................................................................s.s.........................................................................................
> ======================================================================
> ERROR: test1 (test_invariant.InvarTestCase.test1)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/src/reportlab/pdfbase/pdfmetrics.py", line 698, in getFont
>     return _fonts[fontName]
>            ~~~~~~^^^^^^^^^^
> KeyError: 'DarkGardenMK'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_invariant.py", line 45, in test1
>     c = Canvas(filename, invariant=1, pageCompression=0, initialFontName='DarkGardenMK')
>   File "/<<PKGBUILDDIR>>/src/reportlab/pdfgen/canvas.py", line 368, in __init__
>     self._make_preamble()
>     ~~~~~~~~~~~~~~~~~~~^^
>   File "/<<PKGBUILDDIR>>/src/reportlab/pdfgen/canvas.py", line 461, in _make_preamble
>     font = pdfmetrics.getFont(self._fontname)
>   File "/<<PKGBUILDDIR>>/src/reportlab/pdfbase/pdfmetrics.py", line 700, in getFont
>     return findFontAndRegister(fontName)
>   File "/<<PKGBUILDDIR>>/src/reportlab/pdfbase/pdfmetrics.py", line 682, in findFontAndRegister
>     face = getTypeFace(fontName)
>   File "/<<PKGBUILDDIR>>/src/reportlab/pdfbase/pdfmetrics.py", line 639, in getTypeFace
>     return _typefaces[faceName]
>            ~~~~~~~~~~^^^^^^^^^^
> KeyError: 'DarkGardenMK'
> 
> ----------------------------------------------------------------------
> Ran 400 tests in 8.864s
> 
> FAILED (errors=1, skipped=28)
> 
> ###################### the following tests could not be imported
> file: "/<<PKGBUILDDIR>>/tests/test_paragraphs.py"
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/runAll.py", line 69, in makeSuite
>     exec('import %s as module' % modname,ns)
>     ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "<string>", line 1, in <module>
>   File "/<<PKGBUILDDIR>>/tests/test_paragraphs.py", line 10, in <module>
>     from reportlab.platypus import Paragraph, SimpleDocTemplate, XBox, Indenter, XPreformatted, PageBreak, Spacer, rlSkipIf
> ImportError: cannot import name 'rlSkipIf' from 'reportlab.platypus' (/<<PKGBUILDDIR>>/src/reportlab/platypus/__init__.py)
> 
> 
> make[1]: *** [debian/rules:91: override_dh_auto_test] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:10: binary] Error 2
> dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
> --------------------------------------------------------------------------------
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEM0CzZP9nFT+3zK6FHCgWkHE2rjkFAmp1wWIACgkQHCgWkHE2
rjnX8RAAoWCO8Z3vPBUPLv85DPMh9MMNwwEjomrHAacKc4jnZkNl7VIfa47k+O6P
lX/eSXVdMnZVii9r0cGiwXJAr4WwRiPPXveETwY9tzzdWayQCV0+MI2UuRBeqigP
fRh+4tg3PSDfszXMo22uB+JqMCgnGmY4WPohraPFb+i3CaK1VrqeNky58mDRBD2H
UHMRq5D4+KcTpf1pHPMQ4Qw6tcOiKcwknyryCszMUdnlgylOti0RLGxpnCcF1KZo
c0WIaFMzPGMj3a7jEnbqXoQitri7sQ2ULsjg9rSHFy49vQnodFnTPMigO1gQoWQA
aa52/L8PqVRwPP0Tt4i3ZhgtweJAlFfkU776rlT+9FMr/ffcOI5z5uYUsEs8k5/E
HF0bAHnWQ4+HNy/N8lY5Qn5Tm63AIpKJrX6h8T1Mb2yxvHSIwkZi1e4uxygX/VM9
u73G5b5TehJIQv94tmyxHIjg1buUGYlX5X9H8Yj79NsPIFrEO/eTCEB2j7yXj8A/
j1/mVLOXFSs51DxQj5TSSyBaWhTnxwx8zMkfMCojoetFPJtMK4zrviQg1MLTm6op
JtSyLoBznxoJRAhJWPpd4SMZyQ5zf8uvozWc6mj8pAfVKmwWTG/iRz9prKvt7LpI
Z8ES14sL0FlvHJMnGHokoBWu5gWZlTBQBKBi4+JW5tE0bhlfUFQ=
=UBQU
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.