Bugs item #3433609, was opened at 2011-11-04 10:49 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Pending Resolution: Wont Fix
Priority: 5 Private: No Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: Patch 3419295 did not fix python 2.4 compatibility
Initial Comment: After the change from 3419295, there is still a syntax error:
sudo python redirect.py double Traceback (most recent call last): File "redirect.py", line 66, in ? import wikipedia as pywikibot File "/usr/local/pywikipedia/wikipedia.py", line 142, in ? from pywikibot import * File "/usr/local/pywikipedia/pywikibot/__init__.py", line 16, in ? from i18n import translate File "/usr/local/pywikipedia/pywikibot/i18n.py", line 14, in ? from plural import plural_rules File "/usr/local/pywikipedia/pywikibot/plural.py", line 17 0 if (n == 0) else ^ SyntaxError: invalid syntax
$ python version.py Pywikipedia [http] trunk/pywikipedia (r9725, 2011/11/04, 14:50:26) Python 2.4.3 (#1, Sep 21 2011, 19:55:41) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-06 20:54
Message: Depends i18n PLURAL support of some scripts and I won't fix since python 2.4 had it last fix more than 3 years ago and we should declare it as deprecated release for pywikibot support. Upuntu itself no longer bundles 2.4. Please update to 2.7.2 if possible or use an older pywikibot release.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609...
pywikipedia-bugs@lists.wikimedia.org