Hello, I have two bugs I don't understand. I run the FischBot on Wikidata over Wikimedia Labs, two days ago it crashed. Now I wanted to restart it but I get strange errors by pywikibot. I think something was changed there, but I don't know what. Before the programm run fine.
Started bot on bots-bnr1 at Thu Jun 6 15:14:44 UTC 2013 Exception in thread extractThread1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs) File "/data/project/userdata/FischBot/wikidata/mainclass.py", line 64, in extractThread itemcont = ClaimContainer(page, self) File "/data/project/userdata/FischBot/wikidata/containerclass.py", line 47, in __init__ if not self.checkNoItem(): File "/data/project/userdata/FischBot/wikidata/output.py", line 224, in checkNoItem elif not self.exists(): File "/data/project/pywikipedia/rewrite/pywikibot/page.py", line 2269, in exists self.get() File "/data/project/pywikipedia/rewrite/pywikibot/page.py", line 2450, in get WikibasePage.get(self, force=force, *args) File "/data/project/pywikipedia/rewrite/pywikibot/page.py", line 2282, in get data = self.repo.loadcontent(self.__defined_by(), *args) File "/data/project/pywikipedia/rewrite/pywikibot/site.py", line 229, in __getattr__ % (self.__class__.__name__, attr) ) AttributeError: APISite instance has no attribute 'loadcontent'
This error I get if I want to use the interactive shell. Any ideas? pyfisch@bots-login:~$ PYTHONPATH=/data/project/pywikipedia/rewrite/ python
Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pywikibot Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/project/pywikipedia/rewrite/pywikibot/__init__.py", line 190, in <module> from page import Page, ImagePage, Category, Link, User, ItemPage, PropertyPage, Claim File "/data/project/pywikipedia/rewrite/pywikibot/page.py", line 16, in <module> import pywikibot.site File "/data/project/pywikipedia/rewrite/pywikibot/site.py", line 33, in <module> from pywikibot.data import api File "/data/project/pywikipedia/rewrite/pywikibot/data/api.py", line 13, in <module> from pywikibot.comms import http File "/data/project/pywikipedia/rewrite/pywikibot/comms/http.py", line 34, in <module> import threadedhttp File "/data/project/pywikipedia/rewrite/pywikibot/comms/threadedhttp.py", line 45, in <module> pkg_resources.require("httplib2") File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: httplib2 >>>
Sincerly Pyfisch
Hi Pyfisch,
On 6 June 2013 17:31, pyfisch pyfisch@googlemail.com wrote:
File "/data/project/pywikipedia/rewrite/pywikibot/site.py", line 229, in __getattr__ % (self.__class__.__name__, attr) ) AttributeError: APISite instance has no attribute 'loadcontent'
The only reason I can think of that causes this is an incomplete update, but this does not seem to be the case. Can you reproduce this error, and if so, with which command?
This error I get if I want to use the interactive shell. Any ideas? pyfisch@bots-login:~$ PYTHONPATH=/data/project/pywikipedia/rewrite/ python
import pywikibot
This works for me.
Merlijn