- **status**: open --> closed-fixed
---
** [bugs:#1655] unclear message for installing externals on ubuntu**
**Status:** closed-fixed
**Created:** Mon Aug 19, 2013 09:05 PM UTC by Merlijn S. van Deen
**Last Updated:** Tue Aug 20, 2013 06:40 AM UTC
**Owner:** nobody
After git clone'ing pywikibot-compat, this is the message you get when running
python login.py
WARNING: Trying to install by use of "linux-ubuntu" package management system:
WARNING: Required package missing: ['']
WARNING: A required package is missing, but externals can automatically install it. If you say Yes, externals will need administrator privileges, and you might be asked for the administrator password.
WARNING: Give externals permission to try to install package? (y/N)
This question should be answered 'no' for people on shared hosting without sudo privileges
However, then this (very similar) prompt appears:
WARNING: Trying to install by download from source URL:
WARNING: Required package missing: BeautifulSoup.py
WARNING: A required package is missing, but externals can automatically install it. If you say Yes, externals will need administrator privileges, and you might be asked for the administrator password.
WARNING: Give externals permission to try to install package? (y/N)
which doesn't actually require admin privileges, and thus should be answered 'yes'.
I think the wording should be clearer on these questions.
---
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.
Solved in two ways:
- pwb.py uses the built-in httplib2 if no other httplib2 is installed
- the suggested httplib2 to install is our own (https://gerrit.wikimedia.org/r/#/c/83370/)
In the future, we might also override the built-in httplib2 if someone uses pwb.py (https://gerrit.wikimedia.org/r/#/c/82591/)
---
** [bugs:#1656] Making HTTPS requests by default breaks pywikibot on all non-Ubuntu systems and in virtual environemnts**
**Status:** closed-fixed
**Created:** Thu Aug 22, 2013 09:26 AM UTC by Wieland Hoffmann
**Last Updated:** Thu Aug 22, 2013 09:26 AM UTC
**Owner:** nobody
httplib2 includes its own list of trusted certificates at https://code.google.com/p/httplib2/source/browse/python2/httplib2/cacerts.t… - the DigiCert certificate at the top of wikimedias certificate chain is not included in there so you can't make any requests. This works in Ubuntu because they patched the httplib2 package to use the system certificate store.
---
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-fixed
- **Group**: confirmed --> rewrite
---
** [bugs:#1656] Making HTTPS requests by default breaks pywikibot on all non-Ubuntu systems and in virtual environemnts**
**Status:** closed-fixed
**Created:** Thu Aug 22, 2013 09:26 AM UTC by Wieland Hoffmann
**Last Updated:** Thu Aug 22, 2013 09:26 AM UTC
**Owner:** nobody
httplib2 includes its own list of trusted certificates at https://code.google.com/p/httplib2/source/browse/python2/httplib2/cacerts.t… - the DigiCert certificate at the top of wikimedias certificate chain is not included in there so you can't make any requests. This works in Ubuntu because they patched the httplib2 package to use the system certificate store.
---
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.
- **Group**: confirmed --> rewrite
---
** [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:** Wed Sep 04, 2013 01:55 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.
- **Group**: confirmed --> rewrite
---
** [bugs:#1661] Version.py output differs if pywikibot is installed**
**Status:** open
**Created:** Thu Aug 29, 2013 10:06 AM UTC by Wieland Hoffmann
**Last Updated:** Thu Aug 29, 2013 10:06 AM UTC
**Owner:** nobody
(bot-venv)mineo@rika:~/pywikipediabot$ pip uninstall Pywikipediabot
Uninstalling Pywikipediabot:
/home/mineo/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg
Proceed (y/n)? y
Successfully uninstalled Pywikipediabot
(bot-venv)mineo@rika:~/pywikipediabot$ PYTHONPATH=. python scripts/version.py
Pywikibot: [https] git/pywikibot/core (r1995, fa7a248, 2013/08/28, 22:33:44, ok)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36)
[GCC 4.4.3]
unicode test: ok
(bot-venv)mineo@rika:~/pywikipediabot$ python setup.py install
[ snip ]
(bot-venv)mineo@rika:~/pywikipediabot$ PYTHONPATH=. python scripts/version.py
Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36)
[GCC 4.4.3]
unicode test: ok
(bot-venv)mineo@rika:~/pywikipediabot$ cd scripts/
(bot-venv)mineo@rika:~/pywikipediabot/scripts$ python version.py
Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36)
[GCC 4.4.3]
unicode test: ok
(bot-venv)mineo@rika:~/pywikipediabot/scripts$ cd ~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts/
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts$ python version.py
Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36)
[GCC 4.4.3]
unicode test: ok
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts$ cd ..
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg$ PYTHONPATH=. python scripts/version.py
Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36)
[GCC 4.4.3]
unicode test: ok
It seems like you either get a commit identifier (fa7a248) or the hash of a git object (414550d) as the version number.
---
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.
- **Group**: confirmed --> rewrite
---
** [bugs:#1663] Harvest_template.py aborts when the value is empty**
**Status:** open
**Created:** Fri Aug 30, 2013 08:03 AM UTC by GerardM
**Last Updated:** Fri Aug 30, 2013 08:03 AM UTC
**Owner:** nobody
When a template has no value (null) the bot should not abort but preferably write to an error log for later processing.
---
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.
- **Group**: confirmed --> rewrite
---
** [bugs:#1664] Harvest_template.py aborts when the value is a red link**
**Status:** open
**Created:** Fri Aug 30, 2013 08:05 AM UTC by GerardM
**Last Updated:** Fri Aug 30, 2013 08:05 AM UTC
**Owner:** nobody
When the value is a "red link", the bot should continue and preferably write to an error log (for later processing)
---
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.
- **Group**: confirmed --> rewrite
---
** [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.
Looks promising!
---
** [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 11:02 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.
[09:16:44 PM] <ah002> i changed the family name from capital letter in the user config to sm letters
---
** [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.