Den 07-09-2013 18:51, Amir Ladsgroup
skrev:
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