What steps will reproduce the problem?
1. unzip aima-data file
2. unzip aima-python file
3. run python doctests.py -v *.py
What is the expected output? What do you see instead?
* python scripts expect data in '../data' directory; aima-data is unzipped
in '../aima-data' directory;
* some files are in different subdirectory than is expected by python scripts:
- wordlist and some other files in subdirectory EN-text; python scripts
are looking for them directly in '../data';
- MAN subdirectory is written as 'man' in text.py (line 219)
mandir = '../data/man/'
- in text.txt the FlatLand novel is named flat11.txt (old data version);
new name is flatland.txt
* aima-data zip file contains .svn subdirectory; this should be removed
since it causes error in text.py, line 171; changing line 220 as below
solves the problem (add 'if not f.startswith('.')'):
man_files = [mandir + f for f in os.listdir(mandir) if not f.startswith('.')]
What version of the product are you using? On what operating system?
aima-data.2008.08.24.zip
Debian/GNU Linux squeeze/sid
Please provide any additional information below.
Original issue reported on code.google.com by mo.mene...@gmail.com on 26 Aug 2009 at 2:57
Original issue reported on code.google.com by
mo.mene...@gmail.com
on 26 Aug 2009 at 2:57