Bugs item #3305475, was opened at 2011-05-21 11:09
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=330547…
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: Closed
Resolution: Rejected
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: xqt (xqt)
Summary: category.py: raise "ImportError: No module named i18n" error
Initial Comment:
root@/var/www/pywikipedia> python category.py move -from:"foo"
-to:"bar"
Traceback (most recent call last):
File "category.py", line 949, in ?
main()
File "category.py", line 919, in main
bot.run()
File "category.py", line 395, in run
self.editSummary = i18n.twtranslate(site, 'category-changing') \
File "/var/www/pywikipedia/pywikibot/i18n.py", line 226, in twtranslate
transdict = getattr(__import__("i18n", {}, {}, [package]), package).msg
ImportError: No module named i18n
root@/var/www/pywikipedia> python version.py
Pywikipedia (r9212 (wikipedia.py), 2011/05/04, 03:59:16)
Python 2.4.3 (#1, May 24 2008, 13:47:28)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
My user-config.py file is:
family = 'WBDWiki'
mylang = 'pl'
usernames['WBDWiki']['pl'] = u'WikiBot'
console_encoding = 'utf-8'
where 'pl' = Polish (Poland)
MediaWiki 1.16.1, PHP 5.2.10, MySQL 5.0.45, Python 2.4.3
Any ideas?
Thank in advance for your help.
Regards,
--
Danny
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-05-22 13:06
Message:
Your version is from trunk but neither from svn nor from nightly dump.
Version release of wikipedia seems ok as well as i18n.py in your pywikibot
directory; that version r9227 has been fixed for py2.4 support. Please
check whether the /var/www/pywikipedia/i18n directory exists. I guess it
doesnt. Please copy it from rewrite branch since it is marked as external
and not included into nightly dump (yet).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=330547…