[reportlab-users] Failed test with reportlab-4.0.0

Antonio T. sagitter sagitter at fedoraproject.org
Sat May 20 10:21:00 EDT 2023


Hi all.

A test of reportlab-4.0.0, compiled in Fedora 38 with Python-3.11, is 
failing with these errors:

+ cd reportlab-4.0.0
+ cp -a build/lib/reportlab tests/
+ cp -a build/lib/reportlab docs/
+ cp -a build/lib/reportlab docs/userguide/
+ /usr/bin/python3 setup.py tests
.........Traceback (most recent call last):
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/docs/userguide/genuserguide.py", 
line 107, in <module>
     main()
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/docs/userguide/genuserguide.py", 
line 105, in main
     run(pagesize, verbose,outDir)
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/docs/userguide/genuserguide.py", 
line 56, in run
     exec(open_and_read(f+'.py', mode='r'), G, G)
   File "<string>", line 175, in <module>
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/docs/userguide/reportlab/graphics/charts/textlabels.py", 
line 20, in <module>
     from ..utils import text2Path as _text2Path   #here for continuity
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/docs/userguide/reportlab/graphics/utils.py", 
line 255, in <module>
     globals().update(__makeTextPathsCode__())
                      ^^^^^^^^^^^^^^^^^^^^^^^
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/docs/userguide/reportlab/graphics/utils.py", 
line 253, in __makeTextPathsCode__
     raise ImportError(f'Could not create text2PathDescription for using 
backends from {TP!a}')
ImportError: Could not create text2PathDescription for using backends 
from ('freetype', '_renderPM')
F......s.E.E...............EEEsEEs...........................................................................................................E......................................................................................................................ss..................................................E...............
======================================================================
ERROR: test_graphics_barcode 
(test_graphics_barcode.BarcodeWidgetTestCase.test_graphics_barcode)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/tests/test_graphics_barcode.py", 
line 340, in test_graphics_barcode
 
self.createSample('test_cbcim.png',createBarcodeImageInMemory('EAN13', 
value='123456789012'))
 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/tests/reportlab/graphics/barcode/__init__.py", 
line 152, in createBarcodeImageInMemory
     return d.asString(format)
            ^^^^^^^^^^^^^^^^^^
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/tests/reportlab/graphics/shapes.py", 
line 806, in asString
     from reportlab.graphics import renderPM
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/tests/reportlab/graphics/renderPM.py", 
line 20, in <module>
     from .utils import setFont as _setFont, RenderPMError
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/tests/reportlab/graphics/utils.py", 
line 255, in <module>
     globals().update(__makeTextPathsCode__())
                      ^^^^^^^^^^^^^^^^^^^^^^^
   File 
"/home/sagitter/rpmbuild/BUILD/reportlab-4.0.0/tests/reportlab/graphics/utils.py", 
line 253, in __makeTextPathsCode__
     raise ImportError(f'Could not create text2PathDescription for using 
backends from {TP!a}')
ImportError: Could not create text2PathDescription for using backends 
from ('freetype', '_renderPM')

I send you the full log attached

Regards.
-- 
---
Antonio Trande
Fedora Project
mailto: sagitter at fedoraproject.org
GPG key: 0x40FDA7B70789A9CD
GPG keys server: https://keyserver.dcc.sib.swiss/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reportlab-4.0.0_errors.zip
Type: application/zip
Size: 8934 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20230520/a865a5da/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20230520/a865a5da/attachment.sig>


More information about the reportlab-users mailing list