SourceForge.net | 4 Oct 2005 11:52
Picon
Favicon

[ pywikipediabot-Bugs-1294669 ] titletranslate: TypeError: an integer is required

Bugs item #1294669, was opened at 2005-09-18 19:46
Message generated for change (Comment added) made by a_engels
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1294669&group_id=93107

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: General
Group: None
Status: Open
>Resolution: Works For Me
Priority: 5
Submitted By: peter gervai (grin)
Assigned to: Nobody/Anonymous (nobody)
Summary: titletranslate: TypeError: an integer is required

Initial Comment:
error immediately at startup:

NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving Allpages special page for wikipedia:hu from
%21, namespace 0
Traceback (most recent call last):
  File "interwiki.py", line 1317, in ?
    bot.run()
  File "interwiki.py", line 1097, in run
    self.queryStep()
  File "interwiki.py", line 1071, in queryStep
    self.oneQuery()
  File "interwiki.py", line 1029, in oneQuery
    site = self.selectQuerySite()
  File "interwiki.py", line 1011, in selectQuerySite
    self.generateMore(globalvar.maxquerysize - mycount)
  File "interwiki.py", line 961, in generateMore
    self.add(page, hints = hints)
  File "interwiki.py", line 920, in add
    subj = Subject(pl, hints = hints)
  File "interwiki.py", line 266, in __init__
    self.translate(hints)
  File "interwiki.py", line 282, in translate
    titletranslate.translate(self.inpl, arr, same =
globalvar.same, hints = hints, auto = globalvar.auto)
  File "/home/mediawiki/pywikipedia/titletranslate.py",
line 87, in translate
    wikipedia.output(u'TitleTranslate: %s was
recognized as %s with value %d' %
(pl.title(),dictName,year))
TypeError: an integer is required

title is '1000', dict is 'YearsAD' and year is '(1000,)'

----------------------------------------------------------------------

>Comment By: Andre Engels (a_engels)
Date: 2005-10-04 11:52

Message:
Logged In: YES 
user_id=843018

Works for me. What exact command are you giving and in which
language are you working? Which version of titletranslate do
you have?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1294669&group_id=93107

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

Gmane