Last modified: 2014-01-21 01:50:19 UTC
I've attempted to reinstall pywikibot (core) on multiple occasions on Tool Labs recently, and I keep getting the following when I attempt to use it: local-hazard-bot@tools-login:~$ python Python 2.7.3 (default, Sep 26 2013, 20:03:06) [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> ImportError: No module named pywikibot >>> The issue also happens for me on Toolserver.
use this way: https://wikitech.wikimedia.org/wiki/User:Legoktm/pywikibot_on_tools_lab https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Pywikibot
if core isn't installed as side-package you have to >>> import pwb first
Thanks, the virtualenv method worked.