Control: reassign -1 rst2pdf not sure how that worked in the past, but flowables.py is using reportlab.Version without importing it.
On 04.06.19 10:40, Sébastien Kalt wrote: > Package: python-reportlab > Version: 3.5.21-1 > Severity: grave > > --- Please enter the report below this line. --- > Dear maintainer, > > Since last update of python-reportlab to 3.2.21-1, rst2pdf is unusable : > > $ rst2pdf test.rst -o test.pdf > Traceback (most recent call last): > File "/usr/bin/rst2pdf", line 11, in <module> > load_entry_point('rst2pdf==0.93.dev0', 'console_scripts', 'rst2pdf')() > File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line > 489, in load_entry_point > return get_distribution(dist).load_entry_point(group, name) > File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line > 2793, in load_entry_point > return ep.load() > File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line > 2411, in load > return self.resolve() > File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line > 2417, in resolve > module = __import__(self.module_name, fromlist=['__name__'], level=0) > File "/usr/lib/python2.7/dist-packages/rst2pdf/createpdf.py", line 85, in > <module> > from rst2pdf import flowables > File "/usr/lib/python2.7/dist-packages/rst2pdf/flowables.py", line 875, > in <module> > if reportlab.Version == '2.1': > NameError: name 'reportlab' is not defined > > I use a minimal rst test.rst file : > > ##### > > Tests > > ##### > > > This is just a test. > > > Installing testing 3.5.13-1 version of python-reportlab works. > > > I'm not sure on which package to report this bug, python-reportlab or > rst2pdf. > > > Regards, > > > Sébastien KALT > > > --- System information. --- > Architecture: > Kernel: Linux 4.19.0-5-amd64 > > Debian Release: 10.0 > 980 unstable ftp.fr.debian.org > 970 testing ftp.fr.debian.org > 500 testing-debug debug.mirrors.debian.org > 500 stable dl.google.com > 500 oldstable ftp.fr.debian.org > 1 experimental-debug debug.mirrors.debian.org > > --- Package information. --- > Depends (Version) | Installed > ========================================-+-============== > python-pil | 5.4.1-2 > python:any (<< 2.8) | > python:any (>= 2.7~) | > python-reportlab-accel (>= 3.5.21-1) | 3.5.21-1 > > > Recommends (Version) | Installed > ==============================-+-=========== > python-renderpm | > > > Suggests (Version) | Installed > ============================================-+-=============== > pdf-viewer | > python-egenix-mxtexttools (>= 2.0.6-3.1) | > python-reportlab-doc | >