Menu

#72 Key Error in interwiki.py

closed-fixed
nobody
None
6
2004-10-17
2004-10-16
No

It seems that every call of
self.counts[wikipedia.getSite()] in interwiki.py is
giving a key error now.

Discussion

  • Andre Engels

    Andre Engels - 2004-10-16
    • summary: Key Error in --> Key Error in interwiki.py
     
  • Rob W.W. Hooft

    Rob W.W. Hooft - 2004-10-16

    Logged In: YES
    user_id=47476

    Not for me, I am running it right now. Can you send a stack
    trace?

     
  • Andre Engels

    Andre Engels - 2004-10-16
    • priority: 9 --> 6
     
  • Andre Engels

    Andre Engels - 2004-10-16

    Logged In: YES
    user_id=843018

    Hmmm... I was not getting it with normal usage, but I am
    getting it on the -restore option. So I guess it has to do
    with the syntax of the dumpfile.

    I'm not sure what you mean by 'stack trace', but if you mean
    the error messages:
    (command: interwiki.py -restore)

    File "C:\PROGRAMS\python\robot\interwiki.py", line 1003, in ?
    sa.run()
    File "C:\PROGRAMS\python\robot\interwiki.py", line 787, in run
    self.queryStep()
    File "C:\PROGRAMS\python\robot\interwiki.py", line 761, in
    queryStep
    self.oneQuery()
    File "C:\PROGRAMS\python\robot\interwiki.py", line 730, in
    oneQuery
    site = self.selectQuerySite()
    File "C:\PROGRAMS\python\robot\interwiki.py", line 721, in
    selectQuerySite
    if self.counts[wikipedia.getSite()] > 4:
    KeyError: wikipedia:nl

     
  • Rob W.W. Hooft

    Rob W.W. Hooft - 2004-10-17
    • status: open --> open-works-for-me
     
  • Rob W.W. Hooft

    Rob W.W. Hooft - 2004-10-17

    Logged In: YES
    user_id=47476

    Could you check whether you are running the latest version
    of family.py?

    ----------------------------
    revision 1.9
    date: 2004/10/16 17:47:09; author: hooft; state: Exp;
    lines: +6 -1
    fixes in comparing families
    ----------------------------

    This fix I made 20 minutes after your bug report, because I
    discovered the problem myself. Running the bugged version
    has much more severe consequences than this: in other cases
    it might modify all interwiki links to style
    [[wikipedia:en:Disaster]] and add an interwiki link to self.

     
  • Andre Engels

    Andre Engels - 2004-10-17

    Logged In: YES
    user_id=843018

    Ok, making sure I had the latest version of everything fixed it.

     
  • Andre Engels

    Andre Engels - 2004-10-17
    • status: open-works-for-me --> closed-fixed
     

Log in to post a comment.