Menu

Problem building

Edo
2006-08-14
2013-04-29
  • Edo

    Edo - 2006-08-14

    Hi All,

    python setup.py install gives me:

    running install
    running build
    running build_py
    running build_ext
    building '_mssql' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -I/usr/include -I/usr/local/include -I/usr/include/freetds -I/usr/local/include/freetds -I/usr/pkg/freetds/include -I/usr/include/python2.3 -c mssqldbmodule.c -o build/temp.linux-i686-2.3/mssqldbmodule.o
    mssqldbmodule.c: In function `init_mssql':
    mssqldbmodule.c:868: error: `PyDateTime_IMPORT' undeclared (first use in this function)
    mssqldbmodule.c:868: error: (Each undeclared identifier is reported only once
    mssqldbmodule.c:868: error: for each function it appears in.)
    mssqldbmodule.c: In function `GetRow':
    mssqldbmodule.c:1087: warning: assignment makes pointer from integer without a cast
    error: command 'gcc' failed with exit status 1

    Any ideas?

    TIA

    Edo.

     
    • A

      A - 2006-09-12

      You have to use Python 2.4 or newer; Python 2.5 will be supported with pymssql 0.8.0

       

Log in to post a comment.