Have they always used pyrex? I though they were pure Python.

Anyway, likely that they are now producing a package with a C extension that 
will not work in Python sub interpreters.

Are you setting the WSGIApplicationGroup directive to anything in your Apache 
configuration?

For background of potential issue, read:

http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_Simplified_GIL_State_API

If this is a new change they have made, will cause lots of grief going forward 
for people using mod_wsgi as sites stop working. :-(

Graham

On 14/11/2013, at 6:53 AM, Frederick Yankowski <[email protected]> wrote:

> I've got a WSGI app that calls _mssql.connect() (pymssql package) to connect 
> to an MS SQL database for reading. It was working fine with an older version 
> of pymssql but with recent versions the call to connect() hangs. The 
> httpd/mod_wsgi process is stalled until I restart Apace. So I'm looking for 
> help figuring out what is going wrong.
> 
> I've created a trivial program that calls _mssql.connect() with both WSGI and 
> shell wrappers. It works fine from the python shell but hangs every time when 
> run in mod_wsgi.
> 
> When I watch the mod_wsgi process with strace I see it connecting to the MS 
> SQL Server host over a socket and sending some traffic. It then calls futex() 
> and hangs; nothing more happens until the process gets SIGKILL.
> 
> Here is the context.
> 
> OS:  Red Hat Enterprise Linux 6.4, 64bit
> 
> Python: 2.7.5, built from source, multi-threading enabled, shared libraries 
> enabled.
> 
> mod_wsgi: version 3.4, built from source, against Python 2.7.5 (above).
> 
> Apache: 2.2.5, from RHEL 6.  Neither mod_php nor mod_python is installed.
> 
> freetds: 0.91 from RHEL 6. 
> 
> pymssql: Various versions. The latest stable, 2.0.1 from pip, fails. Revision 
> 221 from https://code.google.com/p/pymssql is the most recent one that I've 
> found to work.
> 
> Python configuration: installed into virtualenv.
> 
> mod_wsgi configuration: embedded mode. WSGIPythonHome set to a virtualenv.
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to