---
** [bugs:#1666] Problems with logging Special pages**
**Status:** open
**Created:** Wed Sep 04, 2013 04:03 AM UTC by Victor Chaves
**Last Updated:** Wed Sep 04, 2013 04:03 AM UTC
**Owner:** nobody
Using pagegenerators.py does not log -unusedfiles or -uncatfiles , which are found in Special:Unusedfiles and Special:UncategorizedFiles, respectively, on Wikia.
The script creates a file on the log directory, but it is empty. When using the script, nothing is printed on the console (which I have been told it should).
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Should be fixed in the current nightly - it did not pack the correct httplib2, but does now.
---
** [bugs:#1665] harvest template does not work (certificate faled)**
**Status:** open
**Created:** Tue Sep 03, 2013 11:21 AM UTC by JAn
**Last Updated:** Tue Sep 03, 2013 11:21 AM UTC
**Owner:** nobody
Bot updated from http://tools.wmflabs.org/pywikibot/ does not work
D:\Py\rewrite>pwb.py harvest_template -subcats:Údržba:Commonscat_není_na_Wikidatech -template:"Commonscat" "1" P373
WARNING: Running on Windows and transliteration_target is not set.
Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows
git není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
ERROR: Traceback (most recent call last):
File "D:\Py\rewrite\pywikibot\data\api.py", line 284, in submit
body=paramstring)
File "D:\Py\rewrite\pywikibot\comms\http.py", line 123, in request
raise FatalServerError(str(request.data))
FatalServerError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SER
VER_CERTIFICATE:certificate verify failed
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 58, in <module>
execfile(sys.argv[0])
File "D:\Py\rewrite\scripts\harvest_template.py", line 174, in <module>
main()
File "D:\Py\rewrite\scripts\harvest_template.py", line 146, in main
for arg in pywikibot.handleArgs():
File "D:\Py\rewrite\pywikibot\bot.py", line 641, in handleArgs
init_handlers()
File "D:\Py\rewrite\pywikibot\bot.py", line 233, in init_handlers
writelogheader()
File "D:\Py\rewrite\pywikibot\bot.py", line 256, in writelogheader
site.live_version())))
File "D:\Py\rewrite\pywikibot\site.py", line 1228, in live_version
versionstring = self.siteinfo['generator']
File "D:\Py\rewrite\pywikibot\site.py", line 1135, in siteinfo
self._getsiteinfo()
File "D:\Py\rewrite\pywikibot\site.py", line 1092, in _getsiteinfo
sidata = sirequest.submit()
File "D:\Py\rewrite\pywikibot\data\api.py", line 462, in submit
self._data = super(CachedRequest, self).submit()
File "D:\Py\rewrite\pywikibot\data\api.py", line 284, in submit
body=paramstring)
File "D:\Py\rewrite\pywikibot\comms\http.py", line 123, in request
raise FatalServerError(str(request.data))
pywikibot.exceptions.FatalServerError: [Errno 1] _ssl.c:504: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
D:\Py\rewrite>pwb.py version
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 58, in <module>
execfile(sys.argv[0])
File "version", line 1
nightly:pywikipedia-rewrite
^
SyntaxError: invalid syntax
D:\Py\rewrite>
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Stack trace during hang:
*** STACKTRACE - START ***
# ThreadID: 140208457426688
File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap
self.__bootstrap_inner()
File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File: "connectionkilltest.py", line 16, in run
for filename, lineno, name, line in traceback.extract_stack(stack):
# ThreadID: 140208472311552
File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap
self.__bootstrap_inner()
File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File: "pywikibot/comms/threadedhttp.py", line 343, in run
item.data = self.http.request(*item.args, **item.kwargs)
File: "pywikibot/comms/threadedhttp.py", line 219, in request
max_redirects, connection_type
File: "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1444, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File: "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1196, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File: "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1166, in _conn_request
response = conn.getresponse()
File: "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
response.begin()
File: "/usr/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File: "/usr/lib/python2.7/httplib.py", line 365, in _read_status
line = self.fp.readline()
File: "/usr/lib/python2.7/socket.py", line 430, in readline
data = recv(1)
File: "/usr/lib/python2.7/ssl.py", line 241, in recv
return self.read(buflen)
File: "/usr/lib/python2.7/ssl.py", line 160, in read
return self._sslobj.read(len)
# ThreadID: 140208510514944
File: "pwb.py", line 103, in <module>
run_python_file(fn, args)
File: "pwb.py", line 49, in run_python_file
exec compile(source, filename, "exec") in main_mod.__dict__
File: "connectionkilltest.py", line 36, in <module>
p.put_async('test edit')
File: "pywikibot/page.py", line 887, in put_async
async=True, callback=callback, **kwargs)
File: "pywikibot/page.py", line 872, in put
async=async, callback=callback, **kwargs)
File: "pywikibot/page.py", line 782, in save
if not force and not self.botMayEdit():
File: "pywikibot/page.py", line 710, in botMayEdit
username = self.site.user()
File: "pywikibot/site.py", line 206, in user
if self.logged_in(True):
File: "pywikibot/site.py", line 842, in logged_in
if sysop and 'sysop' not in self.userinfo['groups']:
File: "pywikibot/site.py", line 910, in getuserinfo
uidata = uirequest.submit()
File: "pywikibot/data/api.py", line 284, in submit
body=paramstring)
File: "pywikibot/comms/http.py", line 118, in request
request.lock.acquire()
File: "/usr/lib/python2.7/threading.py", line 323, in acquire
self.__cond.wait()
File: "/usr/lib/python2.7/threading.py", line 243, in wait
waiter.acquire()
*** STACKTRACE - END ***
So: probably not a deadlock, just the ssl library hanging.
---
** [bugs:#1657] core hangs on killed http(s) connection**
**Status:** open
**Created:** Thu Aug 22, 2013 03:14 PM UTC by Merlijn S. van Deen
**Last Updated:** Thu Aug 22, 2013 03:14 PM UTC
**Owner:** nobody
Steps to reproduce:
>>> p = pywikibot.Page(pywikibot.getSite('nl', 'wikipedia'), 'Wikipedia')
>>> p.get()
# now kill the connection, e.g. using tcpview in windows
>>> p = pywikibot.Page(pywikibot.getSite('nl', 'wikipedia'), 'Wikipedia')
>>> p.get()
# hangs
Expected result:
pywikibot reconnects and executes the .get()
Actual result:
complete hang (deadlock?)
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
---
** [bugs:#1665] harvest template does not work (certificate faled)**
**Status:** open
**Created:** Tue Sep 03, 2013 11:21 AM UTC by JAn
**Last Updated:** Tue Sep 03, 2013 11:21 AM UTC
**Owner:** nobody
Bot updated from http://tools.wmflabs.org/pywikibot/ does not work
D:\Py\rewrite>pwb.py harvest_template -subcats:Údržba:Commonscat_není_na_Wikidatech -template:"Commonscat" "1" P373
WARNING: Running on Windows and transliteration_target is not set.
Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows
git není názvem vnitřního ani vnějšího příkazu,
spustitelného programu nebo dávkového souboru.
ERROR: Traceback (most recent call last):
File "D:\Py\rewrite\pywikibot\data\api.py", line 284, in submit
body=paramstring)
File "D:\Py\rewrite\pywikibot\comms\http.py", line 123, in request
raise FatalServerError(str(request.data))
FatalServerError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SER
VER_CERTIFICATE:certificate verify failed
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 58, in <module>
execfile(sys.argv[0])
File "D:\Py\rewrite\scripts\harvest_template.py", line 174, in <module>
main()
File "D:\Py\rewrite\scripts\harvest_template.py", line 146, in main
for arg in pywikibot.handleArgs():
File "D:\Py\rewrite\pywikibot\bot.py", line 641, in handleArgs
init_handlers()
File "D:\Py\rewrite\pywikibot\bot.py", line 233, in init_handlers
writelogheader()
File "D:\Py\rewrite\pywikibot\bot.py", line 256, in writelogheader
site.live_version())))
File "D:\Py\rewrite\pywikibot\site.py", line 1228, in live_version
versionstring = self.siteinfo['generator']
File "D:\Py\rewrite\pywikibot\site.py", line 1135, in siteinfo
self._getsiteinfo()
File "D:\Py\rewrite\pywikibot\site.py", line 1092, in _getsiteinfo
sidata = sirequest.submit()
File "D:\Py\rewrite\pywikibot\data\api.py", line 462, in submit
self._data = super(CachedRequest, self).submit()
File "D:\Py\rewrite\pywikibot\data\api.py", line 284, in submit
body=paramstring)
File "D:\Py\rewrite\pywikibot\comms\http.py", line 123, in request
raise FatalServerError(str(request.data))
pywikibot.exceptions.FatalServerError: [Errno 1] _ssl.c:504: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
D:\Py\rewrite>pwb.py version
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 58, in <module>
execfile(sys.argv[0])
File "version", line 1
nightly:pywikipedia-rewrite
^
SyntaxError: invalid syntax
D:\Py\rewrite>
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
See https://gerrit.wikimedia.org/r/#/c/80789/ (which won't work on the live site yet)
---
** [feature-requests:#347] preloadpagegenartor for wikidataitems**
**Status:** pending
**Created:** Mon Sep 02, 2013 10:26 PM UTC by Sk!d
**Last Updated:** Mon Sep 02, 2013 10:26 PM UTC
**Owner:** Legoktm
Preloadpagegenerator with wikidataitems does not work. It seems you have to call pywikibot.page.Itempage.get() for each item after you get it from the generator. This should be obsolete as the item should already get loaded.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
- **status**: open --> pending
- **assigned_to**: Legoktm
---
** [feature-requests:#347] preloadpagegenartor for wikidataitems**
**Status:** pending
**Created:** Mon Sep 02, 2013 10:26 PM UTC by Sk!d
**Last Updated:** Mon Sep 02, 2013 10:26 PM UTC
**Owner:** Legoktm
Preloadpagegenerator with wikidataitems does not work. It seems you have to call pywikibot.page.Itempage.get() for each item after you get it from the generator. This should be obsolete as the item should already get loaded.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
---
** [feature-requests:#347] preloadpagegenartor for wikidataitems**
**Status:** open
**Created:** Mon Sep 02, 2013 10:26 PM UTC by Sk!d
**Last Updated:** Mon Sep 02, 2013 10:26 PM UTC
**Owner:** nobody
Preloadpagegenerator with wikidataitems does not work. It seems you have to call pywikibot.page.Itempage.get() for each item after you get it from the generator. This should be obsolete as the item should already get loaded.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
In the init part
self.setSource(pywikibot.Site().language())
might also need changing.
Currently, if in the config file there is
family = 'wikipedia'
mylang = 'en'
and claimit is called with
-cat:zh:Category:Somevalue
this leads to "en" to be used, instead of "zh".
---
** [feature-requests:#346] claimit.py: lang for source lookup**
**Status:** pending
**Created:** Sat Aug 31, 2013 12:40 PM UTC by APAC
**Last Updated:** Sat Aug 31, 2013 10:39 PM UTC
**Owner:** Legoktm
def setSource(self, lang):
page = pywikibot.Page(self.repo, 'Wikidata:List of wikis/python')
source_values = json.loads(page.get())
source_values = source_values['wikipedia']
for lang in source_values:
source_values[lang] = pywikibot.ItemPage(self.repo,
source_values[lang])
if lang in source_values:
self.source = pywikibot.Claim(self.repo, 'p143')
self.source.setTarget(source_values.get(lang))
The use of lang in "for lang in source_values:" overwrites the lang in "def setSource(self, lang)". This leads to incorrect results. "lang" should be the language of the source wiki. For -cat:"zh:Category:Somevalue" this would be "zh".
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.