I've never tried the HTTPDAdapter previously, but am seeing some problems :

  C:\Webware-0.8.1\WebKit\Adapters>HTTPAdapter.py
  Traceback (most recent call last):
    File "C:\Webware-0.8.1\WebKit\Adapters\HTTPAdapter.py", line 28,
  in ?
      (host, port) = string.split(open(os.path.join(webKitDir, 
'address.text')).read(), ':')
  
  IOError: [Errno 2] No such file or directory: 
'C:\\Webware-0.8.1\\WebKit\\address.text'

So I created address.text and added 'localhost:4040'... now I get :

  C:\Webware-0.8.1\WebKit\Adapters>HTTPAdapter.py
  Traceback (most recent call last):
    File "C:\Webware-0.8.1\WebKit\Adapters\HTTPAdapter.py", line 45,
  in ?
      from WebKit.HTTPServer import HTTPHandler, run
  ImportError: cannot import name run
  
The system path is being setup properly at the beginning of HTTPDAdapter.py,
I set WebwareDire and added a debugging statement to make sure. So I open
HTTPServer.py and find no occurances of 'run'. That's a problem right?

So I wonder if it the 'run' import is a leftover and comment it out.

  #from WebKit.HTTPServer import HTTPHandler, run
  from WebKit.HTTPServer import HTTPHandler
  
I try to run and now <NameError: name 'BaseHTTPServer' is not defined>
So I guess I need to add that import, and do... at which point :

  D:\_webdev3\Webware-0.8.1\Webware-0.8.1\WebKit\Adapters>HTTPAdapter.py
  inserting WebwareDir to path : D:\_webdev3\Webware-0.8.1\Webware-0.8.1\
  Traceback (most recent call last):
    File "D:\_webdev3\Webware-0.8.1\Webware-0.8.1\WebKit\Adapters\HTTPAdapter.py", 
line 148,
   in ?
      main()
    File "D:\_webdev3\Webware-0.8.1\Webware-0.8.1\WebKit\Adapters\HTTPAdapter.py", 
line 141,
   in main
      if daemon:
  UnboundLocalError: local variable 'daemon' referenced before assignment

Looks like daemon is being used with fork which doesn't work in Windows.
Anyway, I properly initialize daemon to 0 before the try there. I run again...

Oops, the last statement in main() is run(), but the run() defined in this
file takes at least one argument, the address, presumably server address.

After a couple tries, I learn what kind of address it wants and use :

  run(('127.0.0.1',4040))
  
I try again, it runs and I am delivered what I guess is a punchline :

  "PS: This adapter is experimental and should not be used in
  a production environment"

I visit the site, and see a stack trace in the console showing me I need 
to 'import threading', so I do and now seem to be getting somewhere.

  Exception happened during processing of request from ('127.0.0.1', 2320)
  ...stacktrace...
  AttributeError: HTTPHandler instance has no attribute 'doTransaction'

I give up and go to install mod_webkit as I did originally months ago.

-Tomi

<flamebait>
P.S. This is quite honestly the same sort of thing that happens with 
every other open source project I attempt to use, especially ones 
implemented in or using scripting language. Yes I understand why they 
happen, but I would rather they not, as an end-user. Coincidentally,
I often prefer software which is commercially funded. Any excuse can
be made for this, but they do not matter to me, only one thing does.

As a programmer, I think I leave projects in a well defined state
when they are being developed and a break or interruption occurs.

I suppose occurrances such as these make business-by-service using open 
source successful. Personally, I prefer to sell products, not services. 
Service of products, to me, is a degradation of selling products you
support basically for free.

I'd like to understand what the hype has always been about, but have
never read anything that does this other than those which say service 
based business is the one true way. It seems almost a conspiracy. You 
horde of 2nd party developers must provide service to customers and must 
give all the other developers your products for free. It feels fuedal 
and restrictive. I suppose I could go on forever...

I just don't understand; and feel ESR is a psychological misfit.
</flamebait>



-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to