Menu

#92 AllTests AppServer error on Windows Vista

closed-fixed
nobody
WebKit (58)
5
2008-12-09
2008-12-02
Richard
No

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.

Running WebKit\AppServer causes an error relating to python which is because the command 'python' does nothing on my system, so I edited the AppServer.bat to set the PYTHON variable to point to my python executable. This allowed the 'AppServer' command to start the AppServer successfully, and I could connect to localhost:8080 without any problems. I shut this down ands ran the AllTests.py again, but I still get the same result 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)

Discussion

  • Christoph Zwerschke

    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.

     
  • Richard

    Richard - 2008-12-09

    Adding python to my path variable did indeed allow the AllTests.py script to run without errors. Thanks for explaining this.

     
  • Richard

    Richard - 2008-12-09
    • status: open --> closed-fixed
     

Log in to post a comment.