- **status**: pending-fixed --> closed-fixed
---
** [bugs:#1653] Pagegenerator WikidataItemGenerator does not work with RefferingPageGenerator**
**Status:** closed-fixed
**Created:** Sat Aug 10, 2013 11:36 PM UTC by Sk!d
**Last Updated:** Sat Aug 24, 2013 07:48 AM UTC
**Owner:** Legoktm
There must be a bug in Pagegenrators this code does not work:
referredPage = pywikibot.page.PropertyPage(pywikibot.Site().data_repository(), "Property:P21")
pagegenrator = pywikibot.pagegenerators.WikidataItemGenerator(pywikibot.pagegenerators.ReferringPageGenerator(referredPage, withTemplateInclusion=False, content=False))
if you iterate over pagegenerator you get the stacktrace:
File "X\core\wikidatascripts\itemfix.py", line 34, in <module>
if int(item.title()[1:]) <176:
File "X\core\pywikibot\page.py", line 2264, in title
self._link._text = self.getID()
File "X\core\pywikibot\page.py", line 2357, in getID
self.get(force=force)
File "X\core\pywikibot\page.py", line 2486, in get
super(ItemPage, self).get(force=force, *args)
File "X\core\pywikibot\page.py", line 2317, in get
data = self.repo.loadcontent(self.__defined_by(), *args)
File "X\core\pywikibot\site.py", line 3373, in loadcontent
data = req.submit()
File "X\core\pywikibot\data\api.py", line 393, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: param-missing: Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages
a work around is by iterating over referredPage.getReferences()
---
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 --> pending-fixed
- **assigned_to**: Legoktm
---
** [bugs:#1653] Pagegenerator WikidataItemGenerator does not work with RefferingPageGenerator**
**Status:** pending-fixed
**Created:** Sat Aug 10, 2013 11:36 PM UTC by Sk!d
**Last Updated:** Sat Aug 24, 2013 07:47 AM UTC
**Owner:** Legoktm
There must be a bug in Pagegenrators this code does not work:
referredPage = pywikibot.page.PropertyPage(pywikibot.Site().data_repository(), "Property:P21")
pagegenrator = pywikibot.pagegenerators.WikidataItemGenerator(pywikibot.pagegenerators.ReferringPageGenerator(referredPage, withTemplateInclusion=False, content=False))
if you iterate over pagegenerator you get the stacktrace:
File "X\core\wikidatascripts\itemfix.py", line 34, in <module>
if int(item.title()[1:]) <176:
File "X\core\pywikibot\page.py", line 2264, in title
self._link._text = self.getID()
File "X\core\pywikibot\page.py", line 2357, in getID
self.get(force=force)
File "X\core\pywikibot\page.py", line 2486, in get
super(ItemPage, self).get(force=force, *args)
File "X\core\pywikibot\page.py", line 2317, in get
data = self.repo.loadcontent(self.__defined_by(), *args)
File "X\core\pywikibot\site.py", line 3373, in loadcontent
data = req.submit()
File "X\core\pywikibot\data\api.py", line 393, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: param-missing: Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages
a work around is by iterating over referredPage.getReferences()
---
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.
https://gerrit.wikimedia.org/r/#/c/80706/
---
** [bugs:#1653] Pagegenerator WikidataItemGenerator does not work with RefferingPageGenerator**
**Status:** open
**Created:** Sat Aug 10, 2013 11:36 PM UTC by Sk!d
**Last Updated:** Sat Aug 24, 2013 07:34 AM UTC
**Owner:** nobody
There must be a bug in Pagegenrators this code does not work:
referredPage = pywikibot.page.PropertyPage(pywikibot.Site().data_repository(), "Property:P21")
pagegenrator = pywikibot.pagegenerators.WikidataItemGenerator(pywikibot.pagegenerators.ReferringPageGenerator(referredPage, withTemplateInclusion=False, content=False))
if you iterate over pagegenerator you get the stacktrace:
File "X\core\wikidatascripts\itemfix.py", line 34, in <module>
if int(item.title()[1:]) <176:
File "X\core\pywikibot\page.py", line 2264, in title
self._link._text = self.getID()
File "X\core\pywikibot\page.py", line 2357, in getID
self.get(force=force)
File "X\core\pywikibot\page.py", line 2486, in get
super(ItemPage, self).get(force=force, *args)
File "X\core\pywikibot\page.py", line 2317, in get
data = self.repo.loadcontent(self.__defined_by(), *args)
File "X\core\pywikibot\site.py", line 3373, in loadcontent
data = req.submit()
File "X\core\pywikibot\data\api.py", line 393, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: param-missing: Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages
a work around is by iterating over referredPage.getReferences()
---
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**: trunk --> rewrite
---
** [bugs:#1653] Pagegenerator WikidataItemGenerator does not work with RefferingPageGenerator**
**Status:** open
**Created:** Sat Aug 10, 2013 11:36 PM UTC by Sk!d
**Last Updated:** Mon Aug 12, 2013 01:28 AM UTC
**Owner:** nobody
There must be a bug in Pagegenrators this code does not work:
referredPage = pywikibot.page.PropertyPage(pywikibot.Site().data_repository(), "Property:P21")
pagegenrator = pywikibot.pagegenerators.WikidataItemGenerator(pywikibot.pagegenerators.ReferringPageGenerator(referredPage, withTemplateInclusion=False, content=False))
if you iterate over pagegenerator you get the stacktrace:
File "X\core\wikidatascripts\itemfix.py", line 34, in <module>
if int(item.title()[1:]) <176:
File "X\core\pywikibot\page.py", line 2264, in title
self._link._text = self.getID()
File "X\core\pywikibot\page.py", line 2357, in getID
self.get(force=force)
File "X\core\pywikibot\page.py", line 2486, in get
super(ItemPage, self).get(force=force, *args)
File "X\core\pywikibot\page.py", line 2317, in get
data = self.repo.loadcontent(self.__defined_by(), *args)
File "X\core\pywikibot\site.py", line 3373, in loadcontent
data = req.submit()
File "X\core\pywikibot\data\api.py", line 393, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: param-missing: Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages
a work around is by iterating over referredPage.getReferences()
---
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:#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:#1656] Making HTTPS requests by default breaks pywikibot on all non-Ubuntu systems and in virtual environemnts**
**Status:** open
**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.
I've moved this patch into gerrit at https://gerrit.wikimedia.org/r/#/c/80330/
---
** [patches:#611] Support for create a new item from ItemPage.editEntity()**
**Status:** open
**Labels:** rewrite
**Created:** Wed Apr 24, 2013 05:18 PM UTC by Nullzer0
**Last Updated:** Wed Apr 24, 2013 05:18 PM UTC
**Owner:** nobody
This patch makes ItemPage.editEntity\(\) functional for creating a new item.
\----
Pywikibot branches/rewrite/ \(r11447, 2013/04/24, 16:55:33, ok\)
Python 2.7.3 \(default, Sep 26 2012, 21:53:58\)
\[GCC 4.7.2\]
unicode test: ok
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
- **Group**: --> Unstable (example)
---
** [patches:#611] Support for create a new item from ItemPage.editEntity()**
**Status:** open
**Labels:** rewrite
**Created:** Wed Apr 24, 2013 05:18 PM UTC by Nullzer0
**Last Updated:** Wed Apr 24, 2013 05:18 PM UTC
**Owner:** nobody
This patch makes ItemPage.editEntity\(\) functional for creating a new item.
\----
Pywikibot branches/rewrite/ \(r11447, 2013/04/24, 16:55:33, ok\)
Python 2.7.3 \(default, Sep 26 2012, 21:53:58\)
\[GCC 4.7.2\]
unicode test: ok
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
- **status**: open --> closed-out-of-date
- **assigned_to**: Legoktm
- **Group**: --> Unstable (example)
---
** [patches:#587] Add wikidata set_sitelinks method**
**Status:** closed-out-of-date
**Labels:** rewrite
**Created:** Mon Jan 21, 2013 12:55 AM UTC by Legoktm
**Last Updated:** Mon Jan 21, 2013 12:55 AM UTC
**Owner:** Legoktm
Adds a set\_sitelinks method to DataSite's, and adds it to the throttle list.
The token handling is a hack, however until there is a wikidata Page object I don't see a good fix.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
I implemented this in another way.
---
** [patches:#587] Add wikidata set_sitelinks method**
**Status:** closed-out-of-date
**Labels:** rewrite
**Created:** Mon Jan 21, 2013 12:55 AM UTC by Legoktm
**Last Updated:** Mon Jan 21, 2013 12:55 AM UTC
**Owner:** Legoktm
Adds a set\_sitelinks method to DataSite's, and adds it to the throttle list.
The token handling is a hack, however until there is a wikidata Page object I don't see a good fix.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.