Was fixed in r11592.
---
** [bugs:#1618] item.addClaim() in rewrite edits logged out**
**Status:** closed-fixed
**Labels:** rewrite
**Created:** Tue Apr 16, 2013 07:00 PM UTC by Multichill
**Last Updated:** Thu May 09, 2013 06:00 PM UTC
**Owner:** Merlijn S. van Deen
Looks like I wasn't logged in. The bot didn't care and just started editing as an ip. Bot should check if it's logged in.
---
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
- **assigned_to**: Russell Blau --> Legoktm
- **Group**: --> confirmed
---
** [bugs:#1622] error when encounter API Warning (Wikidata)**
**Status:** closed-fixed
**Labels:** rewrite
**Created:** Sun Apr 21, 2013 12:21 PM UTC by Nullzer0
**Last Updated:** Wed Jul 10, 2013 05:36 PM UTC
**Owner:** Legoktm
File "/home/sorawee/rewrite/pywikibot/page.py", line 2340, in editEntity
baserevid=baserevid, \*\*kwargs\)
File "/home/sorawee/rewrite/pywikibot/site.py", line 3365, in editEntity
data = req.submit\(\)
File "/home/sorawee/rewrite/pywikibot/data/api.py", line 357, in submit
% \(mod, result\["warnings"\]\[mod\]\["\*"\]\)\)
KeyError: '\*'
So I changed api.py to "% \(mod, result\["warnings"\]\[mod\]\)\)", what I get is
WARNING: API warning \(messages\): \{u'0': \{u'type': u'warning', u'name': u'edit-no-change'\}, u'html': \{u'\*': u'<p>Your edit was ignored because no change was made to the text.\n</p>'\}\}
\----
Pywikibot branches/rewrite/ \(r11404, 2013/04/21, 09:25:43, OUTDATED\)
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/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.
That page is 943k bytes right now. The API will return a timeout error, which pywikibot will take as to mean the edit has failed, and will continue to retry.
IIRC there's a setting somewhere to give up after a certain amount of timeouts. It might be safe to just set that to 0.
---
** [bugs:#1644] page.put thinks it failed but didn't, resulting in multiple edits**
**Status:** closed-invalid
**Labels:** edit
**Created:** Thu Jul 18, 2013 01:23 AM UTC by Hazard-SJ
**Last Updated:** Thu Jul 18, 2013 01:23 AM UTC
**Owner:** nobody
Using a script I wrote for newsletter delivery, on [[User talk:Batmanrules677]] on the English Wikipedia, a page.put ended up giving a fail message, throttle, then an automatic retry. I don't have the exact output at the moment, but I was using r11703 (2013/06/30, 12:20:15) in Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] unicode test: ok.
Use the edits in https://en.wikipedia.org/w/index.php?title=User_talk%3ABatmanrules677&diff=… for reference (note that I KeyboardInterrupted the script for it to not make the mistake again).
---
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-invalid
---
** [bugs:#1644] page.put thinks it failed but didn't, resulting in multiple edits**
**Status:** closed-invalid
**Labels:** edit
**Created:** Thu Jul 18, 2013 01:23 AM UTC by Hazard-SJ
**Last Updated:** Thu Jul 18, 2013 01:23 AM UTC
**Owner:** nobody
Using a script I wrote for newsletter delivery, on [[User talk:Batmanrules677]] on the English Wikipedia, a page.put ended up giving a fail message, throttle, then an automatic retry. I don't have the exact output at the moment, but I was using r11703 (2013/06/30, 12:20:15) in Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] unicode test: ok.
Use the edits in https://en.wikipedia.org/w/index.php?title=User_talk%3ABatmanrules677&diff=… for reference (note that I KeyboardInterrupted the script for it to not make the mistake again).
---
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.
It gets the language from pywikibot.Site().language(). Can you confirm that that function returns "cs"?
---
** [bugs:#1638] Incorrect source in harvest_template.py**
**Status:** open
**Created:** Mon Jun 24, 2013 09:07 PM UTC by JAn
**Last Updated:** Mon Jun 24, 2013 09:07 PM UTC
**Owner:** nobody
I run in rewrite
harvest_template.py -ref:template:infobox_okres -template:"Infobox okres" ISO P300 NUTS P605
my lang is set to cs, but bot add as source lang=se
http://www.wikidata.org/w/index.php?title=Q852518&diff=52278378&oldid=52278…
---
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:#1644] page.put thinks it failed but didn't, resulting in multiple edits**
**Status:** open
**Labels:** edit
**Created:** Thu Jul 18, 2013 01:23 AM UTC by Hazard-SJ
**Last Updated:** Thu Jul 18, 2013 01:23 AM UTC
**Owner:** nobody
Using a script I wrote for newsletter delivery, on [[User talk:Batmanrules677]] on the English Wikipedia, a page.put ended up giving a fail message, throttle, then an automatic retry. I don't have the exact output at the moment, but I was using r11703 (2013/06/30, 12:20:15) in Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] unicode test: ok.
Use the edits in https://en.wikipedia.org/w/index.php?title=User_talk%3ABatmanrules677&diff=… for reference (note that I KeyboardInterrupted the script for it to not make the mistake again).
---
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.
---
** [feature-requests:#340] explicitly create new instance of claim in wikidata repo**
**Status:** open
**Created:** Mon Jul 15, 2013 02:51 PM UTC by Tomasz Magulski
**Last Updated:** Mon Jul 15, 2013 02:51 PM UTC
**Owner:** nobody
Is there any reason, why there is no possibility another claim for the same property instead of changing already existing?
---
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.
---
** [bugs:#1643] Parsing error for Link instances**
**Status:** open
**Created:** Sun Jul 14, 2013 02:07 PM UTC by xqt
**Last Updated:** Sun Jul 14, 2013 02:07 PM UTC
**Owner:** nobody
I get a parsing error for Link.parse() e.g. for the following statements:
>>> import pwb; import pywikibot as wp
>>> l = wp.Link(u'w:de:Foo')
>>> l
Traceback (most recent call last):
File "<pyshell#135>", line 1, in <module>
l
File "pywikibot\page.py", line 2931, in __repr__
return "pywikibot.page.Link(%r, %r)" % (self.title, self.site)
File "pywikibot\page.py", line 3101, in title
self.parse()
File "pywikibot\page.py", line 3007, in parse
% self._text)
Error: Improperly formatted interwiki link 'w:de:Foo'
using wikipedia: instead of w: the Link is wrong:
>>> l = wp.Link(u'wikipedia:de:Foo')
>>> l
pywikibot.page.Link(u'De:Foo', Site("de", "wikipedia"))
>>>
It works right for wikt: and wiktionary:
>>> l = wp.Link(u'wikt:de:Foo')
>>> l
pywikibot.page.Link(u'Foo', Site("de", "wiktionary"))
>>>
>>> l = wp.Link(u'wikt:de:Foo')
>>> l
pywikibot.page.Link(u'Foo', Site("de", "wiktionary"))
>>>
>>> l = wp.Link(u'wiktionary:de:Foo')
>>> l
pywikibot.page.Link(u'Foo', Site("de", "wiktionary"))
>>>
---
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.
done r11747
---
** [bugs:#1642] wikipedia.py has bug on .exist **
**Status:** closed-fixed
**Created:** Fri Jul 12, 2013 08:55 PM UTC by reza
**Last Updated:** Fri Jul 12, 2013 08:55 PM UTC
**Owner:** Amir
since 8 July wikipedia.py has bug in .exist() for example if we run this code
import wikipedia
Orgine_Site=wikipedia.getSite('en',fam='wikipedia')
my_page = wikipedia.Page(Orgine_Site, 'Iran')
my_data = wikipedia.DataPage(my_page)
if my_data.exists():
wikipedia.output('ok')
it shows this bug
reza@willow:~/pyreza$ python test.py
Traceback (most recent call last):
File "test.py", line 5, in <module>
if my_data.exists():
File "/home/reza/pyreza/wikipedia.py", line 1335, in exists
self.get()
File "/home/reza/pyreza/wikipedia.py", line 4693, in get
self._getentity(*args, **kwargs)
File "/home/reza/pyreza/wikipedia.py", line 4629, in _getentity
self._title = self._contents['entity'].title()
AttributeError: 'list' object has no attribute 'title'
---
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
- **assigned_to**: Amir
- **Group**: confirmed --> trunk
---
** [bugs:#1642] wikipedia.py has bug on .exist **
**Status:** closed-fixed
**Created:** Fri Jul 12, 2013 08:55 PM UTC by reza
**Last Updated:** Fri Jul 12, 2013 08:55 PM UTC
**Owner:** Amir
since 8 July wikipedia.py has bug in .exist() for example if we run this code
import wikipedia
Orgine_Site=wikipedia.getSite('en',fam='wikipedia')
my_page = wikipedia.Page(Orgine_Site, 'Iran')
my_data = wikipedia.DataPage(my_page)
if my_data.exists():
wikipedia.output('ok')
it shows this bug
reza@willow:~/pyreza$ python test.py
Traceback (most recent call last):
File "test.py", line 5, in <module>
if my_data.exists():
File "/home/reza/pyreza/wikipedia.py", line 1335, in exists
self.get()
File "/home/reza/pyreza/wikipedia.py", line 4693, in get
self._getentity(*args, **kwargs)
File "/home/reza/pyreza/wikipedia.py", line 4629, in _getentity
self._title = self._contents['entity'].title()
AttributeError: 'list' object has no attribute 'title'
---
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.