FS#48890 - [python-rst2pdf] Non-functional, not compatible with python 3

Attached to Project: Community Packages
Opened by Alain Leufroy (alain.leufroy) - Monday, 11 April 2016, 09:41 GMT
Last edited by Jiachen Yang (farseerfc) - Tuesday, 12 April 2016, 08:06 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jiachen Yang (farseerfc)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Description: the upstream code is not python3 compliant

Additional info:
* package version : community/python-rst2pdf 0.93-3
* traceback:

Traceback (most recent call last):
File "/usr/bin/rst2pdf", line 9, in <module>
load_entry_point('rst2pdf===0.93.dev-r0', 'console_scripts', 'rst2pdf')()
File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 549, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2542, in load_entry_point
return ep.load()
File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2202, in load
return self.resolve()
File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2208, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.5/site-packages/rst2pdf/createpdf.py", line 100, in <module>
from rst2pdf import tenjin
File "/usr/lib/python3.5/site-packages/rst2pdf/tenjin.py", line 237, in <module>
helpers = _create_helpers_module()
File "/usr/lib/python3.5/site-packages/rst2pdf/tenjin.py", line 221, in _create_helpers_module
mod = _create_module('tenjin.helpers')
File "/usr/lib/python3.5/site-packages/rst2pdf/tenjin.py", line 81, in _create_module
import new
ImportError: No module named 'new'

Steps to reproduce:

Install the package for python: pacman -S python-rst2pdf
Then call the command line program: rst2pdf any.rst

Note: The project's Github page (https://github.com/rst2pdf/rst2pdf) clearly indicates that it does not support python3 for now.
So, the `python-rset` should not exists.

This task depends upon

Closed by  Jiachen Yang (farseerfc)
Tuesday, 12 April 2016, 08:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  Dropped python-rst2pdf to AUR
Comment by Jiachen Yang (farseerfc) - Tuesday, 12 April 2016, 07:49 GMT
Yes, you are right, I will drop python-rst2pdf back to AUR for now.