https://bugzilla.wikimedia.org/show_bug.cgi?id=56879
Web browser: --- Bug ID: 56879 Summary: TypeError in listpages Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: info@gno.de Classification: Unclassified Mobile Platform: ---
running listpages.py always fail into TypeError while closing the script:
c:\Pywikipedia\core>pwb.py listpages -random:5 -lang:en
1: Category:2001 World Weightlifting Championships 2: Ministry for the Propagation of Virtue and the Prevention of Vice (Afghani stan) 3: User talk:Oshirochan 4: Talk:Bardney monastery 5: User talk:62.45.39.95 Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound m ethod ConnectionPool.__del__ of {'https:en.wikipedia.org': [<httplib2.python2.ht tplib2.HTTPSConnectionWithTimeout instance at 0x000000000394E588>]}> ignored
https://bugzilla.wikimedia.org/show_bug.cgi?id=56879
--- Comment #1 from xqt info@gno.de --- Oh, this bug depends all scripts (maybe running through pwb.py)
https://bugzilla.wikimedia.org/show_bug.cgi?id=56879
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|TypeError in listpages |TypeError running a script | |(via pwb.py)
https://bugzilla.wikimedia.org/show_bug.cgi?id=56879
--- Comment #2 from xqt info@gno.de --- I localized that at tests/pwb_tests.phy as:
c:\Pywikipedia\ssh\pywikibot\core>pwb.py tests/pwb_tests WARNING: Configuration variable 'use_diskcache' is defined but unknown. Misspelled? WARNING: Configuration variable 'notify_unflagged_bot' is defined but unknown. Misspelled? WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows testScriptEnvironment (__main__.TestPwb) Make sure the environment is not contaminated, and is the same as ... FAIL
====================================================================== FAIL: testScriptEnvironment (__main__.TestPwb) Make sure the environment is not contaminated, and is the same as ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/pwb_tests.py", line 43, in testScriptEnvironment self.assertEqual(direct, vpwb) AssertionError: "'__builtins__': <module '__builtin__' (built-in)>\r\n'__name__' : '__main__'\r\n'__file__': 'tests\\pwb\\print_locals.py'\r\n'__doc__': 'doc string'\r\n'__package__': None\r\n" != "WARNING: Configuration variable 'use_dis kcache' is defined but unknown.\r\nMisspelled?\r\nWARNING: Configuration variabl e 'notify_unflagged_bot' is defined but unknown.\r\nMisspelled?\r\nWARNING: Runn ing on Windows and transliteration_target is not set.\r\nPlease see http://www.m ediawiki.org/wiki/Manual:Pywikipediabot/Windows\r\n'__builtins__': <module '__bu iltin__' (built-in)>\r\n'__name__': '__main__'\r\n'__file__': 'tests\\pwb\\p rint_locals.py'\r\n'__doc__': 'docstring'\r\n'__package__': None\r\n"
---------------------------------------------------------------------- Ran 1 test in 0.570s
FAILED (failures=1) Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound m ethod ConnectionPool.__del__ of {}> ignored
https://bugzilla.wikimedia.org/show_bug.cgi?id=56879
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 100157 had a related patch set uploaded by Xqt: (bug 56879) ignore TypeError while deleting
https://gerrit.wikimedia.org/r/100157
https://bugzilla.wikimedia.org/show_bug.cgi?id=56879
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=56879
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal Assignee|Pywikipedia-bugs@lists.wiki |info@gno.de |media.org |
pywikipedia-bugs@lists.wikimedia.org