need help with game

Robin Munn rmunn at pobox.com
Wed Apr 2 14:38:18 EST 2003


BBFoto <bbfoto2002 at netscape.net> wrote:
> I apologize for top posting.  I clicked on "Followup Usenet Message".
> My mistake was unintentional.  I will try to find out more about it as
> was suggested.  And as to why I tried to execute a .pyc file:  If I
> knew what I was doing, then I would do it right.  I do appreciate all
> attempts to help.
> 
> I did a search on the PySol directory.  Nowhere is there a file called
> "PySol.py".  There is a series of files in sequence named
> "PySol_15.pyc"  "PySol_16.pyc"  "PySol_20..pyc"  "PySol_21.pyc" and
> "PySol_22.pyc".
> 
> 
> I tried to execute this line,
>  
> execfile('c:/program files/pysol/pysol-4.80/data/PySol_22.pyc') 
> 
> The path is correct.  After it failed I copied this error message from
> the Dos screen:
> 
>   File "c:/program files/pysol/pysol-4.80/data/PySol_22.pyc", line 1
>     -_
>      ^
> SyntaxError: invalid syntax

OK, try this:

C:\Python22\Python.exe "c:/program files/pysol/pysol-4.80/data/PySol_22.pyc"

(Substitute your path to Python as appropriate for the Python.exe).

If you get an error message about "global name 'win32_gethomedir' is not
defined", that's because you somehow got the Linux version of PySol
instead of the Windows version. If that's the case, go here:

    http://avitous.net/software/pysol-windows/index.shtml

and download the PySol 4.81 for Windows installer. I just tried that one
five minutes ago on my Windows box and it worked just fine; that should
get you up and running.

-- 
Robin Munn <rmunn at pobox.com>
http://www.rmunn.com/
PGP key ID: 0x6AFB6838    50FF 2478 CFFB 081A 8338  54F7 845D ACFD 6AFB 6838




More information about the Python-list mailing list