https://bugzilla.wikimedia.org/show_bug.cgi?id=70754
Bug ID: 70754
Summary: MW Exception causes infinite loop
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: blocker
Priority: Unprioritized
Component: network
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
https://test.wikidata.org/w/api.php?action=wbgetentities&ids=Q6 = <api
servedby="mw1017"><error code="internal_api_error_InvalidArgumentException"
info="Exception Caught: AliasSerializer can only serialize an array of aliases"
xml:space="preserve" /></api>
Due to https://gerrit.wikimedia.org/r/#/c/105152/ , which was a follow up of
https://gerrit.wikimedia.org/r/#/c/105099/ , any code that matches
"internal_api_error_" causes a retry, which of course will fail indefinitely,
and causings our build to break:
https://travis-ci.org/wikimedia/pywikibot-core/jobs/35077363
I'm told that the API exception from Wikidata is due to a bug in their deploy,
which should be fixed shortly, but our code should discern whether the error is
re-retryable.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68611
Bug ID: 68611
Summary: Running data_ingestion.py depends on
tests/data/csv_ingestion.csv
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: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Running data_ingestion requires the file 'tests/data/csv_ingestion.csv'
relative to CWD, which doesnt exist except when the bot operator is calling the
script whilst CWD is the scripts directory.
$ python pwb.py scripts/data_ingestion.py
Traceback (most recent call last):
File "pwb.py", line 157, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/data_ingestion.py", line 144, in <module>
reader = CSVReader(open('tests/data/csv_ingestion.csv'), 'url')
IOError: [Errno 2] No such file or directory: 'tests/data/csv_ingestion.csv'
<type 'exceptions.IOError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
There is a test, which isnt run as part of the test suite:
scripts/tests/test_data_ingestion.py
And the data file does exist as:
scripts/tests/data/csv_ingestion.csv
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70766
Bug ID: 70766
Summary: It is using the user configured site, even though
another site was requested
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: CommodoreFabianus(a)gmx.de
Web browser: ---
Mobile Platform: ---
In the user-config a specific site is set but via 'pywikibot.getSite' or
'pywikibot.Site' another (unrelated) Site (family) is chosen.
But in fact after a few requests to the unrelated site it's also querying the
user configured site. I found this when I was trying to figure out why I got
warnings for a complete legit API call.
>>> import pywikibot
>>> wp = pywikibot.getSite("en", "wikipedia")
>>> wp.tokens['edit']
https://en.wikipedia.org/w/api.phphttps://en.wikipedia.org/w/api.phphttps://en.wikipedia.org/w/api.phphttps://en.wikipedia.org/w/api.phphttps://en.wikipedia.org/w/api.phphttp://wiki.kerbalspaceprogram.com/w/api.php
WARNING: API warning (query): Unrecognized value for parameter 'meta': tokens
WARNING: API warning (main): Unrecognized parameter: 'type'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pywikibot/site.py", line 1200, in __getitem__
return storage[key]
KeyError: 'csrf'
If I change the user configuration to the English Wikipedia all api.php calls
vanish except one to en.wikipedia.org and I get a legit result.
Each URI is directly printed in the first line threadedhttp's Http.request
method.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56963
Web browser: ---
Bug ID: 56963
Summary: Tests: handle network problems gracefully
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: valhallasw(a)arctus.nl
Classification: Unclassified
Mobile Platform: ---
https://integration.wikimedia.org/ci/job/pywikibot-core-tests/186/consoleFu…
Retrying often is probably not the best option for unit tests. This could
either be solved by handling the network errors gracefully in some way (and
then passing the test?), or by switching tests to run on a local mediawiki (see
https://bugzilla.wikimedia.org/56961 )
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55241
Web browser: ---
Bug ID: 55241
Summary: Problem with chinese character
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1327/
Reported by: jandudik
Created on: 2011-08-03 11:31:41
Subject: Problem with chinese character
Original description:
Bot removes interwiki, which have incorrect character at the end.
But mediawiki translates this character correctly
http://pl.wikipedia.org/w/index.php?title=Wios%C5%82onos\_ameryka%C5%84ski&…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70653
Bug ID: 70653
Summary: Generic {{delete}} template at Page.delete() method
should be localized
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: info(a)gno.de
Web browser: ---
Mobile Platform: ---
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70652
Bug ID: 70652
Summary: {{speedydelete}} template at Page.delete should be
localized
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Web browser: ---
Mobile Platform: ---
There is no generic {{speedydelete}} template at all site. That's why it should
be localized.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70651
Bug ID: 70651
Summary: generic {{delete}} template in casechecker.py should
be localized
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Web browser: ---
Mobile Platform: ---
--
You are receiving this mail because:
You are the assignee for the bug.