durusmail: quixote-users: mod_python fails on FreeBSD
mod_python fails on FreeBSD
2002-03-19
2002-03-19
2002-03-19
2002-03-19
2002-03-19
2002-03-21
2002-03-21
2002-03-20
2002-04-04
2002-04-04
2002-04-04
2002-03-22
mod_python fails on FreeBSD
Michael Watkins
2002-03-19
Greetings list

I am exploring Quixote for use in a project and have been able to install
and work with it on a Win32 / Apache / mod_python platform, but not on
either of two FreeBSD hosts (one mine, one managed by a third, more
experienced, party).

On both FreeBSD machines I have been able to successfully execute the demo
scripts as plain CGI and just now using FastCGI as well.

However mod_python complains on the first load of the demo app that it
can't find floor in struct (Undefined symbol "floor" ); on reload at the
browser side, this disappears and it then complains that it can't find
Publisher.

I've used both ,  and plain old RewriteRule
approaches, all known to work on my Win32 dev machine, yet all fail on
FreeBSD / mod_python.

Initially I steered away from FastCGI after reading that someone one the
Quixote team was planning on developing a simpler adapter. After a couple
of demoralizing nights reinstalling my entire dev environment and trying
everything I can think of (my unix experience is limited and its entirely
possible I've overlooked something), I'm giving up on mod_python and
getting on with developing the application.

Sorry for the long pointless intro, I fired up this message and started
composing it before I gave FastCGI a try. Since I have now at least a fall
back plan for a speedy CGI environment, I'm going to just get to work on
application rather than system stuff.

PS If anyone needs a "mod_scgi" (noted discussion by the team on this
subject recently) test guinea pig, I have time and a few different
environments on which to do testing.

I like very much the Quixote mantra, 'no magic', especially after the past
few days wrestling with what I am sure entails deep black magic to
overcome. I'm only a taupe magic kinda guy.

Cheers
Mike


---
Mod_python error: "PythonHandler quixote.mod_python_handler"
Traceback (most recent call last):
File "/usr/local/lib/python2.2/site-packages/mod_python/apache.py", line
181, in Dispatch module = import_module(module_name, _req)
File "/usr/local/lib/python2.2/site-packages/mod_python/apache.py", line
338, in import_module module = imp.load_module(mname, f, p, d)
File "/usr/local/lib/python2.2/site-packages/quixote/__init__.py", line 17,
in ? from quixote.publish import Publisher, get_publisher, get_request,
get_session, get_user
File "/usr/local/lib/python2.2/site-packages/quixote/publish.py", line 11,
in ? from quixote import errors, fcgi
File "/usr/local/lib/python2.2/site-packages/quixote/fcgi.py", line 34, in
? import os, sys, string, socket, errno, struct ImportError:
/usr/local/lib/python2.2/lib-dynload/struct.so: Undefined symbol "floor"

I've been through



reply