okay i got and compiled python 2.2
damn that was painless !!
i can run python 2.2 as an interpreter
i change OneShot.cgi to point to
#!/home/crucial/bin/Python-2.2/python
it still doesn't send headers or do anything.
adding my own Content-type etc., python is running.
i assume its running that version of 2.2
can't figure out how to access and print the python version number.
google and the docs haven't enlightened me. anyone ?
change WebKit.cgi to also point to
#!/home/crucial/bin/Python-2.2/python
and try to start the AppServer, but...
bash$ /home/crucial/bin/Python-2.2/python AppServer
File "<string>", line 3
/usr/bin/env python Launch.py ThreadedAppServer $*
^
SyntaxError: invalid syntax
bash$ /home/crucial/bin/Python-2.2/python AppServer.py
Caught exception: global name '__file__' is not defined
Exiting AppServer
Traceback (most recent call last):
File "AppServer.py", line 316, in ?
main()
File "AppServer.py", line 294, in main
server.shutDown()
UnboundLocalError: local variable 'server' referenced before assignment
is there some other way i should do this ?
thankx!
> From: Geoffrey Talvola <[EMAIL PROTECTED]>
> Date: Mon, 14 Jan 2002 17:44:09 -0500
> To: 'design' <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> Subject: RE: [Webware-discuss] OneShot.cgi / some Examples broken (1.6.1b)
>
> Any chance you could try this with Python 2.X? Or do you not have access to
> Python 2.X on the host at all?
>
> Unfortunately, I think all of the Webware developers have moved to Python
> 2.X so it's hard for us to make sure we maintain 1.5.2 compatibility.
>
> --
>
> - Geoff Talvola
> [EMAIL PROTECTED]
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss