[Windmill-dev] Windmill newbie with bug

Andres Riancho andres.riancho at gmail.com
Sun Jul 6 11:19:40 PDT 2008


List,

    I just installed windmill and I'm getting this bug:

dz0 at sock3t:~/tools/windmill$ windmill wx
Traceback (most recent call last):
  File "/usr/bin/windmill", line 8, in <module>
    load_entry_point('windmill==0.4.2', 'console_scripts', 'windmill')()
  File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/windmill/bin/windmill_bin.py",
line 52, in main
    admin_lib.command_line_startup()
  File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/windmill/bin/admin_lib.py",
line 322, in command_line_startup
    shell_objects = setup()
  File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/windmill/bin/admin_lib.py",
line 134, in setup
    httpd, httpd_thread, console_log_handler =
run_threaded(windmill.settings['CONSOLE_LOG_LEVEL'])
  File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/windmill/bin/admin_lib.py",
line 95, in run_threaded
    httpd, console_handler = setup_servers(console_level)
  File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/windmill/bin/admin_lib.py",
line 89, in setup_servers
    httpd = windmill.server.wsgi.make_windmill_server()
  File "/usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg/windmill/server/wsgi.py",
line 128, in make_windmill_server
    httpd = cherrypy.wsgiserver.CherryPyWSGIServer(('0.0.0.0', http_port),
AttributeError: 'module' object has no attribute 'wsgiserver'
dz0 at sock3t:~/tools/windmill$

    I installed windmill from the egg like this:

dz0 at sock3t:~/tools/windmill$ sudo easy_install windmill-0.4.2-py2.5.egg
Processing windmill-0.4.2-py2.5.egg
creating /usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg
Extracting windmill-0.4.2-py2.5.egg to /usr/lib/python2.5/site-packages
Adding windmill 0.4.2 to easy-install.pth file
Installing windmill script to /usr/bin

Installed /usr/lib/python2.5/site-packages/windmill-0.4.2-py2.5.egg
Processing dependencies for windmill==0.4.2
Finished processing dependencies for windmill==0.4.2
dz0 at sock3t:~/tools/windmill$

    And it seems to "work" if I call it without parameters:

dz0 at sock3t:~/tools/windmill$ windmill
windmill web test automation system.
    windmill [-cdelptmxs] action [option=value] [firefox|ie|safari]
[http://www.example.com]

Available Actions:
    shell         Enter the windmilll shell environment (modified
python shell).
                  Uses ipython if installed. Exit using ^d
    run_service   Run the windmill service in foreground. Kill using ^c.
    wx            Run the wxPython based graphical interface for the
                  windmill service. Still experimental.

Available Options:
    browserdebug :: Enable browser debugging.
        Python tests will all load in to the server at once. Defaults to False
    -c, continueonfailure :: Keep the browser running tests after
failure. Defaults to False
    -d, debug :: Turn on debugging.
    -e, exit :: Exit after all tests have run. Defaults to False
    extensions= :: The directory containing any windmill javascript extensions.
    jsdir= :: JavaScript Test Framework :
        Root directory of JavaScript tests.
    jsfilter= :: JavaScript Test Framework :
        Filter tests, example; ns:test_login,tests:test_user.
    jsphase= :: JavaScript Test Framework :
        Specify the phases the framework should run example; setup,test,teardown
    -l, loadtest= :: Run the given test file/dir
    loglevel= :: Log level command, sets the global logging level.
    -p, pdb :: Enable pdb debugging when running python tests. Defaults to False
    -t, test= :: Run the given test file/dir
    -m, firefox :: Start the firefox browser. Defaults to False
    -x, ie :: Start the internet explorer browser. Windows Only.
Defaults to False
    -s, safari :: Start the Safari browser. Mac Only. Defaults to False
    usecode :: Use the code module rather than ipython. Defaults to False
dz0 at sock3t:~/tools/windmill$

    Here is my versioning information:

dz0 at sock3t:~/tools/windmill$ python
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cherrypy
>>> cherrypy.__version__
'3.1.0'
>>>

    How can I fix this in order to test windmill ?

Cheers,
-- 
Andres Riancho
http://w3af.sourceforge.net/
Web Application Attack and Audit Framework


More information about the Windmill-dev mailing list