Support Requests item #2924822, was opened at 2010-01-02 08:51 Message generated for change (Settings changed) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2924822...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Pending
Priority: 8 Private: No Submitted By: w00sf (w00sf)
Assigned to: xqt (xqt)
Summary: cannot generate user-config.py
Initial Comment: I encounter an error when executing generate_user_files.py and select to generate user-config.py. I use version r7848 of Pywikipedia Bot on Windows XP.
C:\Python26\python.exe D:\pywiki\generate_
user_files.py 1: Create user_config.py file 2: Create user_fixes.py file 3: The two files What do you do? 1 Traceback (most recent call last): File "D:\pywiki\generate_user_files.py", line 132, in <module> create_user_config() File "D:\pywiki\generate_user_files.py", line 47, in create_user_config know_families = re.findall(r'(.+)_family.py\b', '\n'.join(os.listdir(os.path .join(base_dir, "families")))) WindowsError: [Error 3] : 'families/*.*'
version.py output:
C:\Python26\python.exe D:\pywiki\version.p
y No user-config.py found in directory 'D:\pywiki' Creating...
No user-config.py found in directory 'D:\pywiki' Creating...
No user-config.py found in directory 'D:\pywiki' Creating...
Traceback (most recent call last): File "D:\pywiki\version.py", line 74, in <module> print 'Pywikipedia %s' % getversion() File "D:\pywiki\version.py", line 20, in getversion return '%(tag)s (r%(rev)s, %(date)s)' % getversiondict() File "D:\pywiki\version.py", line 32, in getversiondict import wikipedia File "D:\pywiki\wikipedia.py", line 148, in <module> import config, login, query, version File "D:\pywiki\config.py", line 86, in <module> _base_dir = _wt.get_base_dir() File "D:\pywiki\wikipediatools.py", line 51, in get_base_dir create_user_config_file() File "D:\pywiki\wikipediatools.py", line 6, in create_user_config_file generate_user_files.create_user_config() File "D:\pywiki\generate_user_files.py", line 47, in create_user_config know_families = re.findall(r'(.+)_family.py\b', '\n'.join(os.listdir(os.path .join(base_dir, "families")))) WindowsError: [Error 3] : 'families/*.*'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-03 12:16
Message: First change your directory path to D:\pywiki\
cd D:\pywiki\
Then try again:
python.exe generate_ user_files.p
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2924822...