Den 07-09-2013 18:51, Amir Ladsgroup skrev:
On Fri, Sep 6, 2013 at 1:46 PM, Steen Thomassen <steen.thomassen@gmail.com mailto:steen.thomassen@gmail.com> wrote:
Den 05-09-2013 17:03, legoktm skrev: Is https://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit useful to you? No. Not for me. I have not found a way be able to use for example add_text.py from compat.
What about https://www.mediawiki.org/wiki/Manual:Pywikipediabot/Installation ?
It is better. core is ok, but i have still problems with compat:
mkdir pywikipedia cd pywikipedia git clone --recursive https://gerrit.wikimedia.org/r/pywikibot/compat.git git clone --recursive https://gerrit.wikimedia.org/r/pywikibot/core.git
mkdir .pywikibot copy user-config.py and user-fixes.py
** my .profile ***
PYTHONPATH=$PYTHONPATH:~/pywikipedia/core/ export PYTHONPATH
PYWIKIBOT_DIR=~/.pywikibot export PYWIKIBOT_DIR
Traceback (most recent call last): File "../../compat/add_text.py", line 79, in <module> import wikipedia as pywikibot File "/home/username/pywikipedia/compat/wikipedia.py", line 156, in <module> from pywikibot.support import * File "/home/username/pywikipedia/compat/pywikibot/support.py", line 15, in <module> from exceptions import * File "/home/username/pywikipedia/compat/pywikibot/exceptions.py", line 14, in <module> import config File "/home/username/pywikipedia/compat/config.py", line 578, in <module> for _filename in os.listdir(os.path.join(_base_dir, 'families')): OSError: [Errno 2] No such file or directory: '/home/username/.pywikibot/families'
/Steen