I have just install Webware-1.0 on a Windows Vista PC with Python 2.5. The initial 'install.py -v' went through okay without any errors, but the 'Alltests.py' script produced an error as shown below.
ERROR: testAppServerStarts (WebKit.Tests.Basic.Test.TestBasicFunctionality)
----------------------------------------------------------------------
Traceback (most recent call last):
File "G:\www\Webware-1.0\WebKit\Tests\AppServerTest.py", line 41, in setUp
self.assertAppServerSays('^WebKit AppServer ')
File "G:\www\Webware-1.0\WebKit\Tests\AppServerTest.py", line 67, in assertApp
ServerSays
% (pattern, wait, self._actualAppServerOutput)
AssertionError: Expected appserver to say '^WebKit AppServer ',
but after waiting 5 seconds it said:
----------------------------------------------------------------------
Ran 77 tests in 16.844s
FAILED (errors=1)
As you already noticed, you can specify a Python version in AppServer.bat if you don't have Python on your PATH or if you want to use a different Python version.
However, the AppServer test (in WebKit/Tests) does not call AppServer.bat, but runs Python with ThreadedAppServer as a shell command and thus needs Python on your PATH. I think we can live with that.
On Unix, Python is usually on the PATH already, but on Windows the Python standard installer does not do this, so you should do it manually to make your life a bit easier (see http://www.imladris.com/Scripts/PythonForWindows.html\).
Please let me know whether the tests pass on your machine after putting Python on the PATH, I'm pretty confident they will.
Adding python to my path variable did indeed allow the AllTests.py script to run without errors. Thanks for explaining this.