Last modified: 2013-12-08 08:04:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58879, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56879 - TypeError running a script (via pwb.py)
TypeError running a script (via pwb.py)
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Normal normal
: ---
Assigned To: xqt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-11 04:29 UTC by xqt
Modified: 2013-12-08 08:04 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description xqt 2013-11-11 04:29:09 UTC
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
Comment 1 xqt 2013-11-11 04:35:22 UTC
Oh, this bug depends all scripts (maybe running through pwb.py)
Comment 2 xqt 2013-12-07 16:53:55 UTC
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
Comment 3 Gerrit Notification Bot 2013-12-07 17:48:11 UTC
Change 100157 had a related patch set uploaded by Xqt:
(bug 56879) ignore TypeError while deleting

https://gerrit.wikimedia.org/r/100157
Comment 4 Gerrit Notification Bot 2013-12-07 19:45:47 UTC
Change 100157 merged by jenkins-bot:
(bug 56879) ignore TypeError while deleting

https://gerrit.wikimedia.org/r/100157

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links