[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] RPG Quest System




On Jul 3, 2007, at 10:55 AM, Michael Sullivan wrote:
[..]

I downloaded the files from the above address, but something seems a
little kooky to me.  When I ran setup.py, I got this:

michael@camille trunk $ ./setup.py
./setup.py: line 1: from: command not found
./setup.py: line 2: try:: command not found
./setup.py: line 4: except:: command not found
./setup.py: line 5: pass: command not found
./setup.py: line 13: data: command not found
./setup.py: line 14: *.txt,: command not found
./setup.py: line 15: data/*,: No such file or directory
./setup.py: line 16: ]: command not found
./setup.py: line 18: syntax error near unexpected token `('
./setup.py: line 18: `for d in glob.glob('data/*'):'

Why would it trip over the 'from' keyword? I opened setup.py up in vim
and from is syntactically coloured, so it should be a valid keyword.
I'm running Gentoo Linux.  I'm going to try remerging python....


I think you tried to execute setup.py directly (your shell will assume it is a shell script).

try:

python setup.py install

instead. Note you may need to become root first--use su or sudo

-Casey