python pywikipedia/interwiki.py -start:"Eisenbunnsstreck" Traceback (most recent call last): File "pywikipedia/interwiki.py", line 311, in <module> import wikipedia, config, pagegenerators, catlib File "/home/mst/pw/pywikipedia/wikipedia.py", line 148, in <module> import config, login, query, version File "/home/mst/pw/pywikipedia/config.py", line 88, in <module> for _filename in os.listdir(os.path.join(_base_dir, 'families')): OSError: [Errno 2] Nie ma takiego pliku ani katalogu: '/home/mst/pw/families' [mst@pl37007 pw]$ python pywikipedia/interwiki.py -start:"Eisenbunnsstreck" -autonomous Traceback (most recent call last): File "pywikipedia/interwiki.py", line 311, in <module> import wikipedia, config, pagegenerators, catlib File "/home/mst/pw/pywikipedia/wikipedia.py", line 148, in <module> import config, login, query, version File "/home/mst/pw/pywikipedia/config.py", line 88, in <module> for _filename in os.listdir(os.path.join(_base_dir, 'families')): OSError: [Errno 2] Nie ma takiego pliku ani katalogu: '/home/mst/pw/families'
[mst@pl37007 pw]$ python pywikipedia/version.py Traceback (most recent call last): File "pywikipedia/version.py", line 74, in <module> print 'Pywikipedia %s' % getversion() File "pywikipedia/version.py", line 20, in getversion return '%(tag)s (r%(rev)s, %(date)s)' % getversiondict() File "pywikipedia/version.py", line 32, in getversiondict import wikipedia File "/home/mst/pw/pywikipedia/wikipedia.py", line 148, in <module> import config, login, query, version File "/home/mst/pw/pywikipedia/config.py", line 88, in <module> for _filename in os.listdir(os.path.join(_base_dir, 'families')): OSError: [Errno 2] Nie ma takiego pliku ani katalogu: '/home/mst/pw/families'
Hello Masti,
Please cd to the pywikipedia directory and try again. The current version of pywikipedia requires you to run from the pywikipedia directory.
cd pywikipedia python interwiki.py -start:"..."
should work!
Best regards, Merlijn van Deen
On Sat, July 25, 2009 9:11 pm, masti wrote:
python pywikipedia/interwiki.py -start:"Eisenbunnsstreck" Traceback (most recent call last): File "pywikipedia/interwiki.py", line 311, in <module> import wikipedia, config, pagegenerators, catlib File "/home/mst/pw/pywikipedia/wikipedia.py", line 148, in <module> import config, login, query, version File "/home/mst/pw/pywikipedia/config.py", line 88, in <module> for _filename in os.listdir(os.path.join(_base_dir, 'families')): OSError: [Errno 2] Nie ma takiego pliku ani katalogu: '/home/mst/pw/families' [mst@pl37007 pw]$ python pywikipedia/interwiki.py -start:"Eisenbunnsstreck" -autonomous Traceback (most recent call last): File "pywikipedia/interwiki.py", line 311, in <module> import wikipedia, config, pagegenerators, catlib File "/home/mst/pw/pywikipedia/wikipedia.py", line 148, in <module> import config, login, query, version File "/home/mst/pw/pywikipedia/config.py", line 88, in <module> for _filename in os.listdir(os.path.join(_base_dir, 'families')): OSError: [Errno 2] Nie ma takiego pliku ani katalogu: '/home/mst/pw/families'
[mst@pl37007 pw]$ python pywikipedia/version.py Traceback (most recent call last): File "pywikipedia/version.py", line 74, in <module> print 'Pywikipedia %s' % getversion() File "pywikipedia/version.py", line 20, in getversion return '%(tag)s (r%(rev)s, %(date)s)' % getversiondict() File "pywikipedia/version.py", line 32, in getversiondict import wikipedia File "/home/mst/pw/pywikipedia/wikipedia.py", line 148, in <module> import config, login, query, version File "/home/mst/pw/pywikipedia/config.py", line 88, in <module> for _filename in os.listdir(os.path.join(_base_dir, 'families')): OSError: [Errno 2] Nie ma takiego pliku ani katalogu: '/home/mst/pw/families'
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org