https://bugzilla.wikimedia.org/show_bug.cgi?id=72047
Bug ID: 72047
Summary: archivebot problems on cswiki
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: archivebot.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
Some errors causes tahat not all pages should be correctly archived
I:\py\rewrite>pwb.py archivebot archive -lang:cs
...
1) incorrect month name, but this string "06." is in page only in urls :
Processing [[cs:Diskuse s wikipedistou:JAn Dudík]]
incorrect month name "06." in page in site wikipedia:cs
ERROR: Error occured while processing page [[cs:Diskuse s wikipedistou:JAn
Dudík
]]
ERROR: KeyError:
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 614, in main
archiver = PageArchiver(pg, a, salt, force)
File "I:\py\rewrite\scripts\archivebot.py", line 383, in __init__
self.page = DiscussionPage(page, self)
File "I:\py\rewrite\scripts\archivebot.py", line 293, in __init__
self.load_page()
File "I:\py\rewrite\scripts\archivebot.py", line 321, in load_page
cur_thread.feed_line(line)
File "I:\py\rewrite\scripts\archivebot.py", line 238, in feed_line
timestamp = self.ts.timestripper(line)
File "I:\py\rewrite\pywikibot\textlib.py", line 1321, in timestripper
raise KeyError
KeyError
2) attributeError: 'NoneType' object has no attribute 'group'
Processing [[cs:Diskuse s wikipedistou:JeremySil]]
19 Threads found on [[cs:Diskuse s wikipedistou:JeremySil]]
Looking for: {{archivace}} in [[cs:Diskuse s wikipedistou:JeremySil]]
ERROR: Error occured while processing page [[cs:Diskuse s
wikipedistou:JeremySil
]]
ERROR: AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 615, in main
archiver.run()
File "I:\py\rewrite\scripts\archivebot.py", line 493, in run
whys = self.analyze_page()
File "I:\py\rewrite\scripts\archivebot.py", line 453, in analyze_page
max_arch_size = str2size(self.get_attr('maxarchivesize'))
File "I:\py\rewrite\scripts\archivebot.py", line 173, in str2size
val, unit = (int(r.group(1)), r.group(2))
AttributeError: 'NoneType' object has no attribute 'group'
3) When archive is in another path, bot fails:
Processing [[cs:Wikipedie:Byrokraté/Nástěnka]]
29 Threads found on [[cs:Wikipedie:Byrokraté/Nástěnka]]
Looking for: {{archivace}} in [[cs:Wikipedie:Byrokraté/Nástěnka]]
Processing 29 threads
ERROR: Error occured while processing page [[cs:Wikipedie:Byrokraté/Nástěnka]]
ERROR: ArchiveSecurityError: Archive page [[cs:Wikipedie:Byrokraté/Archiv1]]
doe
s not start with page title (Wikipedie:Byrokraté/Nástěnka)!
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 615, in main
archiver.run()
File "I:\py\rewrite\scripts\archivebot.py", line 493, in run
whys = self.analyze_page()
File "I:\py\rewrite\scripts\archivebot.py", line 481, in analyze_page
if self.feed_archive(archive, t, max_arch_size, params):
File "I:\py\rewrite\scripts\archivebot.py", line 447, in feed_archive
% (archive, self.page.title()))
ArchiveSecurityError: Archive page [[cs:Wikipedie:ByrokratĂ?/Archiv1]] does not
start with page title (Wikipedie:ByrokratĂ?/NástÄ?nka)!
4) unknown interwiki prefixes c: and outreach:
Processing [[cs:Wikipedie:Nástěnka správců]]
52 Threads found on [[cs:Wikipedie:Nástěnka správců]]
Looking for: {{archivace}} in [[cs:Wikipedie:Nástěnka správců]]
Processing 52 threads
127 Threads found on [[cs:Wikipedie:Nástěnka správců/Archiv58]]
Archiving 23 thread(s).
ERROR: Error occured while processing page [[cs:Wikipedie:Nástěnka správců]]
ERROR: SiteDefinitionError: :c:User:Martinnovacek.cz is not a local page on
wiki
pedia:cs, and the interwiki prefix c is not supported by PyWikiBot!
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 615, in main
archiver.run()
File "I:\py\rewrite\scripts\archivebot.py", line 509, in run
self.archives[a].update(comment)
File "I:\py\rewrite\scripts\archivebot.py", line 358, in update
self.save(summary)
File "I:\py\rewrite\pywikibot\tools.py", line 516, in wrapper
return obj(*__args, **__kw)
File "I:\py\rewrite\pywikibot\page.py", line 985, in save
**kwargs)
File "I:\py\rewrite\pywikibot\page.py", line 993, in _save
comment = self._cosmetic_changes_hook(comment) or comment
File "I:\py\rewrite\pywikibot\page.py", line 1040, in _cosmetic_changes_hook
self.text = ccToolkit.change(old)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 228, in change
new_text = self._change(text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 221, in _change
text = self.safe_execute(method, text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 199, in safe_execute
result = method(text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 548, in cleanUpLinks
'startspace'])
File "I:\py\rewrite\pywikibot\textlib.py", line 224, in replaceExcept
replacement = new(match)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 442, in handleOneLink
namespace = page.namespace()
File "I:\py\rewrite\pywikibot\page.py", line 157, in namespace
return self._link.namespace
File "I:\py\rewrite\pywikibot\page.py", line 4153, in namespace
self.parse()
File "I:\py\rewrite\pywikibot\page.py", line 4069, in parse
self._text, self._site, prefix))
SiteDefinitionError: :c:User:Martinnovacek.cz is not a local page on
wikipedia:c
s, and the interwiki prefix c is not supported by PyWikiBot!
Processing [[cs:Wikipedie:Pod lípou (návrhy)]]
12 Threads found on [[cs:Wikipedie:Pod lípou (návrhy)]]
Looking for: {{archivace}} in [[cs:Wikipedie:Pod lípou (návrhy)]]
Processing 12 threads
14 Threads found on [[cs:Wikipedie:Pod lípou (návrhy)/Archiv 2014-01]]
Archiving 2 thread(s).
ERROR: Error occured while processing page [[cs:Wikipedie:Pod lípou (návrhy)]]
ERROR: SiteDefinitionError: :outreach:Welcome to Wikipedia (Bookshelf)/2013
edit
ion/text is not a local page on wikipedia:cs, and the interwiki prefix outreach
is not supported by PyWikiBot!
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 615, in main
archiver.run()
File "I:\py\rewrite\scripts\archivebot.py", line 509, in run
self.archives[a].update(comment)
File "I:\py\rewrite\scripts\archivebot.py", line 358, in update
self.save(summary)
File "I:\py\rewrite\pywikibot\tools.py", line 516, in wrapper
return obj(*__args, **__kw)
File "I:\py\rewrite\pywikibot\page.py", line 985, in save
**kwargs)
File "I:\py\rewrite\pywikibot\page.py", line 993, in _save
comment = self._cosmetic_changes_hook(comment) or comment
File "I:\py\rewrite\pywikibot\page.py", line 1040, in _cosmetic_changes_hook
self.text = ccToolkit.change(old)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 228, in change
new_text = self._change(text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 221, in _change
text = self.safe_execute(method, text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 199, in safe_execute
result = method(text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 548, in cleanUpLinks
'startspace'])
File "I:\py\rewrite\pywikibot\textlib.py", line 224, in replaceExcept
replacement = new(match)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 442, in handleOneLink
namespace = page.namespace()
File "I:\py\rewrite\pywikibot\page.py", line 157, in namespace
return self._link.namespace
File "I:\py\rewrite\pywikibot\page.py", line 4153, in namespace
self.parse()
File "I:\py\rewrite\pywikibot\page.py", line 4069, in parse
self._text, self._site, prefix))
SiteDefinitionError: :outreach:Welcome to Wikipedia (Bookshelf)/2013
edition/tex
t is not a local page on wikipedia:cs, and the interwiki prefix outreach is not
supported by PyWikiBot!
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70703
Bug ID: 70703
Summary: gui depends on idlelib
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
The GUI module depends on idlelib, which is not specified as a dependency.
Here is an example
$ python pwb.py upload -family:wikidata -lang:test
No input filename given
File or URL where image is now:
https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demons…
The filename on the target wiki will default to:
PNG_transparency_demonstration_1.png
Enter a better name, or press enter to accept:
The suggested description is:
It is not possible to upload a file without a summary/description.
Do you want to change this description? ([Y]es, [n]o, [q]uit) y
Could not load GUI modules: No module named idlelib
Do you want to change this description? ([Y]es, [n]o, [q]uit) y
Could not load GUI modules: No module named idlelib
... etc ..
The result is it isnt possible to add a description.
Either we add a dependency, and/or we fall back gracefully to text based UI.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69204
Bug ID: 69204
Summary: weblinkchecker.py uses a fake user-agent
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: network
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
weblinkchecker.py (core) contains this comment:
# we fake being Firefox because some webservers block unknown
# clients, e.g. https://images.google.de/images?q=Albit gives a 403
# when using the PyWikipediaBot user agent.
'User-agent': 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8) Gecko/20051128
SUSE/1.5-0.1 Firefox/1.5',
Which was added to core in Jan 2007:
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/3165
Faking the user-agent should be an option, default disabled, or only used for
servers known to be problematic.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72120
Bug ID: 72120
Summary: pagegenerators.GeneratorFactory() uses default site,
even when command line args havent been processed
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
In the current code, pywikibot.handleArgs() must be called before
pagegenerators.GeneratorFactory(), as
pagegenerators.GeneratorFactory.__init__() calls pywikibot.Site().
If pagegenerators.GeneratorFactory() is called first, the default site per
user-config is used, and command line args (-family -lang -user) are ignored.
See bug 63800.
This could be almost completely fixed by changing GeneratorFactory.site to be a
property, loaded on access. That prevents the typical coding bug which look
like:
genFactory = pagegenerators.GeneratorFactory()
for arg in pywikibot.handleArgs():
if genFactory.handleArg(arg):
pass
The current solution is to use and promote the pattern:
local_args = pywikibot.handleArgs()
genFactory = pagegenerators.GeneratorFactory()
for arg in local_args:
if genFactory.handleArg(arg):
pass
However it doesnt prevent this:
genFactory = pagegenerators.GeneratorFactory()
genFactory.handleArg('-file:' + filename):
...
pywikibot.handleArgs()
One way to prevent that is to raise an exception in pywikibot.handleArgs if it
is called after pywikibot.Site() has instantiated a default site, and possibly
only if -family/-lang/-user are supplied on the command line.
Another approach (very dodgy) is for pywikibot to know which Site object is the
'default' site, and pywikibot.handleArgs() change that object if
-family/-lang/-user are supplied on the command line.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
Bug ID: 64503
Summary: Add time to harvest_template.py
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: maarten(a)mdammers.nl
Depends on: 64501, 64502
Web browser: ---
Mobile Platform: ---
Time is one of the new Wikibase datatypes. harvest_template.py should support
importing time.
https://www.wikidata.org/wiki/User:Underlying_lk/harvest_template_old.py can be
used as reference, but that code combines everything. I split it up in multiple
bugs.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72680
Bug ID: 72680
Summary: 'user-config.py' not found if runs with cron
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: l.rabinelli+bugzilla(a)gmail.com
Web browser: ---
Mobile Platform: ---
After Ic8ac542919e18ad16458d21e0f9713ade899b964 if I try to run a script via
command line (foreground), it's executed correctly.
Eg: python pwb.py <script_name>
But when I schedule the same script via cron, it terminates with this error:
NOTE: 'user-config.py' was not found!
Please follow the prompts to create it:
Traceback (most recent call last):
File "/data/project/betabot/core/pwb.py", line 162, in <module>
[])
File "/data/project/betabot/core/pwb.py", line 74, in run_python_file
source = open(filename).read()
IOError: [Errno 2] No such file or directory: 'generate_user_files.py'
This is my version:
Pywikibot: [https] r-pywikibot-core.git (178e01a, g4377, 2014/10/26, 22:42:22,
OUTDATED)
Release version: 2.0b2
httplib2 version: 0.9
certificate test: ok
Python: 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3]
unicode test: ok
Please, ask me if you need more information.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72093
Bug ID: 72093
Summary: commands with colon fails
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
When running script with pagegenerators containing character ":", bot fails:
I:\py\rewrite>pwb.py newitem -catr:údržba_Wikipedie
Retrieving 50 pages from wikipedia:cs.
>>> Wikipedie:Požadované články <<<
[[cs:Wikipedie:Požadované články]] already has an item: [[wikidata:Q4664111]].
...
I:\py\rewrite>pwb.py newitem -catr:údržba:Wikidata
Traceback (most recent call last):
File "I:\py\rewrite\pwb.py", line 164, in <module>
run_python_file(fn, argv, argvu)
File "I:\py\rewrite\pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "I:\py\rewrite\scripts\newitem.py", line 149, in <module>
main()
File "I:\py\rewrite\scripts\newitem.py", line 135, in main
elif gen.handleArg(arg):
File "I:\py\rewrite\pywikibot\pagegenerators.py", line 415, in handleArg
gen = self.getCategoryGen(arg, len('-catr'), recurse=True)
File "I:\py\rewrite\pywikibot\pagegenerators.py", line 283, in getCategoryGen
defaultNamespace=14))
File "I:\py\rewrite\pywikibot\tools.py", line 529, in wrapper
return obj(*__args, **__kw)
File "I:\py\rewrite\pywikibot\page.py", line 1951, in __init__
if self.namespace() != 14:
File "I:\py\rewrite\pywikibot\page.py", line 158, in namespace
return self._link.namespace
File "I:\py\rewrite\pywikibot\page.py", line 4141, in namespace
self.parse()
File "I:\py\rewrite\pywikibot\page.py", line 4050, in parse
newsite = self._site.interwiki(prefix)
File "I:\py\rewrite\pywikibot\site.py", line 600, in interwiki
"'{0}' is not an interwiki prefix.".format(prefix))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in position 0:
ordinal not in range(128)
<type 'exceptions.UnicodeEncodeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
I:\py\rewrite>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71817
Bug ID: 71817
Summary: if [[file:]] exists in the page Cosmetic changes.py
will crash
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: Cosmetic changes
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: reza.energy(a)gmail.com
Web browser: ---
Mobile Platform: ---
If [[file:]] (or other namespaces) exists in the page Cosmetic_changes.py will
crash
The error:
Traceback (most recent call last):
File "pwb.py", line 164, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/cosmetic_changes.py", line 971, in <module>
main()
File "scripts/cosmetic_changes.py", line 965, in main
bot.run()
File "/home/reza/pycore/pywikibot/bot.py", line 939, in run
self.treat(page)
File "scripts/cosmetic_changes.py", line 904, in treat
changedText = ccToolkit.change(page.get())
File "scripts/cosmetic_changes.py", line 228, in change
new_text = self._change(text)
File "scripts/cosmetic_changes.py", line 221, in _change
text = self.safe_execute(method, text)
File "scripts/cosmetic_changes.py", line 199, in safe_execute
result = method(text)
File "scripts/cosmetic_changes.py", line 548, in cleanUpLinks
'startspace'])
File "/home/reza/pycore/pywikibot/textlib.py", line 224, in replaceExcept
replacement = new(match)
File "scripts/cosmetic_changes.py", line 442, in handleOneLink
namespace = page.namespace()
File "/home/reza/pycore/pywikibot/page.py", line 154, in namespace
return self._link.namespace
File "/home/reza/pycore/pywikibot/page.py", line 4160, in namespace
self.parse()
File "/home/reza/pycore/pywikibot/page.py", line 4137, in parse
% self._text)
pywikibot.exceptions.Error: Invalid link (no page title): 'file:'
<class 'pywikibot.exceptions.Error'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72674
Bug ID: 72674
Summary: Key error: u'za' in interwiki.py
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: interwiki.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
D:\Py\rewrite>pwb.py interwiki -family:wiktionary -cleanup
-start:category:Finština -array:50 -query:30 -untranslated
NOTE: Number of pages queued is 0, trying to add 30 more.
Retrieving 30 pages from wiktionary:cs.
ERROR: Traceback (most recent call last):
File "D:\Py\rewrite\pywikibot\data\api.py", line 584, in submit
headers=headers, body=body)
File "D:\Py\rewrite\pywikibot\tools.py", line 549, in wrapper
return obj(*__args, **__kw)
File "D:\Py\rewrite\pywikibot\comms\http.py", line 232, in request
host = site.ssl_hostname()
File "D:\Py\rewrite\pywikibot\site.py", line 550, in <lambda>
f = lambda *args, **kwargs: method(self.code, *args, **kwargs)
File "D:\Py\rewrite\pywikibot\family.py", line 994, in ssl_hostname
return self.hostname(code)
File "D:\Py\rewrite\pywikibot\family.py", line 990, in hostname
return self.langs[code]
KeyError: u'za'
WARNING: Waiting 5 seconds before retrying.
...
WARNING: Waiting 10 seconds before retrying.
etc.
note:the only file containing "u'Za'" is imageuncat.py
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71971
Bug ID: 71971
Summary: site_tests.testImageusage timeout error after maximum
retries
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
The recent travis builds are regularly failing on site_tests.testImageusage
with a timeout error only when run against en.wp. Travis runs this test for
each checking against 2.6, 2.7.8 and 3.3.5 at the moment. It doesnt happen
every time, and it hasnt happend on 2.6 yet for some reason.
Note this bug is _not_ bug 60214, which is about content & caching assumptions
in the test case, which very affect mostly re-runs of the test suite on a warm
cache, and only very rarely occur on a cold cache.
Python 2.7.8 log (https://travis-ci.org/wikimedia/pywikibot-core/jobs/37633107)
ERROR: testImageusage (tests.site_tests.TestSiteObject)
Test the site.imageusage() method
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line
616, in testImageusage
for using in mysite.imageusage(imagepage, filterredir=True, total=5):
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 971, in __iter__
self.data = self.request.submit()
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 764, in submit
self._data = super(CachedRequest, self).submit()
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 535, in submit
self.wait()
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 648, in wait
raise TimeoutError("Maximum retries attempted without success.")
TimeoutError: Maximum retries attempted without success.
----
Python 3.3.5 has a two part log
(https://travis-ci.org/wikimedia/pywikibot-core/jobs/37633111)
Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 517, in submit
headers=headers, body=body)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/tools.py", line
367, in wrapper
return method(*__args, **__kw)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py",
line 258, in request
raise request.data
File
"/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/threadedhttp.py",
line 219, in request
max_redirects, connection_type
File
"/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/httplib2-0.9_pywikibot1-py3.3.egg/httplib2/__init__.py",
line 1292, in request
(response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
File
"/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/httplib2-0.9_pywikibot1-py3.3.egg/httplib2/__init__.py",
line 1042, in _request
(response, content) = self._conn_request(conn, request_uri, method, body,
headers)
File
"/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/httplib2-0.9_pywikibot1-py3.3.egg/httplib2/__init__.py",
line 995, in _conn_request
response = conn.getresponse()
File "/opt/python/3.3.5/lib/python3.3/http/client.py", line 1147, in
getresponse
response.begin()
File "/opt/python/3.3.5/lib/python3.3/http/client.py", line 358, in begin
version, status, reason = self._read_status()
File "/opt/python/3.3.5/lib/python3.3/http/client.py", line 320, in
_read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/opt/python/3.3.5/lib/python3.3/socket.py", line 297, in readinto
return self._sock.recv_into(b)
File "/opt/python/3.3.5/lib/python3.3/ssl.py", line 493, in recv_into
return self.read(nbytes, buffer)
File "/opt/python/3.3.5/lib/python3.3/ssl.py", line 367, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line
616, in testImageusage
for using in mysite.imageusage(imagepage, filterredir=True, total=5):
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 971, in __iter__
self.data = self.request.submit()
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 764, in submit
self._data = super(CachedRequest, self).submit()
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 535, in submit
self.wait()
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py",
line 648, in wait
raise TimeoutError("Maximum retries attempted without success.")
pywikibot.data.api.TimeoutError: Maximum retries attempted without success.
The lowest travis job number i've found with this problem is
https://travis-ci.org/wikimedia/pywikibot-core/jobs/37481646
--
You are receiving this mail because:
You are the assignee for the bug.