[Pywikipedia-l] [ pywikipediabot-Bugs-1804103 ] query.py not working

SourceForge.net noreply at sourceforge.net
Tue May 27 14:39:59 UTC 2008


Bugs item #1804103, was opened at 2007-09-28 06:27
Message generated for change (Comment added) made by russblau
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1804103&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: None
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: John Vandenberg (zeroj)
Assigned to: Nobody/Anonymous (nobody)
Summary: query.py not working

Initial Comment:
query.py appears to be out of sync with wikipeda.getUrl().   getUrl expects 'data' to be name=value pairs, however query.py is urlencoding the 'titles' data before calling it.

Also, the verbose output of "titlecount" is off by one

To see the problem, create a small test case using a sample invocation mentioned in query.py:

-- test.py --
import query

print query.GetInterwikies('ru',u'user:yurik')

-- error on execution---
Checked for running processes. 1 processes currently running, including the current process.
Traceback (most recent call last):
  File "test.py", line 3, in ?
    print query.GetInterwikies('ru',u'user:yurik')
  File "/path/to/query.py", line 56, in GetInterwikies
    return GetData( lang, params )
  File "/path/to/query.py", line 40, in GetData
    jsontext = site.getUrl( path, retry=True, data=data )
  File "/path/to/wikipedia.py", line 3471, in getUrl
    data = self.urlEncode(data)
  File "/path/to/wikipedia.py", line 3279, in urlEncode
    for key, value in query.iteritems():
AttributeError: 'str' object has no attribute 'iteritems'


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

>Comment By: Russell Blau (russblau)
Date: 2008-05-27 10:39

Message:
Logged In: YES 
user_id=855050
Originator: NO

This has long since been rewritten.

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

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



More information about the Pywikipedia-l mailing list