Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#47711 - [python2-tempita] ImportError: No module named parse
Attached to Project:
Community Packages
Opened by Klaus Alexander Seistrup (kseistrup) - Monday, 11 January 2016, 13:27 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 11 January 2016, 15:26 GMT
Opened by Klaus Alexander Seistrup (kseistrup) - Monday, 11 January 2016, 13:27 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 11 January 2016, 15:26 GMT
|
DetailsDescription:
Under Python2 this modules tries to import a method from urllib.parse, which only exists under Python3. Additional info: * package version: community/python2-tempita 0.5.2-2 The docs on http://pythonpaste.org/tempita/ says that “[…] bugs [should go to] the Paste Trac instance”. However, trac.pythonpaste.org doesn't resolve. Steps to reproduce: $ python2 Python 2.7.11 (default, Dec 6 2015, 15:43:46) [GCC 5.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from tempita import url_quote Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/tempita/__init__.py", line 35, in <module> from urllib.parse import quote as url_quote ImportError: No module named parse >>> (it is also enough just to `import tempita`, which is why I have set severity to high) In comparison: $ python3 Python 3.5.1 (default, Dec 7 2015, 12:58:09) [GCC 5.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from tempita import url_quote >>> |
This task depends upon
However a very simple fix for this issue is to do the following replace for the python2 version (python3 works fine, so a replace in python3 is not needed ):
sed -e 's|from urllib.parse|from urllib|' -i tempita/__init__.py
this replaces the faulty python2 import