first problem has been solved with https://gerrit.wikimedia.org/r/82086
---
** [bugs:#1654] Non-fatal error starting interwiki.py in Windows**
**Status:** open
**Created:** Mon Aug 19, 2013 11:05 AM UTC by André Malafaya Baptista
**Last Updated:** Mon Aug 19, 2013 11:05 AM UTC
**Owner:** nobody
It seems that some changes were made to version.py because of git. Under Windows at least, now git.exe seems to be required to be in the PATH.
But, even with git.exe in the PATH, I always get the following error on startup:
'%an' is not recognized as an internal or external command,
operable program or batch file.
It seems to be related to line 122 of version.py, which doesn't seem to work under Windows:
info = subprocess.Popen("git log --pretty=format:'%ad|%an|%h|%H|%d' --abbrev-commit --date=iso -1 | cat -",
shell=True,
stdout=subprocess.PIPE).stdout.read()
Another problem is that everytime I launch a script, a git.exe process runs and gets stuck. After some few instances, the interwiki.py scripts block and I have to start killing git's.
And, BTW, I don't always have access to the git repository when running scripts (due to some block rules here)
D:\Work\pywikipedia>version.py
'%an' is not recognized as an internal or external command,
operable program or batch file.
Pywikipedia wikipedia.py (r-1 (unknown), 976a310, 2013/08/19, 11:40:07, 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.
---
** [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.
https://gerrit.wikimedia.org/r/#/c/84204/
---
** [bugs:#1482] archivebot.py doesn't support unicode month names**
**Status:** open
**Created:** Sat Jun 30, 2012 05:50 PM UTC by Anonymous
**Last Updated:** Mon Sep 09, 2013 09:19 PM UTC
**Owner:** nobody
archivebot.py doesn't work well with languages such as Turkish which has some months with unicode characters. Namely:
2 Şubat
4 Mayıs
8 Ağustos
9 Eylül
11 Kasım
12 Aralık
---
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.
working for me, still a bug?
---
** [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.
- **Group**: --> confirmed
---
** [bugs:#509] showDiff() highlighting limitation due to difflib design**
**Status:** open
**Labels:** General
**Created:** Fri Sep 28, 2007 07:35 AM UTC by Francesco Cosoleto
**Last Updated:** Sat Apr 11, 2009 09:18 AM UTC
**Owner:** Francesco Cosoleto
showDiff\(\) can fail to highlight a char-by-char difference because Python difflib seems don't support fully char-by-char comparison.
Please see in Python tracker:
\* issue \#1528074: "difflib.SequenceMatcher.find\_longest\_match\(\) wrong result" \(http://bugs.python.org/issue1528074\)
\* issue \#1678345: "A fix for the bug \#1528074 \[warning: quite slow\]" \(http://bugs.python.org/issue1678345\)
---
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 to the latest git version and this bug will be fixed.
---
** [bugs:#1673] No handlers could be found for logger "pywiki"**
**Status:** closed-works-for-me
**Created:** Wed Sep 11, 2013 06:37 PM UTC by Mercy
**Last Updated:** Wed Sep 11, 2013 06:37 PM UTC
**Owner:** nobody
Since last week, I have been getting the following output:
No handlers could be found for logger "pywiki"
Getting 60 pages from commons:commons...
WARNING: Token not found on commons:commons. You will not be able to edit any page.
Received incomplete XML data. Sleeping for 15 seconds...
Received incomplete XML data. Sleeping for 30 seconds...
This happens with every command that I enter to the command line. I have already checked whether the bot was logged in and it was. Therefore, I guess the problem is caused by something else.
My python version.py output is the following:
Pywikipedia trunk/pywikipedia/ (r11781, 2013/07/20, 11:39:29, ok)
Python 2.7.2. (default, Jun 24 2011, 12:21:10) [MSC v.1500 32 bit (Intel)]
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 --> closed-works-for-me
---
** [bugs:#1673] No handlers could be found for logger "pywiki"**
**Status:** closed-works-for-me
**Created:** Wed Sep 11, 2013 06:37 PM UTC by Mercy
**Last Updated:** Wed Sep 11, 2013 06:37 PM UTC
**Owner:** nobody
Since last week, I have been getting the following output:
No handlers could be found for logger "pywiki"
Getting 60 pages from commons:commons...
WARNING: Token not found on commons:commons. You will not be able to edit any page.
Received incomplete XML data. Sleeping for 15 seconds...
Received incomplete XML data. Sleeping for 30 seconds...
This happens with every command that I enter to the command line. I have already checked whether the bot was logged in and it was. Therefore, I guess the problem is caused by something else.
My python version.py output is the following:
Pywikipedia trunk/pywikipedia/ (r11781, 2013/07/20, 11:39:29, ok)
Python 2.7.2. (default, Jun 24 2011, 12:21:10) [MSC v.1500 32 bit (Intel)]
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:#1673] No handlers could be found for logger "pywiki"**
**Status:** open
**Created:** Wed Sep 11, 2013 06:37 PM UTC by Mercy
**Last Updated:** Wed Sep 11, 2013 06:37 PM UTC
**Owner:** nobody
Since last week, I have been getting the following output:
No handlers could be found for logger "pywiki"
Getting 60 pages from commons:commons...
WARNING: Token not found on commons:commons. You will not be able to edit any page.
Received incomplete XML data. Sleeping for 15 seconds...
Received incomplete XML data. Sleeping for 30 seconds...
This happens with every command that I enter to the command line. I have already checked whether the bot was logged in and it was. Therefore, I guess the problem is caused by something else.
My python version.py output is the following:
Pywikipedia trunk/pywikipedia/ (r11781, 2013/07/20, 11:39:29, ok)
Python 2.7.2. (default, Jun 24 2011, 12:21:10) [MSC v.1500 32 bit (Intel)]
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.