I found the answer to my problem.: There is a script path variable in the family file that is hard-coded to /w/:
scriptpath(self, code): return '/w'def Changed to return '/wiki'def On Mon, Sep 28, 2009 at 9:31 AM, Robert Wright <[email protected]>wrote: > login.py works. > > [r...@mustang pywikipedia]# python login.py > Password for user Wikibot on mustang:en: > Logging in to mustang:en as Wikibot > Should be logged in now > [r...@mustang pywikipedia]# > > test.py fails > > [r...@mustang pywikipedia]# python test.py > Error downloading data: No JSON object could be decoded > Request > en:/w/api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo > Retrying in 1 minutes... > ^CTraceback (most recent call last): > File "test.py", line 50, in <module> > main() > File "test.py", line 46, in main > show(wikipedia.getSite()) > File "test.py", line 21, in show > if mysite.loggedInAs(): > File "/home/rwright/pywikipedia/wikipedia.py", line 4707, in loggedInAs > self._load(sysop = sysop) > File "/home/rwright/pywikipedia/wikipedia.py", line 5494, in _load > text = self.getUrl(url, sysop = sysop) > File "/home/rwright/pywikipedia/wikipedia.py", line 5112, in getUrl > self._getUserData(text, sysop = sysop) > File "/home/rwright/pywikipedia/wikipedia.py", line 5231, in _getUserData > blocked = self._getBlock(sysop = sysop) > File "/home/rwright/pywikipedia/wikipedia.py", line 4752, in _getBlock > data = query.GetData(params, self)['query']['userinfo'] > File "/home/rwright/pywikipedia/query.py", line 120, in GetData > time.sleep(retry_idle_time*60) > KeyboardInterrupt > [r...@mustang pywikipedia]# > > I have api.php installed. > > [r...@mustang pywikipedia]# ls /var/www/html/w/api.php > /var/www/html/w/api.php > [r...@mustang > > /var/www/html/w/ is a sym link from /var/www/html/wiki/ > > I have found several posts with this error, bit no resolutions that are > applicable. > > ---Robert >
_______________________________________________ Pywikipedia-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
