AjaxVM / pyggel

PYGGEL (PYthon Graphical Game Engine and Libraries)
1 stars 0 forks source link

Robocalypto having trouble finding the data directory #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Run 'python run_game.py' or 'python Robocalypto/run_game.py' depending on
the working directory.

In the first case I will get: NameError: global name 'data' is not defined

In the second case I will get: IOError: [Errno 2] No such file or
directory: 'data/gun.obj'

I'm on Arch Linux 64 bit, Python 2.6.1, Pygame 1.8.1-3

All dependancies resolved (the tests in the project root worked).

Original issue reported on code.google.com by qubodup on 26 Dec 2008 at 4:54

GoogleCodeExporter commented 9 years ago
PS: SVN revision 190

Original comment by qubodup on 26 Dec 2008 at 4:54

GoogleCodeExporter commented 9 years ago
PPS: doing 'cp Robocalypto/data/* data/' will make running from project root 
result
in the data not defined name error.

Original comment by qubodup on 26 Dec 2008 at 4:56

GoogleCodeExporter commented 9 years ago
In the first case this is due to a bug introduced by restructuring code. Fixed 
in r191.

Second case is simply confusion. You have to run the script from the Robocalypto
directory. I have updated the documentation to clarify this in r192.

Thanks for your report and sorry it took so long to resolve this! It just took 
us
this long to notice.. ;)

Original comment by archw...@gmail.com on 14 Jan 2009 at 1:18