I'm using Mediawiki v1.15.4 on my wiki, but I can't access the api from a script for some reason. I'm using the python wikitools library, and I can access wikipedia's api just fine, and several other wikis... but not the one for my wiki. I get this error (it's a python error so it might not make much sense):

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    site = wiki.Wiki("http://www.WIKISITE/wiki/api.php")
  File "C:\Python26\lib\site-packages\wikitools\wiki.py", line 79, in __init__
    self.setSiteinfo()
  File "C:\Python26\lib\site-packages\wikitools\wiki.py", line 97, in setSiteinfo
    info = req.query()
  File "C:\Python26\lib\site-packages\wikitools\api.py", line 140, in query
    data = self.__parseJSON(rawdata)
  File "C:\Python26\lib\site-packages\wikitools\api.py", line 254, in __parseJSON
    data.seek(0)
AttributeError: addinfourl instance has no attribute 'seek'


it's like it can't find the api page? When I browse out to my wiki, I can browse to the api page, and like I said, I can access other wikis from that same machine, same script, etc, just not mine.

Any help here? Thanks!

I know the link is malformed, too, I just edited that since I don't want to publicize my wiki's url right now.