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=73137
Bug ID: 73137
Summary: Wikia family nicepath is incorrect, but is functional
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
All of the Wikia families nicepath() values are incorrect for some of their
sites.
$ python pwb.py shell
Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> s = pywikibot.Site('en', 'lyricswiki')
>>> s.nicepath()
'/wiki/'
The same occurs for families wikia and wowwiki.
However the nicepath should be ''
http://lyrics.wikia.com/Category:Artists_A
Likewise the main Wikia and main WOW sites do not have a /wiki/ prefix
http://www.wikia.com/Main_Pagehttp://www.wowwiki.com/Portal:Main
However Wikia has a redirect on the server from /wiki/ to / for those sites.
However the /wiki/ is needed for some sites.
http://cs.wow.wikia.com/wiki/Hlavn%C3%AD_strana works
But http://cs.wow.wikia.com/Hlavn%C3%AD_strana redirects to
http://cs.wow.wikia.com/wiki/Speci%C3%A1ln%C3%AD:Our
So keeping the nicepath as /wiki/ is necessary, and we have to hope Wikia has
redirects in place for all wikis where the wiki nice titles are not located at
/wiki/Foo
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73170
Bug ID: 73170
Summary: Update pywikibot to reflect the anexo namespace
removal from the Portuguese Wikipedia
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: maarten(a)mdammers.nl
Depends on: 73164
Web browser: ---
Mobile Platform: ---
Looks like the Portuguese are killing the list namespace. This needs to be
updated in several places in the family file if I recall correctly.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73024
Bug ID: 73024
Summary: Instance of 'FilePage' has no 'getHash' member
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
$ git grep getHash
scripts/checkimages.py: hash_found = self.image.getHash()
scripts/checkimages.py: hash_found = imagePage.getHash()
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73147
Bug ID: 73147
Summary: MySQLPageGenerator fall back to .my.cnf if
config.db_hostname etc are not set
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Web browser: ---
Mobile Platform: ---
defaults are now
# ############# DATABASE SETTINGS ##############
db_hostname = 'localhost'
db_username = 'wikiuser'
db_password = ''
but falling back to .my.cnf would allow direct usage on e.g. labs.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73135
Bug ID: 73135
Summary: gsrsearch-error test failures
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Infrequently, the pywikibot site.search() test method fails.
https://travis-ci.org/wikimedia/pywikibot-core/jobs/40288847
--
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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=65760
John Mark Vandenberg <jayvdb(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugzilla.wikimedia.
| |org/show_bug.cgi?id=73024
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69069
Bug ID: 69069
Summary: Scripts which are not properly tested by script_tests
[tracking]
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: ---
Most scripts should respond to -help and quit.
The scripts which do not offer -help are:
shell
version
checkimages (bug 68613)
data_ingestion (bug 68611)
flickrripper (bug 68606, and others)
replicate_wiki (bug 68664)
The script 'shell' may not benefit from a -help, but it wouldnt hurt.
--
You are receiving this mail because:
You are the assignee for the bug.