Bugs item #3611511, was opened at 2013-04-21 13:44 Message generated for change (Comment added) made by drtrigon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611511...
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: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: masti (masti01) Assigned to: Nobody/Anonymous (nobody) Summary: API logger error
Initial Comment: the following error appears for vaious scripts
python replace.py "Trevill" "Trévill" "Tremouill" "Trémouill" -links:"Indeks:Trzej muszkieterowie"
Traceback (most recent call last): File "/usr/home/masti/pw/pysource/pagegenerators.py", line 1228, in __iter__ for loaded_page in self.preload(somePages): File "/usr/home/masti/pw/pysource/pagegenerators.py", line 1253, in preload pywikibot.getall(site, pagesThisSite) File "/usr/home/masti/pw/pysource/wikipedia.py", line 5445, in getall (u'', u'via API ')[site.has_api() and logger.isEnabledFor(DEBUG)], AttributeError: 'NoneType' object has no attribute 'isEnabledFor' No handlers could be found for logger "pywiki" 'NoneType' object has no attribute 'isEnabledFor' 0 pages were changed.
Pywikipedia (r11427 (wikipedia.py), 2013/04/21, 20:16:57, ok)
Python 2.7.3 (default, Sep 17 2012, 21:25:11) [GCC 4.3.4] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon) Date: 2013-04-28 05:32
Message: Can you give me some more info:
1.) Please try this again with the most recent version >11478 and report the result? 2.) Can you give me the lang and family used (e.g. from user-config.py)?
I am looking into this, but those info would help a lot!
Thanks an Greetings
----------------------------------------------------------------------
Comment By: ChongDae (cdpark) Date: 2013-04-23 16:49
Message: init_handler() is not called if -nolog or -log option is not given. So logger variable is not initialized.
Try to run "python replace.py AA BB -new".
----------------------------------------------------------------------
Comment By: masti (masti01) Date: 2013-04-21 14:01
Message: does not appear on other system with older Python $ python version.py unicode test: triggers problem #3081100 Pywikipedia [http] trunk/pywikipedia (r11425, 2013/04/21, 19:09:15, OUTDATED) Python 2.6.6 (r266:84292, Aug 28 2012, 10:55:56) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] config-settings: use_api = True use_api_login = True unicode test: triggers problem #3081100
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611511...
pywikipedia-bugs@lists.wikimedia.org