google-code-export / pymssql

Automatically exported from code.google.com/p/pymssql
GNU Lesser General Public License v2.1
0 stars 0 forks source link

import pymssql in a wsgi script resets web server #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
attempting to import pymssql or _mssql causes python to crash and my web server 
to reset the connection

What steps will reproduce the problem?
1. serve a python script through wsgi.  watch it work perfectly fine
2. include the like "import pymssql" anywhere in that script. watch it crash.

What is the expected output? What do you see instead?
expect it not to crash

What version of the product are you using? On what operating system?
python 2.6.6, pymssql-1.9.908.win32-py2.6 exe installer
apache 2.2 and iis7.5 on windows 7 enterprise

Please provide any additional information below.
import pymssql works perfectly fine when run in a standard python environment.  
it only fails when run through wsgi (or wsgi through pyISAPIe)

the only error messages i get in my apache logs is "Parent: child process 
exited with status 255 -- Restarting."

Original issue reported on code.google.com by k...@schrama.ca on 7 Jun 2011 at 5:31

GoogleCodeExporter commented 9 years ago
I am experiencing the same issue. I tried various combinations of python and 
pymssql. If i run the same scripts standalone, I can access the database.

Original comment by roet...@gmail.com on 10 Jun 2011 at 2:57

GoogleCodeExporter commented 9 years ago
Have you tried building from HG tip?

Original comment by rsyr...@gmail.com on 4 Oct 2011 at 5:00

GoogleCodeExporter commented 9 years ago
Closing due to length of time without comment.

Original comment by rsyr...@gmail.com on 8 Mar 2012 at 3:23