- **status**: open --> closed-invalid
---
** [bugs:#1668] Cannot add custom family**
**Status:** closed-invalid
**Created:** Thu Sep 05, 2013 03:46 AM UTC by Legoktm
**Last Updated:** Thu Sep 05, 2013 03:46 AM UTC
**Owner:** nobody
Reported by ah001 in #pywikipediabot, and confirmed by me.
How to reproduce:
Clone a fresh copy of pywikibot-core, and add a custom family.py file in core/pywikibot/families. I've attached the one I tried with.
Now run "python pwb.py login"
Create your user-config using that wiki, and a random account. Once generate_user_files finishes, you'll get a traceback of:
Traceback (most recent call last):
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 "scripts/login.py", line 101, in <module>
main()
File "scripts/login.py", line 60, in main
for arg in pywikibot.handleArgs(*args):
File "/Users/km/test/core/pywikibot/bot.py", line 641, in handleArgs
init_handlers()
File "/Users/km/test/core/pywikibot/bot.py", line 233, in init_handlers
writelogheader()
File "/Users/km/test/core/pywikibot/bot.py", line 243, in writelogheader
site = pywikibot.getSite()
File "/Users/km/test/core/pywikibot/__init__.py", line 298, in Site
_sites[key] = __Site(code=code, fam=fam, user=user, sysop=sysop)
File "/Users/km/test/core/pywikibot/site.py", line 746, in __init__
BaseSite.__init__(self, code, fam, user, sysop)
File "/Users/km/test/core/pywikibot/site.py", line 123, in __init__
self.__family = Family(fam, fatal=False)
File "/Users/km/test/core/pywikibot/site.py", line 100, in Family
raise Error("Family %s does not exist" % fam)
pywikibot.exceptions.Error: Family brueghelwiki does not exist
---
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:#1669] No generate_family_file script**
**Status:** open
**Created:** Thu Sep 05, 2013 03:48 AM UTC by Legoktm
**Last Updated:** Thu Sep 05, 2013 03:48 AM UTC
**Owner:** nobody
core does not have a generate_family_files.py script that compat has.
This is necessary for anyone who wants to run on a 3rd party wiki.
---
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:#1668] Cannot add custom family**
**Status:** open
**Created:** Thu Sep 05, 2013 03:46 AM UTC by Legoktm
**Last Updated:** Thu Sep 05, 2013 03:46 AM UTC
**Owner:** nobody
Reported by ah001 in #pywikipediabot, and confirmed by me.
How to reproduce:
Clone a fresh copy of pywikibot-core, and add a custom family.py file in core/pywikibot/families. I've attached the one I tried with.
Now run "python pwb.py login"
Create your user-config using that wiki, and a random account. Once generate_user_files finishes, you'll get a traceback of:
Traceback (most recent call last):
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 "scripts/login.py", line 101, in <module>
main()
File "scripts/login.py", line 60, in main
for arg in pywikibot.handleArgs(*args):
File "/Users/km/test/core/pywikibot/bot.py", line 641, in handleArgs
init_handlers()
File "/Users/km/test/core/pywikibot/bot.py", line 233, in init_handlers
writelogheader()
File "/Users/km/test/core/pywikibot/bot.py", line 243, in writelogheader
site = pywikibot.getSite()
File "/Users/km/test/core/pywikibot/__init__.py", line 298, in Site
_sites[key] = __Site(code=code, fam=fam, user=user, sysop=sysop)
File "/Users/km/test/core/pywikibot/site.py", line 746, in __init__
BaseSite.__init__(self, code, fam, user, sysop)
File "/Users/km/test/core/pywikibot/site.py", line 123, in __init__
self.__family = Family(fam, fatal=False)
File "/Users/km/test/core/pywikibot/site.py", line 100, in Family
raise Error("Family %s does not exist" % fam)
pywikibot.exceptions.Error: Family brueghelwiki does not exist
---
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.
Works without any issues in windows - could be either related to linux (v. windows) or killing the connection locally or upstream (the original was run from a VM). Reducing priority.
---
** [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:** Tue Sep 03, 2013 06:39 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.
- **Priority**: 5 --> 2
---
** [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:** Tue Sep 03, 2013 06:39 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.
- **status**: open --> closed
---
** [bugs:#1665] harvest template does not work (certificate faled)**
**Status:** closed
**Created:** Tue Sep 03, 2013 11:21 AM UTC by JAn
**Last Updated:** Wed Sep 04, 2013 09:56 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.
---
** [bugs:#1667] harvest_template ignores lowercase templates**
**Status:** open
**Created:** Wed Sep 04, 2013 10:59 AM UTC by JAn
**Last Updated:** Wed Sep 04, 2013 10:59 AM UTC
**Owner:** nobody
pwb.py harvest_template -cat:Údržba:Commonscat_není_na_Wikidatech -template:"commonscat" "1" P373
works only on {{Commonscat|Foo}}, when in article is {{commonscat|Foo}}, bot skips it.
---
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.
installing the bundled httplib2 works, thanks
---
** [bugs:#1665] harvest template does not work (certificate faled)**
**Status:** open
**Created:** Tue Sep 03, 2013 11:21 AM UTC by JAn
**Last Updated:** Wed Sep 04, 2013 08:36 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.
Did you install httplib2 manually? In that case you either have to
- install correct certificates manually ( http://stackoverflow.com/questions/13321302/python-foursquare-ssl3-certific… )
- uninstall httplib2
or
- install the bundled httplib2 ( cd externals\httplib2 && python setup.py install )
---
** [bugs:#1665] harvest template does not work (certificate faled)**
**Status:** open
**Created:** Tue Sep 03, 2013 11:21 AM UTC by JAn
**Last Updated:** Wed Sep 04, 2013 08:11 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.
Still does not work.
---
** [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 07:37 PM 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.