Quantcast

在mac 10.6.8底下搭建django出现问题求救

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

在mac 10.6.8底下搭建django出现问题求救

openlab
This post has NOT been accepted by the mailing list yet.
This post was updated on .
I tried my best to setup a django environment on my mac 10.6.8 .I used XMAPP 1.7.3 python 2.7.3 pre-installed .but at the last setup to install mysql-python. i come up with lots of errors. the package i downloaded is http://cdnetworks-kr-1.dl.sourceforge.net/project/mysql-python/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz and i modified the site.cfg file "mysql_config = /Applications/XAMPP/xamppfiles/bin/mysql_config " .then when i exec "sudo python2.7 setup.py build",here comes the errors:

localhost:MySQL-python-1.2.3 yongjack$ sudo python setup.py build
Traceback (most recent call last):
  File "setup.py", line 5, in <module>
    from setuptools import setup, Extension
ImportError: No module named setuptools
localhost:MySQL-python-1.2.3 yongjack$ sudo python2.7 setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.7/MySQLdb
running build_ext
building '_mysql' extension
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -O2 -DNDEBUG -g -O3 -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/Applications/XAMPP/xamppfiles/include/mysql -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.3-fat-2.7/_mysql.o -mmacosx-version-min=10.4 -arch i386 -arch ppc -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
_mysql.c:36:23: error: my_config.h: No such file or directory
_mysql.c:38:19: error: mysql.h: No such file or directory
_mysql.c:39:26: error: mysqld_error.h: No such file or directory
_mysql.c:40:20: error: errmsg.h: No such file or directory
_mysql.c:76: error: syntax error before ‘MYSQL’
_mysql.c:76: warning: no semicolon at end of struct or union
_mysql.c:79: error: syntax error before ‘}’ token
_mysql.c:79: warning: data definition has no type or storage class
_mysql.c:90: error: syntax error before ‘MYSQL_RES’
_mysql.c:90: warning: no semicolon at end of struct or union
_mysql.c:94: error: syntax error before ‘}’ token
_mysql.c:94: warning: data definition has no type or storage class
_mysql.c:106: error: syntax error before ‘*’ token
_mysql.c: In function ‘_mysql_Exception’:
_mysql.c:120: error: ‘c’ undeclared (first use in this function)
_mysql.c:120: error: (Each undeclared identifier is reported only once
_mysql.c:120: error: for each function it appears in.)
_mysql.c:123: error: ‘CR_MAX_ERROR’ undeclared (first use in this function)
_mysql.c:131: error: ‘CR_COMMANDS_OUT_OF_SYNC’ undeclared (first use in this function)
_mysql.c:132: error: ‘ER_DB_CREATE_EXISTS’ undeclared (first use in this function)
_mysql.c:133: error: ‘ER_SYNTAX_ERROR’ undeclared (first use in this function)
_mysql.c:134: error: ‘ER_PARSE_ERROR’ undeclared (first use in this function)
_mysql.c:135: error: ‘ER_NO_SUCH_TABLE’ undeclared (first use in this function)
_mysql.c:136: error: ‘ER_WRONG_DB_NAME’ undeclared (first use in this function)
_mysql.c:137: error: ‘ER_WRONG_TABLE_NAME’ undeclared (first use in this function)
_mysql.c:138: error: ‘ER_FIELD_SPECIFIED_TWICE’ undeclared (first use in this function)
_mysql.c:139: error: ‘ER_INVALID_GROUP_FUNC_USE’ undeclared (first use in this function)
_mysql.c:140: error: ‘ER_UNSUPPORTED_EXTENSION’ undeclared (first use in this function)
_mysql.c:141: error: ‘ER_TABLE_MUST_HAVE_COLUMNS’ undeclared (first use in this function)
_mysql.c:170: error: ‘ER_DUP_ENTRY’ undeclared (first use in this function)
_mysql.c:213: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:358: error: syntax error before ‘*’ token
_mysql.c: In function ‘_mysql_ResultObject_Initialize’:
_mysql.c:363: error: ‘MYSQL_RES’ undeclared (first use in this function)
_mysql.c:363: error: ‘result’ undeclared (first use in this function)
_mysql.c:364: error: ‘conn’ undeclared (first use in this function)
_mysql.c:36:23:_mysql.c:368: error: ‘MYSQL_FIELD’ undeclared (first use in this function)
_mysql.c:368: error: ‘fields’ undeclared (first use in this function)
_mysql.c:370: error: ‘args’ undeclared (first use in this function)
_mysql.c:370: error: ‘kwargs’ undeclared (first use in this function)
error: my_config.h: No such file or directory
_mysql.c:375: error: ‘self’ undeclared (first use in this function)_mysql.c:38:19:
 error: mysql.h: No such file or directory
_mysql.c:39:26: error: mysqld_error.h: No such file or directory
_mysql.c:40:20: error: errmsg.h: No such file or directory
_mysql.c:76: error: syntax error before ‘MYSQL’
_mysql.c:76: warning: no semicolon at end of struct or union
_mysql.c:79: error: syntax error before ‘}’ token
_mysql.c:79: warning: data definition has no type or storage class
_mysql.c:90: error: syntax error before ‘MYSQL_RES’
_mysql.c:90: warning: no semicolon at end of struct or union
_mysql.c:94: error: syntax error before ‘}’ token
_mysql.c:94: warning: data definition has no type or storage class
_mysql.c:106: error: syntax error before ‘*’ token
_mysql.c: In function ‘_mysql_Exception’:
_mysql.c:120: error: ‘c’ undeclared (first use in this function)
_mysql.c:120: error: (Each undeclared identifier is reported only once
_mysql.c:120: error: for each function it appears in.)
_mysql.c:123: error: ‘CR_MAX_ERROR’ undeclared (first use in this function)
_mysql.c:131: error: ‘CR_COMMANDS_OUT_OF_SYNC’ undeclared (first use in this function)
_mysql.c:132: error: ‘ER_DB_CREATE_EXISTS’ undeclared (first use in this function)
_mysql.c:133: error: ‘ER_SYNTAX_ERROR’ undeclared (first use in this function)
_mysql.c:134: error: ‘ER_PARSE_ERROR’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:135: error: ‘ER_NO_SUCH_TABLE’ undeclared (first use in this function)
_mysql.c:445: error: syntax error before ‘*’ token
_mysql.c:136: error: ‘ER_WRONG_DB_NAME’ undeclared (first use in this function)
_mysql.c:137: error: ‘ER_WRONG_TABLE_NAME’ undeclared (first use in this function)
_mysql.c:138: error: ‘ER_FIELD_SPECIFIED_TWICE’ undeclared (first use in this function)_mysql.c: In function ‘_mysql_ResultObject_traverse’:
..........................
_mysql.c:450: error: ‘self’ undeclared (first use in this function)
_mysql.c:139: error: ‘ER_INVALID_GROUP_FUNC_USE’ undeclared (first use in this function)
_mysql.c:140: error: ‘ER_UNSUPPORTED_EXTENSION’ undeclared (first use in this function)_mysql.c:451: error: ‘arg’ undeclared (first use in this function)

_mysql.c:141: error: ‘ER_TABLE_MUST_HAVE_COLUMNS’ undeclared (first use in this function)
_mysql.c:170: error: ‘ER_DUP_ENTRY’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:460: error: syntax error before ‘*’ token
_mysql.c: In function ‘_mysql_ResultObject_clear’:
_mysql.c:462: error: ‘self’ undeclared (first use in this function)
_mysql.c:213: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:471: error: syntax error before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_Initialize’:
_mysql.c:475: error: ‘MYSQL’ undeclared (first use in this function)
_mysql.c:475: error: ‘conn’ undeclared (first use in this function)
_mysql.c:500: error: ‘self’ undeclared (first use in this function)
_mysql.c:503: error: ‘args’ undeclared (first use in this function)
_mysql.c:503: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:540: error: ‘MYSQL_OPT_CONNECT_TIMEOUT’ undeclared (first use in this function)
_mysql.c:544: error: ‘MYSQL_OPT_COMPRESS’ undeclared (first use in this function)
_mysql.c:545: error: ‘CLIENT_COMPRESS’ undeclared (first use in this function)
_mysql.c:548: error: ‘MYSQL_OPT_NAMED_PIPE’ undeclared (first use in this function)
_mysql.c:550: error: ‘MYSQL_INIT_COMMAND’ undeclared (first use in this function)
_mysql.c:552: error: ‘MYSQL_READ_DEFAULT_FILE’ undeclared (first use in this function)
_mysql.c:554: error: ‘MYSQL_READ_DEFAULT_GROUP’ undeclared (first use in this function)
_mysql.c:557: error: ‘MYSQL_OPT_LOCAL_INFILE’ undeclared (first use in this function)

_mysql.c:937: error: syntax error before ‘*’ token
_mysql.c:657: error: syntax error before ‘)’ token
_mysql.c: In function ‘_mysql_ConnectionObject_errno’:
_mysql.c:940: error: ‘args’ undeclared (first use in this function)
_mysql.c:941: error: ‘self’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:668: error: syntax error before ‘*’ token
_mysql.c: At top level:
_mysql.c: In function ‘_mysql_ConnectionObject_traverse’:_mysql.c:953: error: syntax error before ‘*’ token

_mysql.c:672: error: ‘self’ undeclared (first use in this function)
_mysql.c:673: error: ‘arg’ undeclared (first use in this function)_mysql.c: In function ‘_mysql_ConnectionObject_error’:

_mysql.c:956: error: ‘args’ undeclared (first use in this function)
_mysql.c:957: error: ‘self’ undeclared (first use in this function)_mysql.c: At top level:

_mysql.c:679: error: syntax error before ‘*’ token
_mysql.c:958: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
_mysql.c: In function ‘_mysql_ConnectionObject_clear’:
_mysql.c:681: error: ‘self’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:971: error: syntax error before ‘*’ token_mysql.c: At top level:

_mysql.c:691: error: syntax error before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_close’:
_mysql.c:694: error: ‘args’ undeclared (first use in this function)_mysql.c: In function ‘_mysql_escape_string’:

_mysql.c:977: error: ‘args’ undeclared (first use in this function)
_mysql.c:697: error: ‘self’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:719: error: syntax error before ‘*’ token
_mysql.c: At top level:
_mysql.c:1006: error: syntax error before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_affected_rows’:
_mysql.c:722: error: ‘args’ undeclared (first use in this function)
_mysql.c: In function ‘_mysql_string_literal’:
_mysql.c:723: error: ‘self’ undeclared (first use in this function)_mysql.c:1012: error: ‘args’ undeclared (first use in this function)
...............................

_mysql.c:2513: error: syntax error before ‘*’ token
_mysql.c: In function ‘_mysql_ResultObject_setattr’:
_mysql.c:2517: error: ‘v’ undeclared (first use in this function)
_mysql.c:2528: error: ‘name’ undeclared (first use in this function)
_mysql.c:2528: warning: passing argument 2 of ‘strcmp’ from incompatible pointer type
_mysql.c:2529: error: ‘self’ undeclared (first use in this function)
_mysql.c:2529: warning: passing argument 1 of ‘PyMember_SetOne’ from incompatible pointer type
_mysql.c:2529: warning: passing argument 3 of ‘PyMember_SetOne’ from incompatible pointer type
_mysql.c:2531: warning: passing argument 2 of ‘PyErr_SetString’ from incompatible pointer type
lipo: can't figure out the architecture type of: /var/tmp//cc6XzfGv.out
error: command 'gcc-4.0' failed with exit status 1
localhost:MySQL-python-1.2.3 yongjack$


Thanks a lot for giving any hints for it .
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 在mac 10.6.8底下搭建django出现问题求救

openlab
This post has NOT been accepted by the mailing list yet.
忘记加群组了,补上
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 在mac 10.6.8底下搭建django出现问题求救

davidchen
This post has NOT been accepted by the mailing list yet.
In reply to this post by openlab
Sorry  ,I don't  get a mac ! 



-- Sent from my palm pre ²

On 17 May 2012 02:03, openlab [via Python] <[hidden email]> wrote:

I tried my best to setup a django environment on my mac 10.6.8 .I used XMAPP 1.7.3 python 2.7.3 pre-installed .but at the last setup to install mysql-python. i come up with lots of errors. the package i downloaded is http://cdnetworks-kr-1.dl.sourceforge.net/project/mysql-python/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz and i modified the site.cfg file "mysql_config = /Applications/XAMPP/xamppfiles/bin/mysql_config " .then when i exec "sudo python2.7 setup.py build",here comes the errors:
<nabble_embed> localhost:MySQL-python-1.2.3 yongjack$ sudo python setup.py build Traceback (most recent call last): File "setup.py", line 5, in <module> from setuptools import setup, Extension ImportError: No module named setuptools localhost:MySQL-python-1.2.3 yongjack$ sudo python2.7 setup.py build running build running build_py copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.7/MySQLdb running build_ext building '_mysql' extension gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -O2 -DNDEBUG -g -O3 -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/Applications/XAMPP/xamppfiles/include/mysql -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.3-fat-2.7/_mysql.o -mmacosx-version-min=10.4 -arch i386 -arch ppc -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL _mysql.c:36:23: error: my_config.h: No such file or directory _mysql.c:38:19: error: mysql.h: No such file or directory _mysql.c:39:26: error: mysqld_error.h: No such file or directory _mysql.c:40:20: error: errmsg.h: No such file or directory _mysql.c:76: error: syntax error before ‘MYSQL’ _mysql.c:76: warning: no semicolon at end of struct or union _mysql.c:79: error: syntax error before ‘}’ token _mysql.c:79: warning: data definition has no type or storage class _mysql.c:90: error: syntax error before ‘MYSQL_RES’ _mysql.c:90: warning: no semicolon at end of struct or union _mysql.c:94: error: syntax error before ‘}’ token _mysql.c:94: warning: data definition has no type or storage class _mysql.c:106: error: syntax error before ‘*’ token _mysql.c: In function ‘_mysql_Exception’: _mysql.c:120: error: ‘c’ undeclared (first use in this function) _mysql.c:120: error: (Each undeclared identifier is reported only once _mysql.c:120: error: for each function it appears in.) _mysql.c:123: error: ‘CR_MAX_ERROR’ undeclared (first use in this function) _mysql.c:131: error: ‘CR_COMMANDS_OUT_OF_SYNC’ undeclared (first use in this function) _mysql.c:132: error: ‘ER_DB_CREATE_EXISTS’ undeclared (first use in this function) _mysql.c:133: error: ‘ER_SYNTAX_ERROR’ undeclared (first use in this function) _mysql.c:134: error: ‘ER_PARSE_ERROR’ undeclared (first use in this function) _mysql.c:135: error: ‘ER_NO_SUCH_TABLE’ undeclared (first use in this function) _mysql.c:136: error: ‘ER_WRONG_DB_NAME’ undeclared (first use in this function) _mysql.c:137: error: ‘ER_WRONG_TABLE_NAME’ undeclared (first use in this function) _mysql.c:138: error: ‘ER_FIELD_SPECIFIED_TWICE’ undeclared (first use in this function) _mysql.c:139: error: ‘ER_INVALID_GROUP_FUNC_USE’ undeclared (first use in this function) _mysql.c:140: error: ‘ER_UNSUPPORTED_EXTENSION’ undeclared (first use in this function) _mysql.c:141: error: ‘ER_TABLE_MUST_HAVE_COLUMNS’ undeclared (first use in this function) _mysql.c:170: error: ‘ER_DUP_ENTRY’ undeclared (first use in this function) _mysql.c:213: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast _mysql.c: At top level: _mysql.c:358: error: syntax error before ‘*’ token _mysql.c: In function ‘_mysql_ResultObject_Initialize’: _mysql.c:363: error: ‘MYSQL_RES’ undeclared (first use in this function) _mysql.c:363: error: ‘result’ undeclared (first use in this function) _mysql.c:364: error: ‘conn’ undeclared (first use in this function) _mysql.c:36:23:_mysql.c:368: error: ‘MYSQL_FIELD’ undeclared (first use in this function) _mysql.c:368: error: ‘fields’ undeclared (first use in this function) _mysql.c:370: error: ‘args’ undeclared (first use in this function) _mysql.c:370: error: ‘kwargs’ undeclared (first use in this function) error: my_config.h: No such file or directory _mysql.c:375: error: ‘self’ undeclared (first use in this function)_mysql.c:38:19: error: mysql.h: No such file or directory _mysql.c:39:26: error: mysqld_error.h: No such file or directory _mysql.c:40:20: error: errmsg.h: No such file or directory _mysql.c:76: error: syntax error before ‘MYSQL’ _mysql.c:76: warning: no semicolon at end of struct or union _mysql.c:79: error: syntax error before ‘}’ token _mysql.c:79: warning: data definition has no type or storage class _mysql.c:90: error: syntax error before ‘MYSQL_RES’ _mysql.c:90: warning: no semicolon at end of struct or union _mysql.c:94: error: syntax error before ‘}’ token _mysql.c:94: warning: data definition has no type or storage class _mysql.c:106: error: syntax error before ‘*’ token _mysql.c: In function ‘_mysql_Exception’: _mysql.c:120: error: ‘c’ undeclared (first use in this function) _mysql.c:120: error: (Each undeclared identifier is reported only once _mysql.c:120: error: for each function it appears in.) _mysql.c:123: error: ‘CR_MAX_ERROR’ undeclared (first use in this function) _mysql.c:131: error: ‘CR_COMMANDS_OUT_OF_SYNC’ undeclared (first use in this function) _mysql.c:132: error: ‘ER_DB_CREATE_EXISTS’ undeclared (first use in this function) _mysql.c:133: error: ‘ER_SYNTAX_ERROR’ undeclared (first use in this function) _mysql.c:134: error: ‘ER_PARSE_ERROR’ undeclared (first use in this function) _mysql.c: At top level: _mysql.c:135: error: ‘ER_NO_SUCH_TABLE’ undeclared (first use in this function) _mysql.c:445: error: syntax error before ‘*’ token _mysql.c:136: error: ‘ER_WRONG_DB_NAME’ undeclared (first use in this function) _mysql.c:137: error: ‘ER_WRONG_TABLE_NAME’ undeclared (first use in this function) _mysql.c:138: error: ‘ER_FIELD_SPECIFIED_TWICE’ undeclared (first use in this function)_mysql.c: In function ‘_mysql_ResultObject_traverse’: .......................... _mysql.c:450: error: ‘self’ undeclared (first use in this function) _mysql.c:139: error: ‘ER_INVALID_GROUP_FUNC_USE’ undeclared (first use in this function) _mysql.c:140: error: ‘ER_UNSUPPORTED_EXTENSION’ undeclared (first use in this function)_mysql.c:451: error: ‘arg’ undeclared (first use in this function) _mysql.c:141: error: ‘ER_TABLE_MUST_HAVE_COLUMNS’ undeclared (first use in this function) _mysql.c:170: error: ‘ER_DUP_ENTRY’ undeclared (first use in this function) _mysql.c: At top level: _mysql.c:460: error: syntax error before ‘*’ token _mysql.c: In function ‘_mysql_ResultObject_clear’: _mysql.c:462: error: ‘self’ undeclared (first use in this function) _mysql.c:213: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast _mysql.c: At top level: _mysql.c:471: error: syntax error before ‘*’ token _mysql.c: In function ‘_mysql_ConnectionObject_Initialize’: _mysql.c:475: error: ‘MYSQL’ undeclared (first use in this function) _mysql.c:475: error: ‘conn’ undeclared (first use in this function) _mysql.c:500: error: ‘self’ undeclared (first use in this function) _mysql.c:503: error: ‘args’ undeclared (first use in this function) _mysql.c:503: error: ‘kwargs’ undeclared (first use in this function) _mysql.c:540: error: ‘MYSQL_OPT_CONNECT_TIMEOUT’ undeclared (first use in this function) _mysql.c:544: error: ‘MYSQL_OPT_COMPRESS’ undeclared (first use in this function) _mysql.c:545: error: ‘CLIENT_COMPRESS’ undeclared (first use in this function) _mysql.c:548: error: ‘MYSQL_OPT_NAMED_PIPE’ undeclared (first use in this function) _mysql.c:550: error: ‘MYSQL_INIT_COMMAND’ undeclared (first use in this function) _mysql.c:552: error: ‘MYSQL_READ_DEFAULT_FILE’ undeclared (first use in this function) _mysql.c:554: error: ‘MYSQL_READ_DEFAULT_GROUP’ undeclared (first use in this function) _mysql.c:557: error: ‘MYSQL_OPT_LOCAL_INFILE’ undeclared (first use in this function) _mysql.c:937: error: syntax error before ‘*’ token _mysql.c:657: error: syntax error before ‘)’ token _mysql.c: In function ‘_mysql_ConnectionObject_errno’: _mysql.c:940: error: ‘args’ undeclared (first use in this function) _mysql.c:941: error: ‘self’ undeclared (first use in this function) _mysql.c: At top level: _mysql.c:668: error: syntax error before ‘*’ token _mysql.c: At top level: _mysql.c: In function ‘_mysql_ConnectionObject_traverse’:_mysql.c:953: error: syntax error before ‘*’ token _mysql.c:672: error: ‘self’ undeclared (first use in this function) _mysql.c:673: error: ‘arg’ undeclared (first use in this function)_mysql.c: In function ‘_mysql_ConnectionObject_error’: _mysql.c:956: error: ‘args’ undeclared (first use in this function) _mysql.c:957: error: ‘self’ undeclared (first use in this function)_mysql.c: At top level: _mysql.c:679: error: syntax error before ‘*’ token _mysql.c:958: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast _mysql.c: In function ‘_mysql_ConnectionObject_clear’: _mysql.c:681: error: ‘self’ undeclared (first use in this function) _mysql.c: At top level: _mysql.c:971: error: syntax error before ‘*’ token_mysql.c: At top level: _mysql.c:691: error: syntax error before ‘*’ token _mysql.c: In function ‘_mysql_ConnectionObject_close’: _mysql.c:694: error: ‘args’ undeclared (first use in this function)_mysql.c: In function ‘_mysql_escape_string’: _mysql.c:977: error: ‘args’ undeclared (first use in this function) _mysql.c:697: error: ‘self’ undeclared (first use in this function) _mysql.c: At top level: _mysql.c:719: error: syntax error before ‘*’ token _mysql.c: At top level: _mysql.c:1006: error: syntax error before ‘*’ token _mysql.c: In function ‘_mysql_ConnectionObject_affected_rows’: _mysql.c:722: error: ‘args’ undeclared (first use in this function) _mysql.c: In function ‘_mysql_string_literal’: _mysql.c:723: error: ‘self’ undeclared (first use in this function)_mysql.c:1012: error: ‘args’ undeclared (first use in this function) ............................... _mysql.c:2513: error: syntax error before ‘*’ token _mysql.c: In function ‘_mysql_ResultObject_setattr’: _mysql.c:2517: error: ‘v’ undeclared (first use in this function) _mysql.c:2528: error: ‘name’ undeclared (first use in this function) _mysql.c:2528: warning: passing argument 2 of ‘strcmp’ from incompatible pointer type _mysql.c:2529: error: ‘self’ undeclared (first use in this function) _mysql.c:2529: warning: passing argument 1 of ‘PyMember_SetOne’ from incompatible pointer type _mysql.c:2529: warning: passing argument 3 of ‘PyMember_SetOne’ from incompatible pointer type _mysql.c:2531: warning: passing argument 2 of ‘PyErr_SetString’ from incompatible pointer type lipo: can't figure out the architecture type of: /var/tmp//cc6XzfGv.out error: command 'gcc-4.0' failed with exit status 1 localhost:MySQL-python-1.2.3 yongjack$ </nabble_embed>

Thanks a lot for giving any hints for it .


If you reply to this email, your message will be added to the discussion below:
http://python.6.n6.nabble.com/mac-10-6-8-django-tp4974842.html
To start a new topic under China (googlegroups), email [hidden email]
To unsubscribe from China (googlegroups), click here.
NAML
Loading...