---
** [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.
---
** [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.
- **status**: open --> closed-works-for-me
---
** [bugs:#1662] pagegenerator: "Received incomplete XML data"**
**Status:** closed-works-for-me
**Created:** Thu Aug 29, 2013 10:42 PM UTC by euku
**Last Updated:** Fri Aug 30, 2013 12:34 AM UTC
**Owner:** nobody
It seems something (I didn't investigate further) changed in the MediaWiki API last night.
You must use a pagegenerator to reproduce:
--> python replace.py -ref:"A" "bla" "foo"
No handlers could be found for logger "pywiki"
Getting 1 page from wikipedia:de...
WARNING: Token not found on wikipedia:de. You will not be able to edit any page.
Received incomplete XML data. Sleeping for 15 seconds...
...
(Page "A" must exist) Nothing happens then.
This warning is printed by wikipedia.py # _getUserDataOld(). It seems to search for WP UI elements (HTML mode) in the exported XML data (Special:Export). But the request answer (variable 'text') does not contain anything useful ...
-> svn update
...
At revision 11781.
-> python version.py
Pywikipedia [http] trunk/pywikipedia (r11775, 2013/07/20, 11:39:29, OUTDATED)
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
---
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.
Please update your Pywikipedia installation to use the git version.
See https://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit for instructions.
If you need to fix it immediately, you can add this patch to your family.py: https://github.com/wikimedia/pywikibot-compat/commit/6addd6f70a386fd131acbe…
---
** [bugs:#1662] pagegenerator: "Received incomplete XML data"**
**Status:** open
**Created:** Thu Aug 29, 2013 10:42 PM UTC by euku
**Last Updated:** Thu Aug 29, 2013 10:42 PM UTC
**Owner:** nobody
It seems something (I didn't investigate further) changed in the MediaWiki API last night.
You must use a pagegenerator to reproduce:
--> python replace.py -ref:"A" "bla" "foo"
No handlers could be found for logger "pywiki"
Getting 1 page from wikipedia:de...
WARNING: Token not found on wikipedia:de. You will not be able to edit any page.
Received incomplete XML data. Sleeping for 15 seconds...
...
(Page "A" must exist) Nothing happens then.
This warning is printed by wikipedia.py # _getUserDataOld(). It seems to search for WP UI elements (HTML mode) in the exported XML data (Special:Export). But the request answer (variable 'text') does not contain anything useful ...
-> svn update
...
At revision 11781.
-> python version.py
Pywikipedia [http] trunk/pywikipedia (r11775, 2013/07/20, 11:39:29, OUTDATED)
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
---
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:#1662] pagegenerator: "Received incomplete XML data"**
**Status:** open
**Created:** Thu Aug 29, 2013 10:42 PM UTC by euku
**Last Updated:** Thu Aug 29, 2013 10:42 PM UTC
**Owner:** nobody
It seems something (I didn't investigate further) changed in the MediaWiki API last night.
You must use a pagegenerator to reproduce:
--> python replace.py -ref:"A" "bla" "foo"
No handlers could be found for logger "pywiki"
Getting 1 page from wikipedia:de...
WARNING: Token not found on wikipedia:de. You will not be able to edit any page.
Received incomplete XML data. Sleeping for 15 seconds...
...
(Page "A" must exist) Nothing happens then.
This warning is printed by wikipedia.py # _getUserDataOld(). It seems to search for WP UI elements (HTML mode) in the exported XML data (Special:Export). But the request answer (variable 'text') does not contain anything useful ...
-> svn update
...
At revision 11781.
-> python version.py
Pywikipedia [http] trunk/pywikipedia (r11775, 2013/07/20, 11:39:29, OUTDATED)
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
---
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:#1660] Can't set claim target due to an AttributeError**
**Status:** pending-fixed
**Created:** Thu Aug 29, 2013 09:44 AM UTC by Wieland Hoffmann
**Last Updated:** Thu Aug 29, 2013 11:07 AM UTC
**Owner:** Legoktm
Executing the following code
:::python
import pywikibot as wp
s = wp.Site('wikidata', 'wikidata')
d = s.data_repository()
m = wp.ItemPage(d, 'Q14005')
c = wp.Claim(s, "P248")
c.setTarget(m)
results in a short traceback ending in "AttributeError: APISite instance has no attribute 'getPropertyType'". According to git bisect, the first commit showing this behaviour is 8f1c2631215b340acf962ae1a0fa7ffcefe84df5 (or svn revision 11600).
Output from python version.py:
Pywikibot: [ssh] pywikibot/core (r1995, fa7a248, 2013/08/28, 22:33:44, ok)
Release version: 2.0b1
Python: 2.7.5 (default, May 12 2013, 12:00:47)
[GCC 4.8.0 20130502 (prerelease)]
unicode test: ok
---
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/81677/
---
** [bugs:#1660] Can't set claim target due to an AttributeError**
**Status:** pending-fixed
**Created:** Thu Aug 29, 2013 09:44 AM UTC by Wieland Hoffmann
**Last Updated:** Thu Aug 29, 2013 11:07 AM UTC
**Owner:** Legoktm
Executing the following code
:::python
import pywikibot as wp
s = wp.Site('wikidata', 'wikidata')
d = s.data_repository()
m = wp.ItemPage(d, 'Q14005')
c = wp.Claim(s, "P248")
c.setTarget(m)
results in a short traceback ending in "AttributeError: APISite instance has no attribute 'getPropertyType'". According to git bisect, the first commit showing this behaviour is 8f1c2631215b340acf962ae1a0fa7ffcefe84df5 (or svn revision 11600).
Output from python version.py:
Pywikibot: [ssh] pywikibot/core (r1995, fa7a248, 2013/08/28, 22:33:44, ok)
Release version: 2.0b1
Python: 2.7.5 (default, May 12 2013, 12:00:47)
[GCC 4.8.0 20130502 (prerelease)]
unicode test: ok
---
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.
But if I supply a wrong value/value of the wrong type to Claim.__init__ it should certainly be Claim.__init__ that fails and not some random other method.
---
** [bugs:#1660] Can't set claim target due to an AttributeError**
**Status:** open
**Created:** Thu Aug 29, 2013 09:44 AM UTC by Wieland Hoffmann
**Last Updated:** Thu Aug 29, 2013 10:44 AM UTC
**Owner:** nobody
Executing the following code
:::python
import pywikibot as wp
s = wp.Site('wikidata', 'wikidata')
d = s.data_repository()
m = wp.ItemPage(d, 'Q14005')
c = wp.Claim(s, "P248")
c.setTarget(m)
results in a short traceback ending in "AttributeError: APISite instance has no attribute 'getPropertyType'". According to git bisect, the first commit showing this behaviour is 8f1c2631215b340acf962ae1a0fa7ffcefe84df5 (or svn revision 11600).
Output from python version.py:
Pywikibot: [ssh] pywikibot/core (r1995, fa7a248, 2013/08/28, 22:33:44, ok)
Release version: 2.0b1
Python: 2.7.5 (default, May 12 2013, 12:00:47)
[GCC 4.8.0 20130502 (prerelease)]
unicode test: ok
---
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.
The first argument of wp.Claim is the repository, d in your example, and not the Site s. Changing this works for me.
---
** [bugs:#1660] Can't set claim target due to an AttributeError**
**Status:** open
**Created:** Thu Aug 29, 2013 09:44 AM UTC by Wieland Hoffmann
**Last Updated:** Thu Aug 29, 2013 09:53 AM UTC
**Owner:** nobody
Executing the following code
:::python
import pywikibot as wp
s = wp.Site('wikidata', 'wikidata')
d = s.data_repository()
m = wp.ItemPage(d, 'Q14005')
c = wp.Claim(s, "P248")
c.setTarget(m)
results in a short traceback ending in "AttributeError: APISite instance has no attribute 'getPropertyType'". According to git bisect, the first commit showing this behaviour is 8f1c2631215b340acf962ae1a0fa7ffcefe84df5 (or svn revision 11600).
Output from python version.py:
Pywikibot: [ssh] pywikibot/core (r1995, fa7a248, 2013/08/28, 22:33:44, ok)
Release version: 2.0b1
Python: 2.7.5 (default, May 12 2013, 12:00:47)
[GCC 4.8.0 20130502 (prerelease)]
unicode test: ok
---
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:#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.