As instructed in the README and here http://code.google.com/p/pymssql/wiki/Compilation, I've installed Cython (v0.14.1), FreeTDS (v0.82 using MacPorts), and I already have XCode installed with gcc.
I've run into build errors during python setup.py install
:
a lot of undeclared name not builtin:
with things like strlen
, PyMem_Malloc
, PyMem_Free
, PY_LONG_LONG
as well as a few ___ is deprecated, use 'cpython'
Google found me this thread http://groups.google.com/group/cython-users/browse_thread/thread/468bb80480ede699/dc8267a4274c2413 where someone addresses the first error (changed to from libc.string cimport strlen, strcpy
from from stdlib cimport strlen, strcpy
.)
Now I'm getting: _mssql.pyx:650:34: Cannot convert Python object to 'const_char *'
Here is the file that these issues are coming from http://code.google.com/p/pymssql/source/browse/tags/1.9.908/_mssql.pyx
If I have not prepared my system correctly for pymssql
what have I done wrong?
If the _mssql.pyx
file is using deprecated imports how do I fix them?
Have you tried building 1.9.909 from the trunk? It builds cleanly for me, where .908 did not.
Unfortunately I get import errors even though there is a successful build and install: Building pymssql on OS X