2009/12/31 SliceOf314 <[email protected]>:
> I have a strange import problem, where I can't seem to import some
> kinds of libraries. I know my paths are set up properly. For example,
> I did an easy_install of werkzeug. I can do an "import werkzeug" and
> that works just fine, but I can't do a "from werkzeug import
> Response". I can however do "from multiprocessing import Process".
>
> I even set the user in the WSGIDaemonProcess directive to my own
> account to see if it's a permission problem.
>
> I'm running in daemon mode with 5ps x 5threads.
>
> I get this lovely message in my error_log
> [Wed Dec 30 18:51:55 2009] [error] [client 127.0.0.1] Premature end of
> script headers: myapp.wsgi
> [Wed Dec 30 18:51:56 2009] [notice] child pid 82299 exit signal Trace/
> BPT trap (5)
>
>
> Does any of this ring a bell for anyone?

Does it still occur if you set:

 WSGIApplicationGroup %{GLOBAL}

Have you ensured you aren't still loading mod_python in same Apache?

What other mod_wsgi configuration directives are you using in Apache
configuration?

What sys.path changes are you making in WSGI script file?

Have you read the following documents?

  http://code.google.com/p/modwsgi/wiki/InstallationIssues
  http://code.google.com/p/modwsgi/wiki/ApplicationIssues

Specifically look in those documents for references to processes
crashing, segmentation faults, core dumps etc, as that is what is
occuring in your case.

Your problem may be due to mixing mod_wsgi with incompatible
mod_python version, mixing incompatible shared library versions, using
a third party C extension module which doesn't work in Python
secondary sub interpreters or trying to use C extension modules from
wrong version of Python.

So, read those two documents and see if there is anything in there
which matches what you are doing. Then go through questsions above one
by one and provide the answers back to the list.

If you understand debuggers, you can also use one to work out where
process is crashing by following description in:

  
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_Crashes_With_GDB

for connecting to daemon mode process and triggering crash.

Graham

--

You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.


Reply via email to