Bugs item #3005766, was opened at 2010-05-22 22:48
Message generated for change (Comment added) made by rubin16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=300576…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Linar Khalitov (rubin16)
Assigned to: Nobody/Anonymous (nobody)
Summary: stops working in categories
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r8200, 2010/05/22, 16:14:13)
Python 2.5.4 (r254:67916, Aug 23 2009, 21:30:57)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)]
config-settings:
use_api = True
use_api_login = True
dens@vz153 ~/pywikipedia $ python interwiki.py -continue -autonomous -nolog
<skipped>
[[Kategoriya:Administrativnoe delenie Dominiki]]: [[ru:Kategoriya:Administrativnoe delenie
Dominiki]] gives new interwiki [[zh:Category:??????]]
[[Kategoriya:Administrativnoe delenie Dominiki]]: [[ru:Kategoriya:Administrativnoe delenie
Dominiki]] gives new interwiki [[en:Category:Parishes of Dominica]]
Dump ru (wikipedia) written.
Traceback (most recent call last):
File "interwiki.py", line 2421, in <module>
main()
File "interwiki.py", line 2395, in main
bot.run()
File "interwiki.py", line 2155, in run
self.queryStep()
File "interwiki.py", line 2128, in queryStep
self.oneQuery()
File "interwiki.py", line 2124, in oneQuery
subject.batchLoaded(self)
File "interwiki.py", line 1421, in batchLoaded
if not self.skipPage(page, linkedPage, counter):
File "interwiki.py", line 1080, in skipPage
self.namespaceMismatch(page, target, counter) or \
File "interwiki.py", line 1091, in namespaceMismatch
if linkedPage in self.foundIn:
File "/home/dens/pywikipedia/wikipedia.py", line 2245, in __hash__
return hash(str(self))
File "/home/dens/pywikipedia/wikipedia.py", line 507, in __str__
return self.aslink().encode(config.console_encoding, 'replace')
File "/home/dens/pywikipedia/wikipedia.py", line 537, in aslink
self.title(savetitle=True, decode=True))
File "/home/dens/pywikipedia/wikipedia.py", line 447, in title
title = title[:begin + 1] + anchor
TypeError: coercing to Unicode: need string or buffer, NoneType found
What's wrong ? Any ideas how to correct this ?
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date:
2010-05-24 00:50
Message:
ok, thanks
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-05-23 23:00
Message:
I guess this came from a invalid section link:
http://ru.wikipedia.org/w/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0…
(I removed it)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=300576…