cbluth / aima-python

Automatically exported from code.google.com/p/aima-python
0 stars 0 forks source link

IOError: [Errno 2] No such file or directory: '/home/maxim/aima-python-read-only/../data/orings.csv' #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
maxim@maxim-desktop:~$ date
Tue Oct 11 11:55:33 IST 2011
maxim@maxim-desktop:~$ svn checkout 
http://aima-python.googlecode.com/svn/trunk/ aima-python-read-only
A    aima-python-read-only/doctests.py
A    aima-python-read-only/nlp.py
A    aima-python-read-only/games.py
A    aima-python-read-only/rl.py
A    aima-python-read-only/logic.py
A    aima-python-read-only/images
A    aima-python-read-only/images/dirt.svg
A    aima-python-read-only/images/wall-icon.jpg
A    aima-python-read-only/images/vacuum-icon.jpg
A    aima-python-read-only/images/dirt05-icon.jpg
A    aima-python-read-only/images/IMAGE-CREDITS
A    aima-python-read-only/images/makefile
A    aima-python-read-only/images/vacuum.svg
A    aima-python-read-only/learning.py
A    aima-python-read-only/utils.py
A    aima-python-read-only/probability.py
A    aima-python-read-only/mdp.py
A    aima-python-read-only/agents.py
A    aima-python-read-only/text.py
A    aima-python-read-only/csp.py
A    aima-python-read-only/search.py
A    aima-python-read-only/planning.py
Checked out revision 120.
maxim@maxim-desktop:~$ cd aima-python-read-only/
maxim@maxim-desktop:~/aima-python-read-only$ python --version
Python 2.7.1+
maxim@maxim-desktop:~/aima-python-read-only$ python doctests.py *.py
Traceback (most recent call last):
  File "doctests.py", line 18, in <module>
    for arg in args if arg != "-v" for name in glob.glob(arg)]
  File "/home/maxim/aima-python-read-only/learning.py", line 490, in <module>
    attrnames="Rings Distressed Temp Pressure Flightnum")
  File "/home/maxim/aima-python-read-only/learning.py", line 44, in __init__
    self.examples = parse_csv(DataFile(name+'.csv').read())
  File "/home/maxim/aima-python-read-only/utils.py", line 649, in DataFile
    return AIMAFile(['..', 'data', name], mode)
  File "/home/maxim/aima-python-read-only/utils.py", line 645, in AIMAFile
    return open(apply(os.path.join, [dir] + components), mode)
IOError: [Errno 2] No such file or directory: 
'/home/maxim/aima-python-read-only/../data/orings.csv'

Original issue reported on code.google.com by ma...@vekslers.org on 11 Oct 2011 at 9:56

GoogleCodeExporter commented 8 years ago
It looks like you need to install aima-data. See "How to install the code" at 
http://code.google.com/p/aima-python/wiki/ReadMe and please reopen if there's 
still a problem.

Original comment by wit...@gmail.com on 17 Oct 2011 at 7:19

GoogleCodeExporter commented 8 years ago
I see, great I was not aware of aima-data.

Since your are using subversion a nice improvement would be to include 
aima-data in the checkout automatically, via svn:externals 
http://blog.kowalczyk.info/article/Short-tutorial-on-svn-propset-for-svnexternal
s-p.html

Original comment by ma...@vekslers.org on 17 Oct 2011 at 7:34