Sounds like you didn't set up the WebKit.cgi correctly. At the top, you need to proved the Webware directory. For me it's located at the root level of my home directory (user = lobo) so therefore I have the following for line #6 in WebKit.cgi:
WebwareDir = '/Users/lobo/Webware' I've got my application working directory set to a folder called SpeechTeam at the root level of my home directory... therefore line 10 says; AppWorkDir = '/Users/lobo/SpeechTeam' Based on what you said below, you should have at least the following line: WebwareDir = '/Users/jeffrey/Documents/Programming/Webware' - Dan On Sunday, February 10, 2002, at 05:42 PM, Jeffrey P Shell wrote: > 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? _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
