FS#52463 - [python2-tempita] 0.5.2-4 complains about no existing module parse (and 0.5.2-3 does not)

Attached to Project: Community Packages
Opened by christiane (zoe) - Tuesday, 10 January 2017, 09:44 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 17 February 2017, 16:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

python2-tempita (0.5.2-4) complains about no existing module parse (and 0.5.2-3 does not) :
ImportError: No module named parse


In console, launch pytrainer
pytrainer crashes with this error :

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

After dowgrading python2-tempita to 0.5.2-3, pytrainer is OK, and all is fine.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 17 February 2017, 16:18 GMT
Reason for closing:  Fixed
Comment by Moritz Bunkus (mbunkus) - Sunday, 15 January 2017, 10:44 GMT
I've just been bitten by this as well as buildbot fails to start with python2-tempita 0.5.2-4 (dependency chain: buildbot → python2-migrate → python2-tempita).

It seems that Tempita is using Python 3 module names & functions.

In a development clone on Github there's the following commit that (re-)implements compatibility with Python 2.7:

https://github.com/gjhiggins/tempita/commit/6cdd36dcf566afcda4e8a124dd8646d065127c49

After applying the changes to the imports in tempita/__init__.py I can at least start Buildbot again.
Comment by Julian Xhokaxhiu (JulianXhokaxhiu) - Wednesday, 01 February 2017, 10:34 GMT
I can confirm the bug. Can you please repackage? Thank you in advance.
Comment by Sergej Pupykin (sergej) - Thursday, 02 February 2017, 13:18 GMT
please try
community-testing/python-tempita-0.5.3dev20170202
community-testing/python2-tempita-0.5.3dev20170202

Loading...