I'm trying to run some queries to a database from a pylons (paster-based) webserver and every time I try to import the pymssql Library I'm using (its this one by the way) I keep getting this error:
tds_init_winsock: WSAEnumProtocols failed with 10055(WSAENOBUFS: No buffer space
available.)
on the import. I also tried using sqlalchemy and get the exact same error when I try to make an sqlalchemy engine. Is there anything I can do to get this to work. I'm not attached to the webserver or the pymssql library so any others are fine.
Environment Information:
Machine I'm using is a32bit win7 desk top the server is running in a python virtualenv environment, but the pymssql library works flawlessly in the virtual environment just not on the server
UPDATE:
A little more background information (and explanation): I don't think that this is a MSSQL problem or even a python problem in a way. for two reasons: A) Me and others can still connect to the MSSQL database while this problem occurs and B) pymssql works perfectly fine if it isn't being imported from the server. I do however think It may have something to do with the way python and _mssql deal with sockets and/or the way the server deals with sockets... hope that helps a little more.
thanks in advance