Bug 1768398 - rst2pdf: NameError: name 'reportlab' is not defined
Summary: rst2pdf: NameError: name 'reportlab' is not defined
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rst2pdf
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-04 10:38 UTC by Dridi Boukelmoune
Modified: 2019-12-07 01:30 UTC (History)
4 users (show)

Fixed In Version: rst2pdf-0.95-0.1.20190902gitf7adb4a.fc31 rst2pdf-0.95-0.1.20190902gitf7adb4a.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-07 01:30:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dridi Boukelmoune 2019-11-04 10:38:59 UTC
Description of problem:

> $ cat test.rst 
> Hello World
> ===========
>
> This is a test.
>
> $ rst2pdf test.rst 
> 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/site-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/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
>     return ep.load()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2443, in load
>     return self.resolve()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
>     module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File "/usr/lib/python2.7/site-packages/rst2pdf/createpdf.py", line 85, in <module>
>     from rst2pdf import flowables
>   File "/usr/lib/python2.7/site-packages/rst2pdf/flowables.py", line 875, in <module>
>     if reportlab.Version == '2.1':
> NameError: name 'reportlab' is not defined

Version-Release number of selected component (if applicable):

rst2pdf-0.93-16.fc31.noarch
python3-reportlab-3.5.23-3.fc31.x86_64

Additional info:

I didn't have this problem before upgrading to f31.

Comment 1 Sergio Pascual 2019-11-11 09:53:50 UTC
Yes, I forgot to push the python3 version of rst2pdf to F31. I'm building it now

Comment 2 Fedora Update System 2019-11-11 10:10:13 UTC
FEDORA-2019-0474ed1a1f has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-0474ed1a1f

Comment 3 Sergio Pascual 2019-11-11 10:11:00 UTC
Please test

Comment 4 Fedora Update System 2019-11-13 04:56:19 UTC
rst2pdf-0.95-0.1.20190902gitf7adb4a.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-0474ed1a1f

Comment 5 Fedora Update System 2019-11-21 01:24:02 UTC
rst2pdf-0.95-0.1.20190902gitf7adb4a.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Edgar Hoch 2019-11-27 00:02:30 UTC
Please can you build the package also for Fedora 30? It is also a "current" release, the error occurs also on Fedora 30 (because it had the same package version as Fedora 31).

Thanks in advance.

Comment 7 Fedora Update System 2019-11-27 14:57:12 UTC
FEDORA-2019-b6cd1fe2b6 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b6cd1fe2b6

Comment 8 Fedora Update System 2019-11-28 02:21:42 UTC
rst2pdf-0.95-0.1.20190902gitf7adb4a.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b6cd1fe2b6

Comment 9 Fedora Update System 2019-12-07 01:30:26 UTC
rst2pdf-0.95-0.1.20190902gitf7adb4a.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.