- **Priority**: 4 --> 2
---
** [bugs:#1674] KeyError: "message 'Disambiguationspage' does not exist.**
**Status:** open
**Created:** Wed Sep 18, 2013 08:57 AM UTC by André Malafaya Baptista
**Last Updated:** Sat Sep 21, 2013 03:09 PM UTC
**Owner:** nobody
>> interwiki.py -family:wiktionary -lang:pt Category:Russo
'git' is not recognized as an internal or external command,
operable program or batch file.
Getting 1 page from wiktionary:pt...
Dump pt (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2678, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2652, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2370, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2343, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2339, in oneQuery
subject.batchLoaded(self)
File "D:\Work\pywikipedia\interwiki.py", line 1391, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "D:\Work\pywikipedia\interwiki.py", line 1142, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "D:\Work\pywikipedia\wikipedia.py", line 1561, in isDisambig
'Disambiguationspage').split(':', 1)[1]
File "D:\Work\pywikipedia\wikipedia.py", line 6991, in mediawiki_message
raise KeyError("message '%s' does not exist." % key)
KeyError: "message 'Disambiguationspage' does not exist."
>> interwiki.py -family:wiktionary -lang:lt Category:Kalbos
'git' is not recognized as an internal or external command,
operable program or batch file.
Getting 1 page from wiktionary:lt...
Dump lt (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2678, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2652, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2370, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2343, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2339, in oneQuery
subject.batchLoaded(self)
File "D:\Work\pywikipedia\interwiki.py", line 1391, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "D:\Work\pywikipedia\interwiki.py", line 1142, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "D:\Work\pywikipedia\wikipedia.py", line 1561, in isDisambig
'Disambiguationspage').split(':', 1)[1]
File "D:\Work\pywikipedia\wikipedia.py", line 6991, in mediawiki_message
raise KeyError("message '%s' does not exist." % key)
KeyError: "message 'Disambiguationspage' does not exist."
version.py output (updated from git on 17/Sep/2013)
===
Pywikipedia wikipedia.py (r-1 (unknown), a9f799b, 2013/09/18, 09:53:00, OUTDATED)
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
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.
I've the same problem with interwiki.py running in wikinews projets.
python interwiki.py -page -putthrottle:"1" -lang:"fr" -force
What page do you want to use? catégorie:15 septembre 2013
NOTE: Number of pages queued is 0, trying to add 60 more.
Getting 1 page from wikinews:fr...
[same error messages]]
---
** [bugs:#1674] KeyError: "message 'Disambiguationspage' does not exist.**
**Status:** open
**Created:** Wed Sep 18, 2013 08:57 AM UTC by André Malafaya Baptista
**Last Updated:** Wed Sep 18, 2013 08:57 AM UTC
**Owner:** nobody
>> interwiki.py -family:wiktionary -lang:pt Category:Russo
'git' is not recognized as an internal or external command,
operable program or batch file.
Getting 1 page from wiktionary:pt...
Dump pt (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2678, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2652, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2370, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2343, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2339, in oneQuery
subject.batchLoaded(self)
File "D:\Work\pywikipedia\interwiki.py", line 1391, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "D:\Work\pywikipedia\interwiki.py", line 1142, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "D:\Work\pywikipedia\wikipedia.py", line 1561, in isDisambig
'Disambiguationspage').split(':', 1)[1]
File "D:\Work\pywikipedia\wikipedia.py", line 6991, in mediawiki_message
raise KeyError("message '%s' does not exist." % key)
KeyError: "message 'Disambiguationspage' does not exist."
>> interwiki.py -family:wiktionary -lang:lt Category:Kalbos
'git' is not recognized as an internal or external command,
operable program or batch file.
Getting 1 page from wiktionary:lt...
Dump lt (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2678, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2652, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2370, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2343, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2339, in oneQuery
subject.batchLoaded(self)
File "D:\Work\pywikipedia\interwiki.py", line 1391, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "D:\Work\pywikipedia\interwiki.py", line 1142, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "D:\Work\pywikipedia\wikipedia.py", line 1561, in isDisambig
'Disambiguationspage').split(':', 1)[1]
File "D:\Work\pywikipedia\wikipedia.py", line 6991, in mediawiki_message
raise KeyError("message '%s' does not exist." % key)
KeyError: "message 'Disambiguationspage' does not exist."
version.py output (updated from git on 17/Sep/2013)
===
Pywikipedia wikipedia.py (r-1 (unknown), a9f799b, 2013/09/18, 09:53:00, OUTDATED)
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
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.
https://gerrit.wikimedia.org/r/#/c/84229/ merged
---
** [bugs:#1671] weblinkchecker: url incorrect parsed when using a multiline template**
**Status:** open
**Labels:** weblinkchecker
**Created:** Wed Sep 11, 2013 12:50 PM UTC by Harmen
**Last Updated:** Wed Sep 11, 2013 12:50 PM UTC
**Owner:** nobody
Today I discovered a problem parsing urls within multiline templates on https://nl.wikipedia.org/w/index.php?title=Rie_Timmer
In this article there are a few urls used within templates, but the urls used in multiline templates are parsed incorrect (including the }} at the end): e.g. http://www.vsgermelo.nl/vsg_bulletin/82/20010982.htm}}
Template:
{{cite journal
| author=R. Boterenbrood, S. Westra, L. Korterink
| journal=VSG-bulletin
| title=Rie Timmer, dameskampioen van Nederland in 1971
| volume=35
| issue=82
| date=september 2001
| url=http://www.vsgermelo.nl/vsg_bulletin/82/20010982.htm}}
However, another url within a template, but not multiline works fine:
* {{Link chessgames.com|url=http://www.chessgames.com/player/rie_timmer.html}}
Version information:
$ python version.py
Pywikipedia [https] r/pywikibot/compat (r10277, ea68647, 2013/09/11, 14:28:43, ok)
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|wikibugs-l(a)lists.wikimedia. |legoktm.wikipedia(a)gmail.com
|org |
--- Comment #23 from Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> ---
Ok, script is all ready, tried importing a bug (bug 54415!) which basically
worked until I ran into bug 54416. Once that is taken care of, it should be
reasonably simple to import the rest. I already have the OAuth keys for sf.net
set up, so I'll take care of running the script.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |54416
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
--- Comment #22 from Andre Klapper <aklapper(a)wikimedia.org> ---
(In reply to comment #20)
> I know, but I can't change it for emails send to
> Pywikipedia-bugs(a)lists.wikimedia.org
Oops, I misunderstood. It should be fixed now.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
--- Comment #21 from Merlijn van Deen <valhallasw(a)arctus.nl> ---
legoktm is working on the export - see
https://github.com/wikimedia/pywikibot-sf-export for the repository.
The number of bugs is relatively small (100, maybe a few 100) as we are not
transferring closed bugs. We could therefore choose to fix the metadata
afterwards manually, instead of trying to get it right in the bot.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
--- Comment #20 from Maarten Dammers <maarten(a)mdammers.nl> ---
Hi Andre,
(In reply to comment #19)
> > Andre, can you please set the emailformat to text only?
>
> That's a user setting, see section "Preferred email format" on
> https://bugzilla.wikimedia.org/userprefs.cgi?tab=settings
I know, but I can't change it for emails send to
Pywikipedia-bugs(a)lists.wikimedia.org . I believe you're the owner of that
account.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
Andre Klapper <aklapper(a)wikimedia.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
Assignee|aklapper(a)wikimedia.org |wikibugs-l(a)lists.wikimedia.
| |org
--- Comment #19 from Andre Klapper <aklapper(a)wikimedia.org> ---
(In reply to comment #18)
> Any news on the import?
I myself cannot offer any news as I don't know the Sourceforge API and as I
only know a little bit the Bugzilla API. I've pointed to
http://www.bugzilla.org/docs/4.2/en/html/api/Bugzilla/WebService for anybody
who would like to try writing a script, or
https://github.com/awjrichards/bingle for an example of interacting with
Bugzilla's API.
If this is overkill (I honestly don't know about how many tickets we talk, e.g.
also closed ones?) I'm also happy to help transfering tickets manually.
> Andre, can you please set the emailformat to text only?
That's a user setting, see section "Preferred email format" on
https://bugzilla.wikimedia.org/userprefs.cgi?tab=settings
--
You are receiving this mail because:
You are on the CC list for the bug.
---
** [bugs:#1674] KeyError: "message 'Disambiguationspage' does not exist.**
**Status:** open
**Created:** Wed Sep 18, 2013 08:57 AM UTC by André Malafaya Baptista
**Last Updated:** Wed Sep 18, 2013 08:57 AM UTC
**Owner:** nobody
>> interwiki.py -family:wiktionary -lang:pt Category:Russo
'git' is not recognized as an internal or external command,
operable program or batch file.
Getting 1 page from wiktionary:pt...
Dump pt (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2678, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2652, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2370, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2343, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2339, in oneQuery
subject.batchLoaded(self)
File "D:\Work\pywikipedia\interwiki.py", line 1391, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "D:\Work\pywikipedia\interwiki.py", line 1142, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "D:\Work\pywikipedia\wikipedia.py", line 1561, in isDisambig
'Disambiguationspage').split(':', 1)[1]
File "D:\Work\pywikipedia\wikipedia.py", line 6991, in mediawiki_message
raise KeyError("message '%s' does not exist." % key)
KeyError: "message 'Disambiguationspage' does not exist."
>> interwiki.py -family:wiktionary -lang:lt Category:Kalbos
'git' is not recognized as an internal or external command,
operable program or batch file.
Getting 1 page from wiktionary:lt...
Dump lt (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2678, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2652, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2370, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2343, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2339, in oneQuery
subject.batchLoaded(self)
File "D:\Work\pywikipedia\interwiki.py", line 1391, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "D:\Work\pywikipedia\interwiki.py", line 1142, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "D:\Work\pywikipedia\wikipedia.py", line 1561, in isDisambig
'Disambiguationspage').split(':', 1)[1]
File "D:\Work\pywikipedia\wikipedia.py", line 6991, in mediawiki_message
raise KeyError("message '%s' does not exist." % key)
KeyError: "message 'Disambiguationspage' does not exist."
version.py output (updated from git on 17/Sep/2013)
===
Pywikipedia wikipedia.py (r-1 (unknown), a9f799b, 2013/09/18, 09:53:00, OUTDATED)
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
--- Comment #18 from Maarten Dammers <maarten(a)mdammers.nl> ---
Any news on the import?
Andre, can you please set the emailformat to text only?
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54235
Legoktm <legoktm.wikipedia(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |legoktm.wikipedia(a)gmail.com
--- Comment #1 from Legoktm <legoktm.wikipedia(a)gmail.com> ---
Unfortunately that won't work in some cases like commonsMedia or url. If you
look at
https://www.wikidata.org/w/api.php?action=wbgetentities&ids=q76&format=json…:
"property": "P18",
"datavalue": {
"value": "President Barack Obama.jpg",
"type": "string"
}
We could probably implement a fallback for the ones that will work like entity,
coordinate and time, and emit a warning like "P288 does not exist"
This error is probably rare to run into since the datatype is cached forever,
but most scripts need to re-cache everything because the ids went uppercase.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54240
Web browser: ---
Bug ID: 54240
Summary: Pywikipedia-bugs does not accept Bugzilla e-mails
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Classification: Unclassified
Mobile Platform: ---
Sending an e-mail to debug...
--
You are receiving this mail because:
You are the assignee for the bug.
in config.datafilepath(*filename), os.path.join(base_dir, *filename) fails if:
-. at least one of the argument of os.path.join() is unicode and
-. at least one of the argument of os.path.join() has non-ASCII char
---
** [bugs:#1648] Non-unicode path results in UnicodeDecodeError**
**Status:** open
**Created:** Sun Jul 28, 2013 07:36 PM UTC by Merlijn S. van Deen
**Last Updated:** Tue Sep 17, 2013 07:55 PM UTC
**Owner:** nobody
From an IRC support request:
Traceback (most recent call last):
File "login.py", line 436, in <module>
main()
File "login.py", line 432, in main
loginMan.login()
File "login.py", line 319, in login
cookiedata = self.getCookie(api)
File "login.py", line 243, in getCookie
self.site.updateCookies(L, self.sysop)
File "wikipedia.py", line 6371, in updateCookies
self._setupCookies(self._cookies[index], sysop)
File "wikipedia.py", line 6342, in _setupCookies
f = open(config.datafilepath('login-data', filename), 'w')
File "config.py", line 555, in datafilepath
return makepath(os.path.join(base_dir, *filename))
File "/usr/lib/python2.7/posixpath.py", line 80, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)
The pywikipedia folder was in '/.../Télechargements', which is has an accented letter. Moving to a non-accented directory solved the issue.
User is running rewrite; version.py did not yield useful results because it doesn't support git or git nightlies yet...
---
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.
same as https://sourceforge.net/p/pywikipediabot/bugs/1648/
---
** [bugs:#1370] Using non-ascii file path causes UnicodeDecodeError**
**Status:** open
**Created:** Wed Oct 26, 2011 08:35 PM UTC by Merlijn S. van Deen
**Last Updated:** Wed Oct 26, 2011 08:35 PM UTC
**Owner:** nobody
\[user@denix eskarcha\]$ python2 login.py
unicode test: triggers problem \#3081100
Password for user Eskarcha on chakra:en:
Logging in to chakra:en as Eskarcha via API.
Traceback \(most recent call last\):
File "login.py", line 436, in <module>
main\(\)
File "login.py", line 432, in main
loginMan.login\(\)
File "login.py", line 319, in login
cookiedata = self.getCookie\(api\)
File "login.py", line 243, in getCookie
self.site.updateCookies\(L, self.sysop\)
File "/home/user/proxectos/chakra/documentación/eskarcha/wikipedia.py", line 5193, in updateCookies
self.\_setupCookies\(self.\_cookies\[index\], sysop\)
File "/home/user/proxectos/chakra/documentación/eskarcha/wikipedia.py", line 5164, in \_setupCookies
f = open\(config.datafilepath\('login-data', filename\), 'w'\)
File "/home/user/proxectos/chakra/documentación/eskarcha/config.py", line 505, in datafilepath
return makepath\(os.path.join\(base\_dir, \*filename\)\)
File "/usr/lib/python2.7/posixpath.py", line 71, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 39: ordinal not in range\(128\)
\[user@denix eskarcha\]$ python2 version.py
Pywikipedia \[http\] trunk/pywikipedia \(r9675, 2011/10/26, 08:57:14\)
Python 2.7.1 \(r271:86832, Jul 24 2011, 00:49:56\)
\[GCC 4.5.3\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: triggers problem \#3081100
Moving the pywikipediabot directory to an ascii path works as workaround.
---
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.
slightly improved version, merged with the new "source" function
:::python
for claim in self.claims:
if claim.getID() in item.get().get('claims'):
for existingclaimwithproperty in item.claims[claim]:
if existingclaimwithproperty.getTarget() == claim.getTarget():
pywikibot.output("item for %s has already property %s with value %s" % (page.title(), claim, existingclaimwithproperty.getTarget()))
break
else:
continue
else:
pywikibot.output('Adding additional %s --> %s' % (claim.getID(), claim.getTarget()))
item.addClaim(claim)
source = self.getSource(page.site.language())
if self.source:
claim.addSource(self.source, bot=True)
# TODO FIXME: We need to check that we aren't adding a
# duplicate source
else:
pywikibot.output('Adding %s --> %s'
% (claim.getID(), claim.getTarget()))
item.addClaim(claim)
source = self.getSource(page.site.language())
if self.source:
claim.addSource(self.source, bot=True)
# TODO FIXME: We need to check that we aren't adding a
# duplicate source
---
** [feature-requests:#349] claimit.py: enable claim with the same property, but different value**
**Status:** open
**Labels:** claimit.py wikidata enhancement python pywikibot
**Created:** Sun Sep 15, 2013 04:15 PM UTC by APAC
**Last Updated:** Sun Sep 15, 2013 04:15 PM UTC
**Owner:** nobody
The below can be added to claimit.py to enable adding statements on items with the same property, but different values.
https://github.com/wikimedia/pywikibot-core/blob/master/scripts/claimit.py
:::python
for claim in self.claims:
if claim.getID() in item.get().get('claims'):
propertytoadd = claim.getID()
for valueofproperty in item.claims[propertytoadd]:
if valueofproperty.getTarget() == claim.getTarget():
pywikibot.output("item for %s has already property %s with value %s" % (page.title(), propertytoadd, valueofproperty.getTarget()))
break
else:
continue
else:
pywikibot.output('Adding additional %s --> %s' % (claim.getID(), claim.getTarget()))
item.addClaim(claim)
else:
pywikibot.output('Adding %s --> %s'
% (claim.getID(), claim.getTarget()))
item.addClaim(claim)
---
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.
Bug fixed, see https://gerrit.wikimedia.org/r/#/c/81219/
fix merged:
commit 4e516b587258f08f9947d4a11b2e67fcc1b5d3ea
Date: Tue Aug 27 15:11:43 2013 +0200
Can be closed.
---
** [bugs:#1645] Multi-claim source not parsed correctly**
**Status:** open
**Created:** Tue Jul 23, 2013 04:06 PM UTC by Felix Reimann
**Last Updated:** Tue Jul 23, 2013 04:10 PM UTC
**Owner:** nobody
>From a source with multiple claims, only the first claim is collected by page.py. All other claims of the source are not accessible per claim.sources.
Example:
~~~~~~
:::python
site = pywikibot.getSite('en', 'wikipedia')
repo = site.data_repository()
item = pywikibot.ItemPage(repo, "Q138028")
dictionary = data.get()
print subclaims[0].sources
~~~~~~
results in:
**[Claim(Property:P143), Claim(Property:P248)]**
P577 and P585 from the second source of http://www.wikidata.org/wiki/Q138028 P225 are missing.
With the attached patch the same code results in
**[[Claim(Property:P143)], [Claim(Property:P248), Claim(Property:P577), Claim(Property:P585)]]**
However, backward compatibility is not given, as the data type of Claim.sources is changed from list of Claims to list of list of Claims. This corresponds to the Wikidata layout allowing more than one claim per source.
GIT revision: 96e7c88e2ff03f88b320cc65b729776b80ea5624
---
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**: --> Next Release (example)
- **Priority**: 5 --> 3
---
** [feature-requests:#214] Reject all**
**Status:** open
**Labels:** interwiki
**Created:** Wed Jul 22, 2009 10:02 AM UTC by JAn
**Last Updated:** Wed Jul 22, 2009 10:02 AM UTC
**Owner:** nobody
When bot asks:
What shoul be done? \(\[A\]ccept, \[r\]eject, \[g\]ive up, accept al\[l\]\)
there might be one or two more possibilities:
\* reje\[c\]t all
\* \[m\]erge
In small wikis \(and in big too\) is sometimes situation when two or more articles are about the same thing, eg na:Fiji and na:Bidji
in these cases would be the best solution merging \(bot include \{\{merge|second article\}\} template
second \(easier\) possible is removing links from one of them
---
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.
we have a new logging behaviour
---
** [feature-requests:#175] WARNING messages in a separate log file**
**Status:** closed-fixed
**Labels:** interwiki
**Created:** Fri Jan 30, 2009 05:01 PM UTC by Anonymous
**Last Updated:** Fri Jan 30, 2009 05:01 PM UTC
**Owner:** nobody
May we have interwiki WARNING messages placed in a separate file, e.g. 'warnings.log' into 'log' subfolder? and maybe adapt -log/-nolog options accordingly. And maybe have different logging levels: no log, only warnings \(warnings.log\), only notes \(notes.log\), full log \(interwiki.log\)?
This will help identify obsolete namespaces in family files, for example.
---
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.
- **status**: open --> closed-fixed
- **Group**: --> Next Release (example)
---
** [feature-requests:#175] WARNING messages in a separate log file**
**Status:** closed-fixed
**Labels:** interwiki
**Created:** Fri Jan 30, 2009 05:01 PM UTC by Anonymous
**Last Updated:** Fri Jan 30, 2009 05:01 PM UTC
**Owner:** nobody
May we have interwiki WARNING messages placed in a separate file, e.g. 'warnings.log' into 'log' subfolder? and maybe adapt -log/-nolog options accordingly. And maybe have different logging levels: no log, only warnings \(warnings.log\), only notes \(notes.log\), full log \(interwiki.log\)?
This will help identify obsolete namespaces in family files, for example.
---
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.
already done long time ago
---
** [feature-requests:#156] truncate log files**
**Status:** closed-fixed
**Labels:** interwiki
**Created:** Wed Aug 13, 2008 01:40 PM UTC by Anonymous
**Last Updated:** Wed Aug 13, 2008 01:40 PM UTC
**Owner:** xqt
it would be helpful if a bot \(namely, interwiki.py\) can be configured to truncate the log file to a certain size. is it possible to implement this feature? thanks.
---
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.
- **status**: open --> closed-fixed
- **assigned_to**: xqt
- **Group**: --> Next Release (example)
---
** [feature-requests:#156] truncate log files**
**Status:** closed-fixed
**Labels:** interwiki
**Created:** Wed Aug 13, 2008 01:40 PM UTC by Anonymous
**Last Updated:** Wed Aug 13, 2008 01:40 PM UTC
**Owner:** xqt
it would be helpful if a bot \(namely, interwiki.py\) can be configured to truncate the log file to a certain size. is it possible to implement this feature? thanks.
---
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.
- **status**: open --> closed-rejected
- **Group**: --> Unstable (example)
---
** [patches:#454] cosmetic_changes.py to remove bad wikilinks**
**Status:** closed-rejected
**Created:** Thu Jun 17, 2010 09:38 AM UTC by BalaSundaraRaman L
**Last Updated:** Thu Jun 17, 2010 09:38 AM UTC
**Owner:** nobody
Translated articles created using http://translate.google.com/toolkit?hl=en suffer from one complex issue. It creates links to impossible pages in the target wiki. Let's take the example below:
\( Excerpt from http://en.wikipedia.org/wiki/Corporate\_governance \)
A related but separate thread of discussions focuses on the impact of a corporate governance system in \[\[economic efficiency\]\], with a strong emphasis on shareholders' welfare.
This when translated to Tamil, for example, will have a single word for "in economic efficiency" and the tool wrongly links to that phrase. Since article title can't be of the form "in economic efficiency", it'll remain a red link forever. Since articles are littered with such red links, it's hard to read.
In view of the large-scale http://wikimania2010.wikimedia.org/wiki/Submissions/Google\_translation project and the problems we faced \( http://wikimania2010.wikimedia.org/wiki/Submissions/A\_Review\_of\_Google\_… \), I've developed a patch for cosmetic\_changes.py which'll remove red links of the form \[\[some phrase\]\] leaving out cases where the label is different from the target. I've attached the patch as well. The changes by my bot running the modified code is at http://ta.wikipedia.org/wiki/Special:Contributions/SundarBot
If approved, I can give it to a dedicated bot operator with the translation team.
---
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**: --> v1.0 (example)
---
** [support-requests:#37] When it will start work archivebot.py and weblinkchecker.py?**
**Status:** open
**Created:** Fri Jan 25, 2013 12:13 PM UTC by Анима
**Last Updated:** Fri Jan 25, 2013 12:13 PM UTC
**Owner:** nobody
1\) archivebot.py
I put in the parameters
|algo = old\(1d\)
Several days have passed, but still appears
Processing 10 threads
There are only 0 Threads. Skipped
When it will be back up?
2\) weblinkchecker.py
I set the parameter-day:1 several days have Passed, but the bot is doing nothing.
And the errors are gone. I think that the problem is not only in my family file, because the same error occurs when I run the bot in Russian Wikipedia.
http://pastebin.com/x1zQipmU
Thanks.
---
Sent from sourceforge.net because pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/support-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/support-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
- **status**: pending-fixed --> closed-fixed
---
** [bugs:#1647] Unicode error with existing page title**
**Status:** closed-fixed
**Created:** Sun Jul 28, 2013 07:54 AM UTC by Adrián Chaves Fernández
**Last Updated:** Thu Aug 15, 2013 03:17 PM UTC
**Owner:** nobody
I have written the following script:
# -*- coding: utf-8 -*-
import pywikibot
site = pywikibot.Site("gl", "wiktionary")
page = pywikibot.Page(site, u"𐌰𐌽𐌳𐌰𐌿𐍂𐌰")
print page.get()
It fails with the following output:
[gallaecio@afonso fontes]$ python2 test.py
Traceback (most recent call last):
File "test.py", line 7, in <module>
print page.get()
File "/usr/lib/python2.7/site-packages/pywikibot/__init__.py", line 249, in wrapper
return method(*__args, **__kw)
File "/usr/lib/python2.7/site-packages/pywikibot/__init__.py", line 249, in wrapper
return method(*__args, **__kw)
File "/usr/lib/python2.7/site-packages/pywikibot/page.py", line 278, in get
self._getInternals(sysop)
File "/usr/lib/python2.7/site-packages/pywikibot/page.py", line 302, in _getInternals
self.site.loadrevisions(self, getText=True, sysop=sysop)
File "/usr/lib/python2.7/site-packages/pywikibot/page.py", line 96, in site
return self._link.site
File "/usr/lib/python2.7/site-packages/pywikibot/page.py", line 3080, in site
self.parse()
File "/usr/lib/python2.7/site-packages/pywikibot/page.py", line 3037, in parse
u"contains illegal char(s) '%s'" % m.group(0))
pywikibot.exceptions.InvalidTitle: contains illegal char(s) '𐌰'
I’m using the **rewrite** branch, built today (2013-07-28).
---
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.