https://bugzilla.wikimedia.org/show_bug.cgi?id=71399
Bug ID: 71399
Summary: imagetransfer.py has bug
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: reza.energy(a)gmail.com
Web browser: ---
Mobile Platform: ---
imagetransfer.py has bug I run the command in below:
python pwb.py imagetransfer -family:wikipedia -lang:en 'File:John_Fowles.jpg'
-tolang:fa -tofamily:wikipedia -keepname
bot shows this error:
Traceback (most recent call last):
File "pwb.py", line 171, 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/imagetransfer.py", line 341, in <module>
main()
File "scripts/imagetransfer.py", line 338, in main
bot.run()
File "scripts/imagetransfer.py", line 291, in run
self.transferImage(imagelist[todo])
File "scripts/imagetransfer.py", line 186, in transferImage
description += '\n\n' + str(sourceImagePage.getFileVersionHistoryTable())
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position
264: ordinal not in range(128)
<type 'exceptions.UnicodeEncodeError'>
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=61555
Bug ID: 61555
Summary: Check for new messages on wiki during bot run
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
Web browser: ---
Mobile Platform: ---
At the moment (at least for core, and probably also for compat), new messages
are only seen if the bot is restarted. For long-running bots, it's sensible to
break/pause/stop editing on a certain wiki when a talk page is edited.
Getting the info from the wiki is easy -- just add meta=userinfo&uiprop=hasmsg
to the api query. Afterwards, meta=notifications can be used for details.
Added bonus: every api query returns a check whether the user is still logged
in correctly.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70969
Bug ID: 70969
Summary: xmlreader test errors on win32 py3
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: Windows XP
Status: NEW
Severity: normal
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
test_XmlDumpAllRevs (tests.xmlreader_tests.XmlReaderTestCase) ...
c:\pywiki\core\tests\xmlreader_tests.py:25: ResourceWarning: unclosed file
<_io.TextIOWrapper name='c:\\pywiki\\core\\tests\\data\\article-pear.xml'
mode='r' encoding='cp
1252'>
pages = [r for r in
ok
test_XmlDumpFirstRev (tests.xmlreader_tests.XmlReaderTestCase) ...
c:\pywiki\core\tests\xmlreader_tests.py:38: ResourceWarning: unclosed file
<_io.TextIOWrapper name='c:\\pywiki\\core\\tests\\data\\article-pear.xml'
mode='r' encoding='c
p1252'>
pages = [r for r in
ok
test_XmlDumpRedirect (tests.xmlreader_tests.XmlReaderTestCase) ... ERROR
c:\Python34\lib\unittest\case.py:605: ResourceWarning: unclosed file
<_io.TextIOWrapper name='c:\\pywiki\\core\\tests\\data\\article-pyrus.xml'
mode='r' encod
ing='cp1252'>
outcome.errors.clear()
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71738
Bug ID: 71738
Summary: API to use Warning system
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: network
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Currently the API module uses a custom warning system, and some parts of the
codebase dont correctly handle multiple warnings:
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/9ca1b85c367b381947426c26…
The API should be migrated to using the Python core warning system
https://docs.python.org/2/library/warnings.html#warnings.warn
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71713
Bug ID: 71713
Summary: coordinate_import.py should nod add coordinates to
items about people
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
When importing coordinates, bot sometimes adds (incorrectly) coords to items
which are about persons or which are lists.
script should automatically check, if item have P31=Q5 or P31=Q13406463 (this
list should be defined in script and by parameter).
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71497
Bug ID: 71497
Summary: SSLError on requesting data from Wikidata
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: network
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: lokal_profil(a)hotmail.com
Web browser: ---
Mobile Platform: ---
When trying to get() an item from wikidata I get the following SSL related
error:
ERROR: Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/pywikibot-2.0b1-py2.7.egg/pywikibot/data/api.py",
line 452, in submit
headers=headers, body=body)
File
"/usr/local/lib/python2.7/dist-packages/pywikibot-2.0b1-py2.7.egg/pywikibot/tools.py",
line 367, in wrapper
return method(*__args, **__kw)
File
"/usr/local/lib/python2.7/dist-packages/pywikibot-2.0b1-py2.7.egg/pywikibot/comms/http.py",
line 258, in request
raise request.data
SSLError: [Errno 185090050] _ssl.c:344: error:0B084002:x509 certificate
routines:X509_load_cert_crl_file:system lib
To reproduce:
import pywikibot
repo = pywikibot.Site().data_repository()
item = pywikibot.ItemPage(repo, 'Q4115189')
item.get()
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71538
Bug ID: 71538
Summary: Pages might not be returned in data at first
req.submit() in Query.Generators
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: mpaa.wiki(a)gmail.com
Web browser: ---
Mobile Platform: ---
import pywikibot
site = pywikibot.getSite()
cat = pywikibot.Category(site, 'Speeches')
for i in cat.subcategories(total=5):
print i
returns empty list even if subcats are present.
api,py gives up at first try if this fails:
if self.resultkey in self.data["query"]:
it should try again a query has still data to provide:
{u'query-continue': {u'categorymembers': {u'gcmcontinue':
u'page|414444524553532044454c49564552454420415420544845204d41534f4e20434f4c4c4547452c20414e0a45535341595320414e44204144445245535345532f414e20414444524553532044454c49564552454420415420544845204d41534f4e20434f4c4c454745|411259'}},
u'query': {u'userinfo': {u'id': 257091, u'name': u'Mpaa'}}}
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57995
Web browser: ---
Bug ID: 57995
Summary: Add function for list=watchlistraw
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: ---
Didn't see a function which retrieves a user's watchlist (Site.watchlist_revs
fetches changes on the watchlist)
This isn't as easy as it looks since the elements are returned directly under
'watchlistraw' and not 'query' like every other API module...
--
You are receiving this mail because:
You are the assignee for the bug.