Kubias wrote:
> Hello,
> I have Windows XP Home and Python23 installed. Following instruction=
s=20
> "How To Install PythonCard on Windows" I=B4ve just installed wxPython a=
nd=20
> PythonCard.to C:/Python23 directory.
> When trying to confirm installation (...open the "minimal.py" in=20
> Python23/Lib/site-packages/PythonCard/samples/minimal/ ) I am getting=20
> this rude answer: "...not valid Win 32 application! "
> When I open "minimal.py" by IDLE, I can read this note: #=20
> !/usr/bin/python ...
> When I open "minimal.py" in .../PythonCard/samples/minimal/
> or "starter1.py" in .../PythonCard/docs/Getting star=
ted/
> by double-click, I get the same nice result: there opens a low black=20
> window "Python23/python.exe" and there pops up the small frame "Minimal=
=20
> Pytho..." with File button and text field "Hello Python Card" - the sam=
e=20
> as viewed in the web page.
> My question is: Why am I getting the "...not valid Win 32=20
> application" response?
> I am afraid my question is a little silly, but I cant=B4help. Any ideas=
?=20
> Thanks.
> =
=20
> Tovim
> =20
It looks like you don't have .py files associated with the Python=20
interpreter on your computer. Have you installed the optional Python for=20
Windows Extensions [1] ? I believe it is this package which does the=20
association which will then allow you to double click a Python script in=20
Windows Explorer and get it to run correctly.
Alternatively, you can always run Python scripts from within a command=20
window. I don't have an XP machine handy but from the Start menu you=20
should be able to select 'Run ...' and type either 'cmd.exe' or=20
'command.com' to get a command window. Then simply change to the correct=20
directory with something like;
C:\> cd c:\Python23\Lib\site-packages\PythonCard\samples\minimal
and run the sample application by typing;
c:\ ... > python minimal.py
[1] http://starship.python.net/crew/mhammond/win32/
Regards,
Andy
--=20
-----------------------------------------------------------------------
From the desk of Andrew J Todd esq.
"So I curtailed my Walpoling activities, sallied forth and infiltrated
your place of purveyance to negotiate the vending of some cheesy
comestibles." - Monty Python.
--=20
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30/12/04
|