I'm trying to evaluate Webware/WebKit, but I'm unable to get the adapters to
work - Python keeps giving me an ImportError, even though the sys.path
appears to be correct.

This is happening on Mac OS X v10.1.2, default apache.

I get the following error with trying to use CGIAdapter:
(modified to show sys.path):
> ERROR 
> 
> 
> Traceback (most recent call last):
> File "/Library/WebServer/CGI-Executables/WebKit.cgi", line 24, in ?
>   import WebKit.CGIAdapter
> ImportError: No module named WebKit.CGIAdapter
> 
> ['/Library/WebServer/CGI-Executables',
>  '/Users/jeffrey/Documents/Programming/Webware', ...

And the following when trying to use mod_python, following the example in
ModPythonAdapter.py's docstring. (I also did some quick mods to 'apache.py'
to see if sys.path was being set as expected, and it appeared to be set
right):
> Mod_python error: "PythonHandler ModPythonAdapter"
> 
> Traceback (most recent call last):
> 
> File "/usr/local/lib/python2.1/site-packages/mod_python/apache.py", line 181,
> in Dispatch
>   module = import_module(module_name, _req)
> 
> File "/usr/local/lib/python2.1/site-packages/mod_python/apache.py", line 335,
> in import_module
>   f, p, d = imp.find_module(parts[i], path)
> 
> ImportError: No module named ModPythonAdapter

However, when I run python2.1 normally, and insert
'/Users/jeffrey/Documents/Programming/Webware' into the path, I can do
'import WebKit.CGIAdapter' just fine, or even if I run 'WebKit.cgi' manually
from the CGI directory.

I know very little about Apache configuring, and even less about how Apple's
got it set up.  I have no intention on running any production site in this
setup, but I'd prefer to evaluate Webware on my desktop/laptop machines.

I'm stuck as to what may be happening here.  Has anyone experienced this?

-- 
Jeffrey P Shell 
www.cuemedia.com



_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to