[Zope] setup.py build

Chris Withers chris at simplistix.co.uk
Fri Mar 17 14:58:37 EST 2006


Are you sure you have the right version of Visual C++ and the python 
headers available?

Chris

wavemaster2000 wrote:
> hey I am trying to setup a connection between python and mysql, trying to get
> a connection for zope.
> I get this error on building
> C:\Program Files\Zope-2.9.1\lib\python\Products\MySQL-python-1.2.0>setup.py
> buil
> d
> running build
> running build_py
> creating build
> creating build\lib.win32-2.4
> copying _mysql_exceptions.py -> build\lib.win32-2.4
> creating build\lib.win32-2.4\MySQLdb
> copying MySQLdb\__init__.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\converters.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\connections.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\cursors.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\sets.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\times.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\stringtimes.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\mxdatetimes.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\pytimes.py -> build\lib.win32-2.4\MySQLdb
> creating build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\__init__.py ->
> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\CR.py -> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\FIELD_TYPE.py ->
> build\lib.win32-2.4\MySQLdb\constants
> 
> copying MySQLdb\constants\ER.py -> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\FLAG.py -> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\REFRESH.py ->
> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\CLIENT.py -> build\lib.win32-2.4\MySQLdb\constants
> running build_ext
> building '_mysql' extension
> creating build\temp.win32-2.4
> creating build\temp.win32-2.4\Release
> C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe /c /nologo /Ox /MD
> /W3
> /GX /DNDEBUG -IC:\Python24\include -IC:\Python24\PC /Tc_mysql.c
> /Fobuild\temp.wi
> n32-2.4\Release\_mysql.obj
> cl : Command line warning D9035 : option 'GX' has been deprecated and will
> be re
> moved in a future release
> cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
> _mysql.c
> c:\python24\include\pyconfig.h(130) : fatal error C1083: Cannot open include
> fil
> e: 'basetsd.h': No such file or directory
> error: command '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"'
> fail
> ed with exit status 2
> 
> C:\Program Files\Zope-2.9.1\lib\python\Products\MySQL-python-1.2.0>setup.py
> buil
> d
> running build
> running build_py
> creating build
> creating build\lib.win32-2.4
> copying _mysql_exceptions.py -> build\lib.win32-2.4
> creating build\lib.win32-2.4\MySQLdb
> copying MySQLdb\__init__.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\converters.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\connections.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\cursors.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\sets.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\times.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\stringtimes.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\mxdatetimes.py -> build\lib.win32-2.4\MySQLdb
> copying MySQLdb\pytimes.py -> build\lib.win32-2.4\MySQLdb
> creating build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\__init__.py ->
> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\CR.py -> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\FIELD_TYPE.py ->
> build\lib.win32-2.4\MySQLdb\constants
> 
> copying MySQLdb\constants\ER.py -> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\FLAG.py -> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\REFRESH.py ->
> build\lib.win32-2.4\MySQLdb\constants
> copying MySQLdb\constants\CLIENT.py -> build\lib.win32-2.4\MySQLdb\constants
> running build_ext
> building '_mysql' extension
> Traceback (most recent call last):
>   File "C:\Program
> Files\Zope-2.9.1\lib\python\Products\MySQL-python-1.2.0\setup
> .py", line 153, in ?
>     setup(**metadata)
>   File "C:\Python24\lib\distutils\core.py", line 149, in setup
>     dist.run_commands()
>   File "C:\Python24\lib\distutils\dist.py", line 946, in run_commands
>     self.run_command(cmd)
>   File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
>     cmd_obj.run()
>   File "C:\Python24\lib\distutils\command\build.py", line 112, in run
>     self.run_command(cmd_name)
>   File "C:\Python24\lib\distutils\cmd.py", line 333, in run_command
>     self.distribution.run_command(command)
>   File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
>     cmd_obj.run()
>   File "C:\Python24\lib\distutils\command\build_ext.py", line 279, in run
>     self.build_extensions()
>   File "C:\Python24\lib\distutils\command\build_ext.py", line 405, in
> build_exte
> nsions
>     self.build_extension(ext)
>   File "C:\Python24\lib\distutils\command\build_ext.py", line 470, in
> build_exte
> nsion
>     depends=ext.depends)
>   File "C:\Python24\lib\distutils\msvccompiler.py", line 309, in compile
>     depends, extra_postargs)
>   File "C:\Python24\lib\distutils\ccompiler.py", line 363, in _setup_compile
>     raise TypeError, \
> TypeError: 'include_dirs' (if supplied) must be a list of strings
> 
> --
> View this message in context: http://www.nabble.com/setup.py-build-t1295336.html#a3448786
> Sent from the Zope - General forum at Nabble.com.
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list