on my Windows XP with an old MySQL (4.1) and Python 2.5, I had to copy libmysql.dll from C:\Programs\Python25 to C:\Windows\System32 after installing the Jeong-Min Lee (falsetru) build to resolve the error on 'import _mysql'. After that all worked fine.
Just for reference the error on import was:
Traceback (most recent call last):
File "C:\Applicazioni\Python\VirtueNando\genera_prod_csv.py", line 1, in <module>
import MySQLdb
File "c:\Programs\Python25\lib\site-packages\MySQLdb__init__.py", line 19, in <module>
import _mysql
ImportError: DLL load failed.[italian localized message]
sayonara
Francesco Gigli & Andrea Papotti
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1.2.1_p1 seems to work fine with Python 2.5. I have a version I built (for win32) using Mysql 5.0.24 and python 2.5. I can mail it to you if you like it is about 850kb.
It has not been tested with ssl or compression.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Kael,
I have not been able to build a version to work with Python 2.5. I would appreciate it if you would email me the one you built or provide some direction on how you build yours.
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've had problems compiling for Python 2.5 and MySQL 5.0.27. I added all the include and library dirs I could find (from compiled MySQL and Python) to the extra_compile_args in site.cfg, but it still couldn't find 2 variables (version_info and version) so I commented out the relevant lines from _mysql.c (2804-2809 or something like that... within the last 100 lines anyways), and it compiled and installed just fine, but then it died looking for a file "libmysqlclient.so.15" which was living in /usr/local/lib/mysql . I just added the file to extra_objects in site.cfg and now it works! Just hope I didn't mess anything up... here's the diff between a freshly unpacked tarball and my mysql-python directory, for those who are trying to compile it themselves:
Only in mysql-python: build
diff -r mysql-python-clean/_mysql.c mysql-python/_mysql.c
2803c2803
< if (PyDict_SetItemString(dict, "version_info",
> /* if (PyDict_SetItemString(dict, "version_info",
2809c2809
< goto error;
> goto error;*/
Only in mysql-python/MySQLdb: init.pyc
Only in mysql-python/MySQLdb: release.pyc
diff -r mysql-python-clean/site.cfg mysql-python/site.cfg
9c9,10
< threadsafe = True
After some further testing, it seems that it didn't work right at all. It continued to die on looking for libmysqlclient.so.15, and eventually after a few more edit/touch/compile/install cycles I found out about editing /etc/ld.so.conf and running ldconfig (as root of course), then it failed with (from the end):
File "/usr/htdocs/ubb/classes/database/mysql.py", line 4, in
import MySQLdb
File "/usr/local/lib/python2.5/site-packages/MySQLdb/init.py", line 21, in
if version_info != _mysql.version_info:
AttributeError: 'module' object has no attribute 'version_info'
I tried commenting out lines 21-23 in the library file and that seems to work (for now).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
building '_mysql' extension
error: Python was built with Visual Studio version 7.1, and extensions need to be built with the same version of the compiler, but it isn't installed.
Whouldn't it better to put a working build available for Python 2.5 users?
Thanks a lot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you guys are having trouble compiling and actually want help, it would be a good idea to state what version you are compiling. If you aren't trying 1.2.2b2, you should be. If you are trying anything older than that with Python 2.5 or Windows, I don't want to hear about it; you're wasting your time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, I tried to build MySQLdb 1.2.2b2 with Python 2.5 and Visual Studio 2005 C++ Express Edition.
This is what I get:
D:\TempProgs\MySQL-python-1.2.2b2>python setup.py build
running build
running build_py
creating build
creating build\lib.win32-2.5
copying _mysql_exceptions.py -> build\lib.win32-2.5
creating build\lib.win32-2.5\MySQLdb
copying MySQLdb__init.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-2.5\MySQLdb
creating build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants__init.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-2.5\MySQLdb\constants
running build_ext
building '_mysql' extension
error: Python was built with Visual Studio version 7.1, and extensions need to be built with the same version of the compiler, but it isn't installed.
I haven't VS 7.1 / 2003, so I can't do any more tries.
I hope that someone else with VS 7 can try to make the same and let the result available as an installer or archive with everything needed to let MySQLdb to work with Python 2.5 (which is a great improvement over 2.4, and has a lot of useful things built-in).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have VS2003/MySQL 5.0.27 and here's where I'm at:
C:\Documents and Settings\William Stearns\Desktop\MySQL-python-1.2.2b2>python setup.py build
running build
running build_py
copying MySQLdb\release.py -> build\lib.win32-2.5\MySQLdb
running build_ext
building '_mysql' extension
creating build\temp.win32-2.5
creating build\temp.win32-2.5\Release
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\Python25\include -IC:\Python25\PC /Tc_mysql.c /Fobu
d\temp.win32-2.5\Release_mysql.obj /Dversion_info=(1,2,2,'beta',2) /Dversion=1.2.2b2
_mysql.c
C:\Python25\include\config-win.h(178) : warning C4005: 'SIZEOF_OFF_T' : macro redefinition
c:\Python25\include\pyconfig.h(312) : see previous definition of 'SIZEOF_OFF_T'
C:\Python25\include\config-win.h(328) : warning C4005: 'HAVE_STDDEF_H' : macro redefinition
c:\Python25\include\pyconfig.h(605) : see previous definition of 'HAVE_STDDEF_H'
_mysql.c(1362) : warning C4018: '<' : signed/unsigned mismatch
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python25\libs /LIBPATH:C:\Python25\PCBuild /EXPOR
init_mysql build\temp.win32-2.5\Release_mysql.obj /OUT:build\lib.win32-2.5_mysql.pyd /IMPLIB:build\temp.win32-2.5\Release_mysql.lib
Creating library build\temp.win32-2.5\Release_mysql.lib and object build\temp.win32-2.5\Release_mysql.exp
_mysql.obj : error LNK2019: unresolved external symbol _mysql_error@4 referenced in function mysql_Exception
_mysql.obj : error LNK2019: unresolved external symbol _mysql_errno@4 referenced in function mysql_Exception
_mysql.obj : error LNK2019: unresolved external symbol _mysql_server_init@12 referenced in function mysql_server_init
_mysql.obj : error LNK2019: unresolved external symbol _mysql_server_end@0 referenced in function mysql_server_end
_mysql.obj : error LNK2019: unresolved external symbol _mysql_thread_safe@0 referenced in function mysql_thread_safe
_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_fields@4 referenced in function mysql_ResultObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_num_fields@4 referenced in function mysql_ResultObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_store_result@4 referenced in function mysql_ResultObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_use_result@4 referenced in function mysql_ResultObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function mysql_ConnectionObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_ssl_set@24 referenced in function mysql_ConnectionObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_options@12 referenced in function mysql_ConnectionObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_init@4 referenced in function mysql_ConnectionObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_close@4 referenced in function mysql_ConnectionObject_close
_mysql.obj : error LNK2019: unresolved external symbol _mysql_affected_rows@4 referenced in function mysql_ConnectionObject_affected_rows
_mysql.obj : error LNK2019: unresolved external symbol _mysql_debug@4 referenced in function mysql_debug
_mysql.obj : error LNK2019: unresolved external symbol _mysql_dump_debug_info@4 referenced in function mysql_ConnectionObject_dump_debug_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_autocommit@8 referenced in function mysql_ConnectionObject_autocommit
_mysql.obj : error LNK2019: unresolved external symbol _mysql_commit@4 referenced in function mysql_ConnectionObject_commit
_mysql.obj : error LNK2019: unresolved external symbol _mysql_rollback@4 referenced in function mysql_ConnectionObject_rollback
_mysql.obj : error LNK2019: unresolved external symbol _mysql_next_result@4 referenced in function mysql_ConnectionObject_next_result
_mysql.obj : error LNK2019: unresolved external symbol _mysql_set_server_option@8 referenced in function mysql_ConnectionObject_set_server_option
_mysql.obj : error LNK2019: unresolved external symbol _mysql_sqlstate@4 referenced in function mysql_ConnectionObject_sqlstate
_mysql.obj : error LNK2019: unresolved external symbol _mysql_warning_count@4 referenced in function mysql_ConnectionObject_warning_count
_mysql.obj : error LNK2019: unresolved external symbol _mysql_escape_string@12 referenced in function mysql_escape_string
_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_escape_string@16 referenced in function mysql_escape_string
_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_lengths@4 referenced in function mysql_row_to_tuple
_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_row@4 referenced in function mysqlfetch_row
_mysql.obj : error LNK2019: unresolved external symbol _mysql_num_rows@4 referenced in function mysql_ResultObject_fetch_row
_mysql.obj : error LNK2019: unresolved external symbol _mysql_change_user@16 referenced in function mysql_ConnectionObject_change_user
_mysql.obj : error LNK2019: unresolved external symbol _mysql_character_set_name@4 referenced in function mysql_ConnectionObject_character_set_name
_mysql.obj : error LNK2019: unresolved external symbol _mysql_set_character_set@8 referenced in function mysql_ConnectionObject_set_character_set
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_character_set_info@8 referenced in function mysql_ConnectionObject_get_character_set_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_client_info@0 referenced in function mysql_get_client_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_host_info@4 referenced in function mysql_ConnectionObject_get_host_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_proto_info@4 referenced in function mysql_ConnectionObject_get_proto_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_server_info@4 referenced in function mysql_ConnectionObject_get_server_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_info@4 referenced in function mysql_ConnectionObject_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_insert_id@4 referenced in function mysql_ConnectionObject_insert_id
_mysql.obj : error LNK2019: unresolved external symbol _mysql_kill@8 referenced in function mysql_ConnectionObject_kill
_mysql.obj : error LNK2019: unresolved external symbol _mysql_field_count@4 referenced in function mysql_ConnectionObject_field_count
_mysql.obj : error LNK2019: unresolved external symbol _mysql_ping@4 referenced in function mysql_ConnectionObject_ping
_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_query@12 referenced in function mysql_ConnectionObject_query
_mysql.obj : error LNK2019: unresolved external symbol _mysql_select_db@8 referenced in function mysql_ConnectionObject_select_db
_mysql.obj : error LNK2019: unresolved external symbol _mysql_shutdown@8 referenced in function mysql_ConnectionObject_shutdown
_mysql.obj : error LNK2019: unresolved external symbol _mysql_stat@4 referenced in function mysql_ConnectionObject_stat
_mysql.obj : error LNK2019: unresolved external symbol _mysql_thread_id@4 referenced in function mysql_ConnectionObject_thread_id
_mysql.obj : error LNK2019: unresolved external symbol _mysql_data_seek@12 referenced in function mysql_ResultObject_data_seek
_mysql.obj : error LNK2019: unresolved external symbol _mysql_row_seek@8 referenced in function mysql_ResultObject_row_seek
_mysql.obj : error LNK2019: unresolved external symbol _mysql_row_tell@4 referenced in function mysql_ResultObject_row_seek
_mysql.obj : error LNK2019: unresolved external symbol _mysql_free_result@4 referenced in function mysql_ResultObject_dealloc
build\lib.win32-2.5_mysql.pyd : fatal error LNK1120: 51 unresolved externals
error: command '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe"' failed with exit status 1120
C:\Documents and Settings\William Stearns\Desktop\MySQL-python-1.2.2b2>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah I figured it out and posted my build in the other topic.
Quote:
Got mine to finally compile and it appears to work with the instructions above. Here's a link to the distribution that I made. No warranty or guarantee that it will work for you. But until we get an official one, those of you without VS2003 can at least have something for 2.5. This was built on Windows XP SP2 with VS2003, MySQL 5.0.27, and Python 2.5.
Alright, I'm trying to build this for MacPython 2.5 and MySQL 5.0.27-max. I'll admit I'm not very experienced with Terminal and building stuff... but I switched to the directory and here's what I got (warning, it's a lot)
megaashura:~/Desktop/MySQL-python-1.2.2b2 dmashura$ python setup.py build
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
running build
running build_py
creating build
creating build/lib.macosx-10.3-fat-2.5
copying _mysql_exceptions.py -> build/lib.macosx-10.3-fat-2.5
creating build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/init.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
creating build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/init.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.3-fat-2.5
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-fat-2.5/_mysql.o -Dversion_info=(1,2,2,'beta',2) -Dversion=1.2.2b2
_mysql.c:35:23: error: my_config.h: No such file or directory
_mysql.c:40:19: error: mysql.h: No such file or directory
_mysql.c:41:26: error: mysqld_error.h: No such file or directory
_mysql.c:42:20: error: errmsg.h: No such file or directory
_mysql.c:78: error: parse error before 'MYSQL'
_mysql.c:78: warning: no semicolon at end of struct or union
_mysql.c:81: error: parse error before '}' token
_mysql.c:81: warning: data definition has no type or storage class
_mysql.c:92: error: parse error before 'MYSQL_RES'
_mysql.c:92: warning: no semicolon at end of struct or union
_mysql.c:96: error: parse error before '}' token
_mysql.c:96: warning: data definition has no type or storage class
_mysql.c:108: error: parse error before '' token
_mysql.c: In function '_mysql_Exception':
_mysql.c:122: error: 'c' undeclared (first use in this function)
_mysql.c:122: error: (Each undeclared identifier is reported only once
_mysql.c:122: error: for each function it appears in.)
_mysql.c:125: error: 'CR_MAX_ERROR' undeclared (first use in this function)
_mysql.c:133: error: 'CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function)
_mysql.c:134: error: 'ER_DB_CREATE_EXISTS' undeclared (first use in this function)
_mysql.c:135: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function)
_mysql.c:136: error: 'ER_PARSE_ERROR' undeclared (first use in this function)
_mysql.c:137: error: 'ER_NO_SUCH_TABLE' undeclared (first use in this function)
_mysql.c:138: error: 'ER_WRONG_DB_NAME' undeclared (first use in this function)
_mysql.c:139: error: 'ER_WRONG_TABLE_NAME' undeclared (first use in this function)
_mysql.c:140: error: 'ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function)
_mysql.c:141: error: 'ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function)
_mysql.c:142: error: 'ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function)
_mysql.c:143: error: 'ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function)
_mysql.c:172: error: 'ER_DUP_ENTRY' undeclared (first use in this function)
_mysql.c:215: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:360: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_Initialize':
_mysql.c:365: error: 'MYSQL_RES' undeclared (first use in this function)
_mysql.c:365: error: 'result' undeclared (first use in this function)
_mysql.c:366: error: 'conn' undeclared (first use in this function)
_mysql.c:370: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:370: error: 'fields' undeclared (first use in this function)
_mysql.c:372: error: 'args' undeclared (first use in this function)
_mysql.c:372: error: 'kwargs' undeclared (first use in this function)
_mysql.c:377: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:445: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_traverse':
_mysql.c:450: error: 'self' undeclared (first use in this function)
_mysql.c:451: error: 'arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:460: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_clear':
_mysql.c:462: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:471: error: parse 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:484: error: 'MYSQL_PORT' 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:549: error: 'MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
_mysql.c:553: error: 'MYSQL_OPT_COMPRESS' undeclared (first use in this function)
_mysql.c:554: error: 'CLIENT_COMPRESS' undeclared (first use in this function)
_mysql.c:557: error: 'MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function)
_mysql.c:559: error: 'MYSQL_INIT_COMMAND' undeclared (first use in this function)
_mysql.c:561: error: 'MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function)
_mysql.c:563: error: 'MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
_mysql.c:566: error: 'MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c: In function '_mysql_connect':
_mysql.c:653: error: 'c' undeclared (first use in this function)
_mysql.c:655: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:666: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_traverse':
_mysql.c:670: error: 'self' undeclared (first use in this function)
_mysql.c:671: error: 'arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:677: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_clear':
_mysql.c:679: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:689: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_close':
_mysql.c:692: error: 'args' undeclared (first use in this function)
_mysql.c:695: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:717: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_affected_rows':
_mysql.c:720: error: 'args' undeclared (first use in this function)
_mysql.c:721: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:751: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_dump_debug_info':
_mysql.c:755: error: 'args' undeclared (first use in this function)
_mysql.c:756: error: 'self' undeclared (first use in this function)
_mysql.c:35:23: error: my_config.h: No such file or directory
_mysql.c: At top level:
_mysql.c:770: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_autocommit':
_mysql.c:774: error: 'args' undeclared (first use in this function)_mysql.c:40:19:
error: mysql.h: No such file or directory
_mysql.c:782: error: 'self' undeclared (first use in this function)
_mysql.c:41:26: error: mysqld_error.h: No such file or directory
_mysql.c:42:20: error: errmsg.h: No such file or directory
_mysql.c: At top level:
_mysql.c:796: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_commit':
_mysql.c:78: error: parse error before 'MYSQL'_mysql.c:800: error: 'args' undeclared (first use in this function)
_mysql.c:78: warning: no semicolon at end of struct or union
_mysql.c:805: error: 'self' undeclared (first use in this function)
_mysql.c:81: error: parse error before '}' token
_mysql.c:81: warning: data definition has no type or storage class
_mysql.c:92: error: parse error before 'MYSQL_RES'_mysql.c: At top level:
_mysql.c:818: error: parse error before '*' token
_mysql.c:92: warning: no semicolon at end of struct or union
_mysql.c: In function '_mysql_ConnectionObject_rollback':
_mysql.c:96: error: parse error before '}' token
_mysql.c:96: warning: data definition has no type or storage class_mysql.c:822: error: 'args' undeclared (first use in this function)
_mysql.c:827: error: 'self' undeclared (first use in this function)
_mysql.c:108: error: parse error before '' token
_mysql.c: At top level:
_mysql.c:850: error: parse error before '' token
_mysql.c: In function '_mysql_Exception':_mysql.c: In function '_mysql_ConnectionObject_next_result':
_mysql.c:854: error: 'args' undeclared (first use in this function)
_mysql.c:122: error: 'c' undeclared (first use in this function)
_mysql.c:122: error: (Each undeclared identifier is reported only once
_mysql.c:122: error: for each function it appears in.)_mysql.c:862: error: 'self' undeclared (first use in this function)
_mysql.c:125: error: 'CR_MAX_ERROR' undeclared (first use in this function)
_mysql.c:133: error: 'CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:935: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_errno':_mysql.c:134: error: 'ER_DB_CREATE_EXISTS' undeclared (first use in this function)
_mysql.c:938: error: 'args' undeclared (first use in this function)
_mysql.c:135: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function)
_mysql.c:136: error: 'ER_PARSE_ERROR' undeclared (first use in this function)
_mysql.c:939: error: 'self' undeclared (first use in this function)_mysql.c:137: error: 'ER_NO_SUCH_TABLE' undeclared (first use in this function)
_mysql.c:138: error: 'ER_WRONG_DB_NAME' undeclared (first use in this function)
_mysql.c:139: error: 'ER_WRONG_TABLE_NAME' undeclared (first use in this function)
_mysql.c:140: error: 'ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function)
_mysql.c:141: error: 'ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function)
_mysql.c:142: error: 'ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:951: error: parse error before '*' token
_mysql.c:143: error: 'ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function)_mysql.c: In function '_mysql_ConnectionObject_error':
_mysql.c:954: error: 'args' undeclared (first use in this function)
_mysql.c:172: error: 'ER_DUP_ENTRY' undeclared (first use in this function)
_mysql.c:955: error: 'self' undeclared (first use in this function)
_mysql.c:956: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c:215: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:969: error: parse error before '' token
_mysql.c: In function '_mysql_escape_string':
_mysql.c:975: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1004: error: parse error before '' token
_mysql.c: In function '_mysql_string_literal':
_mysql.c:1010: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:360: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_Initialize':
_mysql.c:365: error: 'MYSQL_RES' undeclared (first use in this function)
_mysql.c:365: error: 'result' undeclared (first use in this function)
_mysql.c:366: error: 'conn' undeclared (first use in this function)
_mysql.c:370: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:370: error: 'fields' undeclared (first use in this function)
_mysql.c:372: error: 'args' undeclared (first use in this function)
_mysql.c:372: error: 'kwargs' undeclared (first use in this function)
_mysql.c:377: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_escape':
_mysql.c:1087: error: parse error before ')' token
_mysql.c: In function '_mysql_escape_dict':
_mysql.c:1144: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:445: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_traverse':
_mysql.c:450: error: 'self' undeclared (first use in this function)
_mysql.c:451: error: 'arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:460: error: parse error before '' token
_mysql.c: At top level:
_mysql.c: In function '_mysql_ResultObject_clear':
_mysql.c:462: error: 'self' undeclared (first use in this function)_mysql.c:1163: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_describe':
_mysql.c:1167: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1167: error: 'fields' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1169: error: 'args' undeclared (first use in this function)_mysql.c:471: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_Initialize':
_mysql.c:475: error: 'MYSQL' undeclared (first use in this function)
_mysql.c:1170: error: parse error before ')' token
_mysql.c:1170: error: parse error before ')' token_mysql.c:475: error: 'conn' undeclared (first use in this function)
_mysql.c:1171: error: 'self' undeclared (first use in this function)
_mysql.c:484: error: 'MYSQL_PORT' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:500: error: 'self' undeclared (first use in this function)
_mysql.c:1199: error: parse error before '*' token
_mysql.c:503: error: 'args' undeclared (first use in this function)
_mysql.c:503: error: 'kwargs' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_field_flags':
_mysql.c:1203: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1203: error: 'fields' undeclared (first use in this function)
_mysql.c:1205: error: 'args' undeclared (first use in this function)
_mysql.c:549: error: 'MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)_mysql.c:1206: error: parse error before ')' token
_mysql.c:553: error: 'MYSQL_OPT_COMPRESS' undeclared (first use in this function)_mysql.c:1206: error: parse error before ')' token
_mysql.c:1207: error: 'self' undeclared (first use in this function)
_mysql.c:554: error: 'CLIENT_COMPRESS' undeclared (first use in this function)
_mysql.c:557: error: 'MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function)
_mysql.c:559: error: 'MYSQL_INIT_COMMAND' undeclared (first use in this function)
_mysql.c:561: error: 'MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function)
_mysql.c:563: error: 'MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
_mysql.c:566: error: 'MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c: In function '_mysql_connect':
_mysql.c:653: error: 'c' undeclared (first use in this function)
_mysql.c:655: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:666: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_traverse':
_mysql.c:670: error: 'self' undeclared (first use in this function)
_mysql.c:671: error: 'arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:677: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_clear':
_mysql.c:679: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:689: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_close':
_mysql.c:692: error: 'args' undeclared (first use in this function)
_mysql.c:695: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:717: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_affected_rows':
_mysql.c:720: error: 'args' undeclared (first use in this function)
_mysql.c:721: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:751: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_dump_debug_info':
_mysql.c:755: error: 'args' undeclared (first use in this function)
_mysql.c:756: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:770: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_autocommit':
_mysql.c:774: error: 'args' undeclared (first use in this function)
_mysql.c:782: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:796: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_commit':
_mysql.c:800: error: 'args' undeclared (first use in this function)
_mysql.c:805: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:818: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_rollback':
_mysql.c:822: error: 'args' undeclared (first use in this function)
_mysql.c:827: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:850: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_next_result':
_mysql.c:854: error: 'args' undeclared (first use in this function)
_mysql.c:862: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:935: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_errno':
_mysql.c:938: error: 'args' undeclared (first use in this function)
_mysql.c:939: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:951: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_error':
_mysql.c:954: error: 'args' undeclared (first use in this function)
_mysql.c:955: error: 'self' undeclared (first use in this function)
_mysql.c:956: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:969: error: parse error before '' token
_mysql.c: In function '_mysql_escape_string':
_mysql.c:975: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1004: error: parse error before '' token
_mysql.c: In function '_mysql_string_literal':
_mysql.c:1010: error: 'args' undeclared (first use in this function)
_mysql.c: In function '_mysql_escape':
_mysql.c:1087: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:1248: error: parse error before '' token
_mysql.c: In function '_mysql_row_to_tuple':
_mysql.c:1255: error: 'self' undeclared (first use in this function)
_mysql.c:1257: warning: assignment makes pointer from integer without a cast
_mysql.c:1261: error: 'row' undeclared (first use in this function)
_mysql.c: In function '_mysql_escape_dict':
_mysql.c:1144: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:1273: error: parse error before '*' token
_mysql.c: In function '_mysql_row_to_dict':
_mysql.c:1279: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1279: error: 'fields' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c:1281: error: 'self' undeclared (first use in this function)
_mysql.c:1163: error: parse error before '*' token
_mysql.c:1283: warning: assignment makes pointer from integer without a cast
_mysql.c: In function '_mysql_ResultObject_describe':
_mysql.c:1167: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1167: error: 'fields' undeclared (first use in this function)_mysql.c:1288: error: 'row' undeclared (first use in this function)
_mysql.c:1169: error: 'args' undeclared (first use in this function)
_mysql.c:1170: error: parse error before ')' token
_mysql.c:1170: error: parse error before ')' token
_mysql.c:1171: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1312: error: parse error before '' token
_mysql.c: At top level:_mysql.c: In function '_mysql_row_to_dict_old':
_mysql.c:1199: error: parse error before '' token
_mysql.c:1318: error: 'MYSQL_FIELD' undeclared (first use in this function)_mysql.c: In function '_mysql_ResultObject_field_flags':
_mysql.c:1203: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1318: error: 'fields' undeclared (first use in this function)
_mysql.c:1203: error: 'fields' undeclared (first use in this function)
_mysql.c:1320: error: 'self' undeclared (first use in this function)
_mysql.c:1205: error: 'args' undeclared (first use in this function)
_mysql.c:1322: warning: assignment makes pointer from integer without a cast
_mysql.c:1327: error: 'row' undeclared (first use in this function)_mysql.c:1206: error: parse error before ')' token
_mysql.c:1206: error: parse error before ')' token
_mysql.c:1207: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1349: error: parse error before '' token
_mysql.c: At top level:_mysql.c:1353: error: parse error before '' token
_mysql.c: In function '_mysql__fetch_row':_mysql.c:1248: error: parse error before '*' token
_mysql.c:1360: error: 'MYSQL_ROW' undeclared (first use in this function)_mysql.c: In function '_mysql_row_to_tuple':
_mysql.c:1255: error: 'self' undeclared (first use in this function)
_mysql.c:1360: error: parse error before 'row'
_mysql.c:1362: error: 'skiprows' undeclared (first use in this function)_mysql.c:1257: warning: assignment makes pointer from integer without a cast
_mysql.c:1362: error: 'maxrows' undeclared (first use in this function)_mysql.c:1261: error: 'row' undeclared (first use in this function)
_mysql.c:1364: error: 'self' undeclared (first use in this function)
_mysql.c:1365: error: 'row' undeclared (first use in this function)
_mysql.c:1371: error: parse error before ')' token
_mysql.c:1372: error: parse error before ')' token_mysql.c: At top level:
_mysql.c:1273: error: parse error before '*' token
_mysql.c:1376: error: 'r' undeclared (first use in this function)
_mysql.c: In function '_mysql_row_to_dict':
_mysql.c:1279: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1379: warning: assignment makes pointer from integer without a cast_mysql.c:1279: error: 'fields' undeclared (first use in this function)
_mysql.c:1281: error: 'self' undeclared (first use in this function)
_mysql.c:1283: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:_mysql.c:1288: error: 'row' undeclared (first use in this function)
_mysql.c:1399: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_fetch_row':
_mysql.c:1403: error: parse error before '' token
_mysql.c:1415: error: 'args' undeclared (first use in this function)
_mysql.c:1415: error: 'kwargs' undeclared (first use in this function)
_mysql.c:1418: error: parse error before ')' token
_mysql.c:1418: error: parse error before ')' token
_mysql.c:1426: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1506: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_character_set_name':
_mysql.c:1510: error: 'args' undeclared (first use in this function)
_mysql.c:1511: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_get_client_info':
_mysql.c:1602: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1612: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_get_host_info':
_mysql.c:1615: error: 'args' undeclared (first use in this function)
_mysql.c:1616: error: 'self' undeclared (first use in this function)
_mysql.c:1617: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1627: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_get_proto_info':
_mysql.c:1630: error: 'args' undeclared (first use in this function)
_mysql.c:1631: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1642: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_get_server_info':
_mysql.c:1645: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1312: error: parse error before '*' token
_mysql.c:1646: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_row_to_dict_old':
_mysql.c:1647: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c:1318: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1318: error: 'fields' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1320: error: 'self' undeclared (first use in this function)
_mysql.c:1658: error: parse error before '' token
_mysql.c:1322: warning: assignment makes pointer from integer without a cast
_mysql.c:1327: error: 'row' undeclared (first use in this function)
_mysql.c: In function '_mysql_ConnectionObject_info':
_mysql.c:1662: error: 'args' undeclared (first use in this function)
_mysql.c:1663: error: 'self' undeclared (first use in this function)
_mysql.c:1664: warning: assignment makes pointer from integer without a cast_mysql.c: At top level:
_mysql.c:1349: error: parse error before '' token
_mysql.c:1353: error: parse error before '*' token
_mysql.c: In function '_mysql__fetch_row':
_mysql.c:1360: error: 'MYSQL_ROW' undeclared (first use in this function)
_mysql.c:1360: error: parse error before 'row'_mysql.c: At top level:
_mysql.c:1362: error: 'skiprows' undeclared (first use in this function)
_mysql.c:1362: error: 'maxrows' undeclared (first use in this function)_mysql.c:1693: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_insert_id':
_mysql.c:1364: error: 'self' undeclared (first use in this function)
_mysql.c:1365: error: 'row' undeclared (first use in this function)_mysql.c:1696: error: 'my_ulonglong' undeclared (first use in this function)
_mysql.c:1696: error: parse error before 'r'
_mysql.c:1697: error: 'args' undeclared (first use in this function)
_mysql.c:1371: error: parse error before ')' token_mysql.c:1698: error: 'self' undeclared (first use in this function)
_mysql.c:1372: error: parse error before ')' token
_mysql.c:1376: error: 'r' undeclared (first use in this function)_mysql.c:1700: error: 'r' undeclared (first use in this function)
_mysql.c:1379: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1711: error: parse error before '' token
_mysql.c: At top level:_mysql.c: In function '_mysql_ConnectionObject_kill':
_mysql.c:1716: error: 'args' undeclared (first use in this function)
_mysql.c:1399: error: parse error before '' token
_mysql.c:1717: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_fetch_row':
_mysql.c:1403: error: parse error before '*' token
_mysql.c: At top level:_mysql.c:1415: error: 'args' undeclared (first use in this function)
_mysql.c:1415: error: 'kwargs' undeclared (first use in this function)
_mysql.c:1734: error: parse error before '*' token
_mysql.c:1418: error: parse error before ')' token
_mysql.c:1418: error: parse error before ')' token
_mysql.c: In function '_mysql_ConnectionObject_field_count':
_mysql.c:1737: error: 'args' undeclared (first use in this function)
_mysql.c:1738: error: 'self' undeclared (first use in this function)_mysql.c:1426: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1751: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_num_fields':
_mysql.c:1754: error: 'args' undeclared (first use in this function)
_mysql.c:1755: error: parse error before ')' token
_mysql.c:1755: error: parse error before ')' token
_mysql.c:1756: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1767: error: parse error before '' token
_mysql.c: At top level:
_mysql.c: In function '_mysql_ResultObject_num_rows':
_mysql.c:1770: error: 'args' undeclared (first use in this function)_mysql.c:1506: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_character_set_name':
_mysql.c:1771: error: parse error before ')' token
_mysql.c:1771: error: parse error before ')' token_mysql.c:1510: error: 'args' undeclared (first use in this function)
_mysql.c:1511: error: 'self' undeclared (first use in this function)_mysql.c:1772: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1789: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_ping':
_mysql.c:1793: error: 'args' undeclared (first use in this function)
_mysql.c: In function '_mysql_get_client_info':
_mysql.c:1794: error: 'self' undeclared (first use in this function)_mysql.c:1602: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1612: error: parse error before '' token
_mysql.c: At top level:_mysql.c: In function '_mysql_ConnectionObject_get_host_info':
_mysql.c:1811: error: parse error before '' token
_mysql.c:1615: error: 'args' undeclared (first use in this function)_mysql.c: In function '_mysql_ConnectionObject_query':
_mysql.c:1816: error: 'args' undeclared (first use in this function)_mysql.c:1616: error: 'self' undeclared (first use in this function)
_mysql.c:1617: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c:1817: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1627: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_get_proto_info':
_mysql.c: At top level:_mysql.c:1630: error: 'args' undeclared (first use in this function)
_mysql.c:1631: error: 'self' undeclared (first use in this function)_mysql.c:1841: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_select_db':
_mysql.c:1846: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1642: error: parse error before '*' token_mysql.c:1847: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ConnectionObject_get_server_info':
_mysql.c:1645: error: 'args' undeclared (first use in this function)
_mysql.c:1646: error: 'self' undeclared (first use in this function)
_mysql.c:1647: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast_mysql.c: At top level:
_mysql.c:1863: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_shutdown':
_mysql.c: At top level:_mysql.c:1867: error: 'args' undeclared (first use in this function)
_mysql.c:1658: error: parse error before '*' token_mysql.c:1868: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ConnectionObject_info':
_mysql.c:1662: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c:1663: error: 'self' undeclared (first use in this function)
_mysql.c:1890: error: parse error before '*' token
_mysql.c:1664: warning: assignment makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_stat':
_mysql.c:1894: error: 'args' undeclared (first use in this function)
_mysql.c:1895: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1693: error: parse error before '*' token_mysql.c:1897: warning: assignment makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_insert_id':
_mysql.c:1696: error: 'my_ulonglong' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1696: error: parse error before 'r'
_mysql.c:1697: error: 'args' undeclared (first use in this function)
_mysql.c:1698: error: 'self' undeclared (first use in this function)
_mysql.c:1700: error: 'r' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1711: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_kill':
_mysql.c:1716: error: 'args' undeclared (first use in this function)
_mysql.c:1717: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1734: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_field_count':
_mysql.c:1737: error: 'args' undeclared (first use in this function)
_mysql.c:1738: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1911: error: parse error before '' token_mysql.c:1751: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_num_fields':
_mysql.c: In function '_mysql_ConnectionObject_store_result':
_mysql.c:1754: error: 'args' undeclared (first use in this function)
_mysql.c:1915: error: 'r' undeclared (first use in this function)
_mysql.c:1755: error: parse error before ')' token_mysql.c:1917: error: 'args' undeclared (first use in this function)
_mysql.c:1755: error: parse error before ')' token_mysql.c:1918: error: 'self' undeclared (first use in this function)
_mysql.c:1756: error: 'self' undeclared (first use in this function)
_mysql.c:1923: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:1767: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_num_rows':
_mysql.c:1770: error: 'args' undeclared (first use in this function)
_mysql.c:1771: error: parse error before ')' token
_mysql.c:1771: error: parse error before ')' token
_mysql.c:1772: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c: At top level:
_mysql.c:1789: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_ping':
_mysql.c:1793: error: 'args' undeclared (first use in this function)
_mysql.c:1794: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1811: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_query':
_mysql.c:1816: error: 'args' undeclared (first use in this function)
_mysql.c:1817: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1841: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_select_db':
_mysql.c:1846: error: 'args' undeclared (first use in this function)
_mysql.c:1847: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1863: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_shutdown':
_mysql.c:1867: error: 'args' undeclared (first use in this function)
_mysql.c:1868: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1890: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_stat':
_mysql.c:1894: error: 'args' undeclared (first use in this function)
_mysql.c:1895: error: 'self' undeclared (first use in this function)
_mysql.c:1897: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1911: error: parse error before '*' token
_mysql.c:1952: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_store_result':
_mysql.c: In function '_mysql_ConnectionObject_thread_id':_mysql.c:1915: error: 'r' undeclared (first use in this function)
_mysql.c:1917: error: 'args' undeclared (first use in this function)
_mysql.c:1956: error: 'args' undeclared (first use in this function)
_mysql.c:1918: error: 'self' undeclared (first use in this function)
_mysql.c:1957: error: 'self' undeclared (first use in this function)_mysql.c:1923: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:1972: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_use_result':
_mysql.c:1976: error: 'r' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1978: error: 'args' undeclared (first use in this function)
_mysql.c:1952: error: parse error before '*' token
_mysql.c:1979: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ConnectionObject_thread_id':
_mysql.c:1984: error: parse error before ')' token_mysql.c:1956: error: 'args' undeclared (first use in this function)
_mysql.c:1957: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1972: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_use_result':
_mysql.c:1976: error: 'r' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2002: error: parse error before '' token
_mysql.c:1978: error: 'args' undeclared (first use in this function)
_mysql.c:1979: error: 'self' undeclared (first use in this function)_mysql.c: In function '_mysql_ConnectionObject_dealloc':
_mysql.c:2006: error: 'self' undeclared (first use in this function)
_mysql.c:1984: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:2016: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_repr':
_mysql.c:2019: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c: At top level:
_mysql.c:2002: error: parse error before '' token
_mysql.c:2033: error: parse error before '*' token_mysql.c: In function '_mysql_ConnectionObject_dealloc':
_mysql.c:2006: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_data_seek':
_mysql.c:2037: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2038: error: parse error before ')' token_mysql.c:2016: error: parse error before '*' token
_mysql.c:2038: error: parse error before ')' token_mysql.c: In function '_mysql_ConnectionObject_repr':
_mysql.c:2019: error: 'self' undeclared (first use in this function)
_mysql.c:2039: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c: At top level:_mysql.c:2048: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_row_seek':_mysql.c:2033: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_data_seek':
_mysql.c:2037: error: 'args' undeclared (first use in this function)_mysql.c:2052: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:2052: error: parse error before 'r'
_mysql.c:2053: error: 'args' undeclared (first use in this function)_mysql.c:2038: error: parse error before ')' token
_mysql.c:2038: error: parse error before ')' token
_mysql.c:2039: error: 'self' undeclared (first use in this function)
_mysql.c:2054: error: parse error before ')' token
_mysql.c:2054: error: parse error before ')' token
_mysql.c:2055: error: 'self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2048: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_row_seek':
_mysql.c:2052: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)_mysql.c:2060: error: 'r' undeclared (first use in this function)
_mysql.c:2052: error: parse error before 'r'
_mysql.c:2053: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c:2054: error: parse error before ')' token
_mysql.c:2070: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_row_tell':_mysql.c:2054: error: parse error before ')' token
_mysql.c:2073: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:2055: error: 'self' undeclared (first use in this function)
_mysql.c:2073: error: parse error before 'r'
_mysql.c:2074: error: 'args' undeclared (first use in this function)_mysql.c:2060: error: 'r' undeclared (first use in this function)
_mysql.c:2075: error: parse error before ')' token
_mysql.c:2075: error: parse error before ')' token_mysql.c: At top level:
_mysql.c:2070: error: parse error before '*' token
_mysql.c:2076: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_row_tell':_mysql.c:2081: error: 'r' undeclared (first use in this function)
_mysql.c:2073: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:2073: error: parse error before 'r'_mysql.c: At top level:
_mysql.c:2087: error: parse error before '*' token
_mysql.c:2074: error: 'args' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_dealloc':_mysql.c:2075: error: parse error before ')' token
_mysql.c:2075: error: parse error before ')' token
_mysql.c:2076: error: 'self' undeclared (first use in this function)_mysql.c:2089: error: 'self' undeclared (first use in this function)
_mysql.c:2081: error: 'r' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2097: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_repr':
_mysql.c:2101: error: 'self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2087: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_dealloc':
_mysql.c:2089: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2097: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_repr':
_mysql.c:2101: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2321: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2328: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2335: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2342: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2349: error: parse error before '_mysql_ConnectionObject'
_mysql.c: At top level:_mysql.c:2412: error: parse error before '_mysql_ResultObject'
_mysql.c:2424: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_getattr':
_mysql.c:2429: error: 'self' undeclared (first use in this function)
_mysql.c:2429: error: 'name' undeclared (first use in this function)
_mysql.c:2429: warning: passing argument 2 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2429: warning: passing argument 3 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2433: warning: passing argument 1 of 'strcmp' from incompatible pointer type
_mysql.c:2434: error: 'struct PyMemberDef' has no member named 'open'
_mysql.c:2441: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2442: warning: passing argument 1 of 'PyMember_GetOne' from incompatible pointer type
_mysql.c:2444: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2452: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_getattr':
_mysql.c:2457: error: 'self' undeclared (first use in this function)
_mysql.c:2457: error: 'name' undeclared (first use in this function)
_mysql.c:2457: warning: passing argument 2 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2457: warning: passing argument 3 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2467: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2468: warning: passing argument 1 of 'PyMember_GetOne' from incompatible pointer type
_mysql.c:2470: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2478: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_setattr':
_mysql.c:2482: error: 'v' undeclared (first use in this function)
_mysql.c:2493: error: 'name' undeclared (first use in this function)
_mysql.c:2493: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2494: error: 'self' undeclared (first use in this function)
_mysql.c:2494: warning: passing argument 1 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2494: warning: passing argument 3 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2496: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2503: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_setattr':
_mysql.c:2507: error: 'v' undeclared (first use in this function)
_mysql.c:2518: error: 'name' undeclared (first use in this function)
_mysql.c:2518: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2519: error: 'self' undeclared (first use in this function)
_mysql.c:2519: warning: passing argument 1 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2519: warning: passing argument 3 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2521: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c:2321: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2328: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2335: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2342: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2349: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2412: error: parse error before '_mysql_ResultObject'
_mysql.c:2424: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_getattr':
_mysql.c:2429: error: 'self' undeclared (first use in this function)
_mysql.c:2429: error: 'name' undeclared (first use in this function)
_mysql.c:2429: warning: passing argument 2 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2429: warning: passing argument 3 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2433: warning: passing argument 1 of 'strcmp' from incompatible pointer type
_mysql.c:2434: error: 'struct PyMemberDef' has no member named 'open'
_mysql.c:2441: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2442: warning: passing argument 1 of 'PyMember_GetOne' from incompatible pointer type
_mysql.c:2444: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2452: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_getattr':
_mysql.c:2457: error: 'self' undeclared (first use in this function)
_mysql.c:2457: error: 'name' undeclared (first use in this function)
_mysql.c:2457: warning: passing argument 2 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2457: warning: passing argument 3 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2467: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2468: warning: passing argument 1 of 'PyMember_GetOne' from incompatible pointer type
_mysql.c:2470: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2478: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_setattr':
_mysql.c:2482: error: 'v' undeclared (first use in this function)
_mysql.c:2493: error: 'name' undeclared (first use in this function)
_mysql.c:2493: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2494: error: 'self' undeclared (first use in this function)
_mysql.c:2494: warning: passing argument 1 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2494: warning: passing argument 3 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2496: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2503: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_setattr':
_mysql.c:2507: error: 'v' undeclared (first use in this function)
_mysql.c:2518: error: 'name' undeclared (first use in this function)
_mysql.c:2518: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2519: error: 'self' undeclared (first use in this function)
_mysql.c:2519: warning: passing argument 1 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2519: warning: passing argument 3 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2521: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
lipo: can't figure out the architecture type of: /var/tmp//ccgIWxrK.out
error: command 'gcc' failed with exit status 1
SO, does anybody have ANY idea what to do? X_x;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've googled this error and have found discussions (but no solutions) regarding 64 vs 32 bit. I'm trying this on OS X 10.4.8 on the 64-bit Intel chip (macbook pro). I installed the latest version of Xcode. Any ideas on what might be going wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Does this version support Python 2.5 ?
If yes, how can you install it ?
If it doesn't, are there any plans to have a Python 2.5 version anytime soon ?
Regards
Xtian
on my Windows XP with an old MySQL (4.1) and Python 2.5, I had to copy libmysql.dll from C:\Programs\Python25 to C:\Windows\System32 after installing the Jeong-Min Lee (falsetru) build to resolve the error on 'import _mysql'. After that all worked fine.
Just for reference the error on import was:
Traceback (most recent call last):
File "C:\Applicazioni\Python\VirtueNando\genera_prod_csv.py", line 1, in <module>
import MySQLdb
File "c:\Programs\Python25\lib\site-packages\MySQLdb__init__.py", line 19, in <module>
import _mysql
ImportError: DLL load failed.[italian localized message]
sayonara
Francesco Gigli & Andrea Papotti
I haven't tested on Python-2.5 yet, but there's no obvious reason why it shouldn't work. All you should have to do is a normal setup.py build.
1.2.1_p1 seems to work fine with Python 2.5. I have a version I built (for win32) using Mysql 5.0.24 and python 2.5. I can mail it to you if you like it is about 850kb.
It has not been tested with ssl or compression.
I would very much like to try that version out and I'd appreciate if you'd send it to me.
Thanks in advance!
Hi Kael,
Can I please have that mysqldb build for Python 2.5?
Thanks,
Amir
Kael - Would you please send the Windows Python2.5 installer for MySQLdb to me, too?
Thanks,
Bob
Any chance you could email me this version?
Many thanks in advance,
Tim
Hi Kael,
I have not been able to build a version to work with Python 2.5. I would appreciate it if you would email me the one you built or provide some direction on how you build yours.
Thanks in advance.
Hi, Kael,
I would like to try the version that you built for Python 2.5 and MySQL 5.0.25; could you please send it to me?
I thank you in advance for the attention given to this message.
Hello Kael,
could you send it and to me
Thanks,
Eugene.
Please some one who can mail me too ?
I would like try this vertion too
can you send it me ?
thank
I've had problems compiling for Python 2.5 and MySQL 5.0.27. I added all the include and library dirs I could find (from compiled MySQL and Python) to the extra_compile_args in site.cfg, but it still couldn't find 2 variables (version_info and version) so I commented out the relevant lines from _mysql.c (2804-2809 or something like that... within the last 100 lines anyways), and it compiled and installed just fine, but then it died looking for a file "libmysqlclient.so.15" which was living in /usr/local/lib/mysql . I just added the file to extra_objects in site.cfg and now it works! Just hope I didn't mess anything up... here's the diff between a freshly unpacked tarball and my mysql-python directory, for those who are trying to compile it themselves:
Only in mysql-python: build
diff -r mysql-python-clean/_mysql.c mysql-python/_mysql.c
2803c2803
< if (PyDict_SetItemString(dict, "version_info",
> /* if (PyDict_SetItemString(dict, "version_info",
2809c2809
< goto error;
> goto error;*/
Only in mysql-python/MySQLdb: init.pyc
Only in mysql-python/MySQLdb: release.pyc
diff -r mysql-python-clean/site.cfg mysql-python/site.cfg
9c9,10
< threadsafe = True
> #threadsafe = True
> threadsafe = False
18c19
< #mysql_root: /usr/local/mysql
> mysql_root: /usr/local/mysql
27,28c28,29
< #extra_compile_args:
< #extra_objects:
> extra_compile_args: -I/home/manny/t/python/Python-2.5/Include -L/home/manny/t/python/Python-2.5/Lib -I/home/manny/t/mysql/src/mysql-5.0.27/include -L/home/manny/t/mysql/src/mysql-5.0.27/libmysql -L/home/manny/t/mysql/src/mysql-5.0.27/libmysqld -L/home/manny/t/mysql/src/mysql-5.0.27/libmysql_r -L/usr/lib/mysql -L/usr/local/lib/mysql -lmysqlclient
> extra_objects: /usr/local/lib/mysql/libmysqlclient.so.15
Only in mysql-python: site.cfg.old
After some further testing, it seems that it didn't work right at all. It continued to die on looking for libmysqlclient.so.15, and eventually after a few more edit/touch/compile/install cycles I found out about editing /etc/ld.so.conf and running ldconfig (as root of course), then it failed with (from the end):
File "/usr/htdocs/ubb/classes/database/mysql.py", line 4, in
import MySQLdb
File "/usr/local/lib/python2.5/site-packages/MySQLdb/init.py", line 21, in
if version_info != _mysql.version_info:
AttributeError: 'module' object has no attribute 'version_info'
I tried commenting out lines 21-23 in the library file and that seems to work (for now).
I tried to compile with
setup.py build
but I got this:
building '_mysql' extension
error: Python was built with Visual Studio version 7.1, and extensions need to be built with the same version of the compiler, but it isn't installed.
Whouldn't it better to put a working build available for Python 2.5 users?
Thanks a lot
If you guys are having trouble compiling and actually want help, it would be a good idea to state what version you are compiling. If you aren't trying 1.2.2b2, you should be. If you are trying anything older than that with Python 2.5 or Windows, I don't want to hear about it; you're wasting your time.
OK, I tried to build MySQLdb 1.2.2b2 with Python 2.5 and Visual Studio 2005 C++ Express Edition.
This is what I get:
D:\TempProgs\MySQL-python-1.2.2b2>python setup.py build
running build
running build_py
creating build
creating build\lib.win32-2.5
copying _mysql_exceptions.py -> build\lib.win32-2.5
creating build\lib.win32-2.5\MySQLdb
copying MySQLdb__init.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-2.5\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-2.5\MySQLdb
creating build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants__init.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-2.5\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-2.5\MySQLdb\constants
running build_ext
building '_mysql' extension
error: Python was built with Visual Studio version 7.1, and extensions need to be built with the same version of the compiler, but it isn't installed.
I haven't VS 7.1 / 2003, so I can't do any more tries.
I hope that someone else with VS 7 can try to make the same and let the result available as an installer or archive with everything needed to let MySQLdb to work with Python 2.5 (which is a great improvement over 2.4, and has a lot of useful things built-in).
I have VS2003/MySQL 5.0.27 and here's where I'm at:
C:\Documents and Settings\William Stearns\Desktop\MySQL-python-1.2.2b2>python setup.py build
running build
running build_py
copying MySQLdb\release.py -> build\lib.win32-2.5\MySQLdb
running build_ext
building '_mysql' extension
creating build\temp.win32-2.5
creating build\temp.win32-2.5\Release
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\Python25\include -IC:\Python25\PC /Tc_mysql.c /Fobu
d\temp.win32-2.5\Release_mysql.obj /Dversion_info=(1,2,2,'beta',2) /Dversion=1.2.2b2
_mysql.c
C:\Python25\include\config-win.h(178) : warning C4005: 'SIZEOF_OFF_T' : macro redefinition
c:\Python25\include\pyconfig.h(312) : see previous definition of 'SIZEOF_OFF_T'
C:\Python25\include\config-win.h(328) : warning C4005: 'HAVE_STDDEF_H' : macro redefinition
c:\Python25\include\pyconfig.h(605) : see previous definition of 'HAVE_STDDEF_H'
_mysql.c(1362) : warning C4018: '<' : signed/unsigned mismatch
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python25\libs /LIBPATH:C:\Python25\PCBuild /EXPOR
init_mysql build\temp.win32-2.5\Release_mysql.obj /OUT:build\lib.win32-2.5_mysql.pyd /IMPLIB:build\temp.win32-2.5\Release_mysql.lib
Creating library build\temp.win32-2.5\Release_mysql.lib and object build\temp.win32-2.5\Release_mysql.exp
_mysql.obj : error LNK2019: unresolved external symbol _mysql_error@4 referenced in function mysql_Exception
_mysql.obj : error LNK2019: unresolved external symbol _mysql_errno@4 referenced in function mysql_Exception
_mysql.obj : error LNK2019: unresolved external symbol _mysql_server_init@12 referenced in function mysql_server_init
_mysql.obj : error LNK2019: unresolved external symbol _mysql_server_end@0 referenced in function mysql_server_end
_mysql.obj : error LNK2019: unresolved external symbol _mysql_thread_safe@0 referenced in function mysql_thread_safe
_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_fields@4 referenced in function mysql_ResultObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_num_fields@4 referenced in function mysql_ResultObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_store_result@4 referenced in function mysql_ResultObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_use_result@4 referenced in function mysql_ResultObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function mysql_ConnectionObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_ssl_set@24 referenced in function mysql_ConnectionObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_options@12 referenced in function mysql_ConnectionObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_init@4 referenced in function mysql_ConnectionObject_Initialize
_mysql.obj : error LNK2019: unresolved external symbol _mysql_close@4 referenced in function mysql_ConnectionObject_close
_mysql.obj : error LNK2019: unresolved external symbol _mysql_affected_rows@4 referenced in function mysql_ConnectionObject_affected_rows
_mysql.obj : error LNK2019: unresolved external symbol _mysql_debug@4 referenced in function mysql_debug
_mysql.obj : error LNK2019: unresolved external symbol _mysql_dump_debug_info@4 referenced in function mysql_ConnectionObject_dump_debug_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_autocommit@8 referenced in function mysql_ConnectionObject_autocommit
_mysql.obj : error LNK2019: unresolved external symbol _mysql_commit@4 referenced in function mysql_ConnectionObject_commit
_mysql.obj : error LNK2019: unresolved external symbol _mysql_rollback@4 referenced in function mysql_ConnectionObject_rollback
_mysql.obj : error LNK2019: unresolved external symbol _mysql_next_result@4 referenced in function mysql_ConnectionObject_next_result
_mysql.obj : error LNK2019: unresolved external symbol _mysql_set_server_option@8 referenced in function mysql_ConnectionObject_set_server_option
_mysql.obj : error LNK2019: unresolved external symbol _mysql_sqlstate@4 referenced in function mysql_ConnectionObject_sqlstate
_mysql.obj : error LNK2019: unresolved external symbol _mysql_warning_count@4 referenced in function mysql_ConnectionObject_warning_count
_mysql.obj : error LNK2019: unresolved external symbol _mysql_escape_string@12 referenced in function mysql_escape_string
_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_escape_string@16 referenced in function mysql_escape_string
_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_lengths@4 referenced in function mysql_row_to_tuple
_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_row@4 referenced in function mysqlfetch_row
_mysql.obj : error LNK2019: unresolved external symbol _mysql_num_rows@4 referenced in function mysql_ResultObject_fetch_row
_mysql.obj : error LNK2019: unresolved external symbol _mysql_change_user@16 referenced in function mysql_ConnectionObject_change_user
_mysql.obj : error LNK2019: unresolved external symbol _mysql_character_set_name@4 referenced in function mysql_ConnectionObject_character_set_name
_mysql.obj : error LNK2019: unresolved external symbol _mysql_set_character_set@8 referenced in function mysql_ConnectionObject_set_character_set
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_character_set_info@8 referenced in function mysql_ConnectionObject_get_character_set_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_client_info@0 referenced in function mysql_get_client_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_host_info@4 referenced in function mysql_ConnectionObject_get_host_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_proto_info@4 referenced in function mysql_ConnectionObject_get_proto_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_server_info@4 referenced in function mysql_ConnectionObject_get_server_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_info@4 referenced in function mysql_ConnectionObject_info
_mysql.obj : error LNK2019: unresolved external symbol _mysql_insert_id@4 referenced in function mysql_ConnectionObject_insert_id
_mysql.obj : error LNK2019: unresolved external symbol _mysql_kill@8 referenced in function mysql_ConnectionObject_kill
_mysql.obj : error LNK2019: unresolved external symbol _mysql_field_count@4 referenced in function mysql_ConnectionObject_field_count
_mysql.obj : error LNK2019: unresolved external symbol _mysql_ping@4 referenced in function mysql_ConnectionObject_ping
_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_query@12 referenced in function mysql_ConnectionObject_query
_mysql.obj : error LNK2019: unresolved external symbol _mysql_select_db@8 referenced in function mysql_ConnectionObject_select_db
_mysql.obj : error LNK2019: unresolved external symbol _mysql_shutdown@8 referenced in function mysql_ConnectionObject_shutdown
_mysql.obj : error LNK2019: unresolved external symbol _mysql_stat@4 referenced in function mysql_ConnectionObject_stat
_mysql.obj : error LNK2019: unresolved external symbol _mysql_thread_id@4 referenced in function mysql_ConnectionObject_thread_id
_mysql.obj : error LNK2019: unresolved external symbol _mysql_data_seek@12 referenced in function mysql_ResultObject_data_seek
_mysql.obj : error LNK2019: unresolved external symbol _mysql_row_seek@8 referenced in function mysql_ResultObject_row_seek
_mysql.obj : error LNK2019: unresolved external symbol _mysql_row_tell@4 referenced in function mysql_ResultObject_row_seek
_mysql.obj : error LNK2019: unresolved external symbol _mysql_free_result@4 referenced in function mysql_ResultObject_dealloc
build\lib.win32-2.5_mysql.pyd : fatal error LNK1120: 51 unresolved externals
error: command '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe"' failed with exit status 1120
C:\Documents and Settings\William Stearns\Desktop\MySQL-python-1.2.2b2>
You still have to edit site.cfg. The link command is missing all sorts of libraries.
You could also try the SVN trunk version; there are some updates for Windows to get some locations out of the registry.
Yeah I figured it out and posted my build in the other topic.
Quote:
Got mine to finally compile and it appears to work with the instructions above. Here's a link to the distribution that I made. No warranty or guarantee that it will work for you. But until we get an official one, those of you without VS2003 can at least have something for 2.5. This was built on Windows XP SP2 with VS2003, MySQL 5.0.27, and Python 2.5.
http://www.guildmanus.com/uploaded/MySQL-python.exe-1.2.2b2.win32-py2.5.exe
Alright, I'm trying to build this for MacPython 2.5 and MySQL 5.0.27-max. I'll admit I'm not very experienced with Terminal and building stuff... but I switched to the directory and here's what I got (warning, it's a lot)
megaashura:~/Desktop/MySQL-python-1.2.2b2 dmashura$ python setup.py build
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
running build
running build_py
creating build
creating build/lib.macosx-10.3-fat-2.5
copying _mysql_exceptions.py -> build/lib.macosx-10.3-fat-2.5
creating build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/init.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
creating build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/init.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.3-fat-2.5
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-fat-2.5/_mysql.o -Dversion_info=(1,2,2,'beta',2) -Dversion=1.2.2b2
_mysql.c:35:23: error: my_config.h: No such file or directory
_mysql.c:40:19: error: mysql.h: No such file or directory
_mysql.c:41:26: error: mysqld_error.h: No such file or directory
_mysql.c:42:20: error: errmsg.h: No such file or directory
_mysql.c:78: error: parse error before 'MYSQL'
_mysql.c:78: warning: no semicolon at end of struct or union
_mysql.c:81: error: parse error before '}' token
_mysql.c:81: warning: data definition has no type or storage class
_mysql.c:92: error: parse error before 'MYSQL_RES'
_mysql.c:92: warning: no semicolon at end of struct or union
_mysql.c:96: error: parse error before '}' token
_mysql.c:96: warning: data definition has no type or storage class
_mysql.c:108: error: parse error before '' token
_mysql.c: In function '_mysql_Exception':
_mysql.c:122: error: 'c' undeclared (first use in this function)
_mysql.c:122: error: (Each undeclared identifier is reported only once
_mysql.c:122: error: for each function it appears in.)
_mysql.c:125: error: 'CR_MAX_ERROR' undeclared (first use in this function)
_mysql.c:133: error: 'CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function)
_mysql.c:134: error: 'ER_DB_CREATE_EXISTS' undeclared (first use in this function)
_mysql.c:135: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function)
_mysql.c:136: error: 'ER_PARSE_ERROR' undeclared (first use in this function)
_mysql.c:137: error: 'ER_NO_SUCH_TABLE' undeclared (first use in this function)
_mysql.c:138: error: 'ER_WRONG_DB_NAME' undeclared (first use in this function)
_mysql.c:139: error: 'ER_WRONG_TABLE_NAME' undeclared (first use in this function)
_mysql.c:140: error: 'ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function)
_mysql.c:141: error: 'ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function)
_mysql.c:142: error: 'ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function)
_mysql.c:143: error: 'ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function)
_mysql.c:172: error: 'ER_DUP_ENTRY' undeclared (first use in this function)
_mysql.c:215: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:360: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_Initialize':
_mysql.c:365: error: 'MYSQL_RES' undeclared (first use in this function)
_mysql.c:365: error: 'result' undeclared (first use in this function)
_mysql.c:366: error: 'conn' undeclared (first use in this function)
_mysql.c:370: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:370: error: 'fields' undeclared (first use in this function)
_mysql.c:372: error: 'args' undeclared (first use in this function)
_mysql.c:372: error: 'kwargs' undeclared (first use in this function)
_mysql.c:377: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:445: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_traverse':
_mysql.c:450: error: 'self' undeclared (first use in this function)
_mysql.c:451: error: 'arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:460: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_clear':
_mysql.c:462: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:471: error: parse 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:484: error: 'MYSQL_PORT' 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:549: error: 'MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
_mysql.c:553: error: 'MYSQL_OPT_COMPRESS' undeclared (first use in this function)
_mysql.c:554: error: 'CLIENT_COMPRESS' undeclared (first use in this function)
_mysql.c:557: error: 'MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function)
_mysql.c:559: error: 'MYSQL_INIT_COMMAND' undeclared (first use in this function)
_mysql.c:561: error: 'MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function)
_mysql.c:563: error: 'MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
_mysql.c:566: error: 'MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c: In function '_mysql_connect':
_mysql.c:653: error: 'c' undeclared (first use in this function)
_mysql.c:655: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:666: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_traverse':
_mysql.c:670: error: 'self' undeclared (first use in this function)
_mysql.c:671: error: 'arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:677: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_clear':
_mysql.c:679: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:689: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_close':
_mysql.c:692: error: 'args' undeclared (first use in this function)
_mysql.c:695: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:717: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_affected_rows':
_mysql.c:720: error: 'args' undeclared (first use in this function)
_mysql.c:721: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:751: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_dump_debug_info':
_mysql.c:755: error: 'args' undeclared (first use in this function)
_mysql.c:756: error: 'self' undeclared (first use in this function)
_mysql.c:35:23: error: my_config.h: No such file or directory
_mysql.c: At top level:
_mysql.c:770: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_autocommit':
_mysql.c:774: error: 'args' undeclared (first use in this function)_mysql.c:40:19:
error: mysql.h: No such file or directory
_mysql.c:782: error: 'self' undeclared (first use in this function)
_mysql.c:41:26: error: mysqld_error.h: No such file or directory
_mysql.c:42:20: error: errmsg.h: No such file or directory
_mysql.c: At top level:
_mysql.c:796: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_commit':
_mysql.c:78: error: parse error before 'MYSQL'_mysql.c:800: error: 'args' undeclared (first use in this function)
_mysql.c:78: warning: no semicolon at end of struct or union
_mysql.c:805: error: 'self' undeclared (first use in this function)
_mysql.c:81: error: parse error before '}' token
_mysql.c:81: warning: data definition has no type or storage class
_mysql.c:92: error: parse error before 'MYSQL_RES'_mysql.c: At top level:
_mysql.c:818: error: parse error before '*' token
_mysql.c:92: warning: no semicolon at end of struct or union
_mysql.c: In function '_mysql_ConnectionObject_rollback':
_mysql.c:96: error: parse error before '}' token
_mysql.c:96: warning: data definition has no type or storage class_mysql.c:822: error: 'args' undeclared (first use in this function)
_mysql.c:827: error: 'self' undeclared (first use in this function)
_mysql.c:108: error: parse error before '' token
_mysql.c: At top level:
_mysql.c:850: error: parse error before '' token
_mysql.c: In function '_mysql_Exception':_mysql.c: In function '_mysql_ConnectionObject_next_result':
_mysql.c:854: error: 'args' undeclared (first use in this function)
_mysql.c:122: error: 'c' undeclared (first use in this function)
_mysql.c:122: error: (Each undeclared identifier is reported only once
_mysql.c:122: error: for each function it appears in.)_mysql.c:862: error: 'self' undeclared (first use in this function)
_mysql.c:125: error: 'CR_MAX_ERROR' undeclared (first use in this function)
_mysql.c:133: error: 'CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:935: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_errno':_mysql.c:134: error: 'ER_DB_CREATE_EXISTS' undeclared (first use in this function)
_mysql.c:938: error: 'args' undeclared (first use in this function)
_mysql.c:135: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function)
_mysql.c:136: error: 'ER_PARSE_ERROR' undeclared (first use in this function)
_mysql.c:939: error: 'self' undeclared (first use in this function)_mysql.c:137: error: 'ER_NO_SUCH_TABLE' undeclared (first use in this function)
_mysql.c:138: error: 'ER_WRONG_DB_NAME' undeclared (first use in this function)
_mysql.c:139: error: 'ER_WRONG_TABLE_NAME' undeclared (first use in this function)
_mysql.c:140: error: 'ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function)
_mysql.c:141: error: 'ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function)
_mysql.c:142: error: 'ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:951: error: parse error before '*' token
_mysql.c:143: error: 'ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function)_mysql.c: In function '_mysql_ConnectionObject_error':
_mysql.c:954: error: 'args' undeclared (first use in this function)
_mysql.c:172: error: 'ER_DUP_ENTRY' undeclared (first use in this function)
_mysql.c:955: error: 'self' undeclared (first use in this function)
_mysql.c:956: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c:215: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:969: error: parse error before '' token
_mysql.c: In function '_mysql_escape_string':
_mysql.c:975: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1004: error: parse error before '' token
_mysql.c: In function '_mysql_string_literal':
_mysql.c:1010: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:360: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_Initialize':
_mysql.c:365: error: 'MYSQL_RES' undeclared (first use in this function)
_mysql.c:365: error: 'result' undeclared (first use in this function)
_mysql.c:366: error: 'conn' undeclared (first use in this function)
_mysql.c:370: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:370: error: 'fields' undeclared (first use in this function)
_mysql.c:372: error: 'args' undeclared (first use in this function)
_mysql.c:372: error: 'kwargs' undeclared (first use in this function)
_mysql.c:377: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_escape':
_mysql.c:1087: error: parse error before ')' token
_mysql.c: In function '_mysql_escape_dict':
_mysql.c:1144: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:445: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_traverse':
_mysql.c:450: error: 'self' undeclared (first use in this function)
_mysql.c:451: error: 'arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:460: error: parse error before '' token
_mysql.c: At top level:
_mysql.c: In function '_mysql_ResultObject_clear':
_mysql.c:462: error: 'self' undeclared (first use in this function)_mysql.c:1163: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_describe':
_mysql.c:1167: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1167: error: 'fields' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1169: error: 'args' undeclared (first use in this function)_mysql.c:471: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_Initialize':
_mysql.c:475: error: 'MYSQL' undeclared (first use in this function)
_mysql.c:1170: error: parse error before ')' token
_mysql.c:1170: error: parse error before ')' token_mysql.c:475: error: 'conn' undeclared (first use in this function)
_mysql.c:1171: error: 'self' undeclared (first use in this function)
_mysql.c:484: error: 'MYSQL_PORT' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:500: error: 'self' undeclared (first use in this function)
_mysql.c:1199: error: parse error before '*' token
_mysql.c:503: error: 'args' undeclared (first use in this function)
_mysql.c:503: error: 'kwargs' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_field_flags':
_mysql.c:1203: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1203: error: 'fields' undeclared (first use in this function)
_mysql.c:1205: error: 'args' undeclared (first use in this function)
_mysql.c:549: error: 'MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)_mysql.c:1206: error: parse error before ')' token
_mysql.c:553: error: 'MYSQL_OPT_COMPRESS' undeclared (first use in this function)_mysql.c:1206: error: parse error before ')' token
_mysql.c:1207: error: 'self' undeclared (first use in this function)
_mysql.c:554: error: 'CLIENT_COMPRESS' undeclared (first use in this function)
_mysql.c:557: error: 'MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function)
_mysql.c:559: error: 'MYSQL_INIT_COMMAND' undeclared (first use in this function)
_mysql.c:561: error: 'MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function)
_mysql.c:563: error: 'MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
_mysql.c:566: error: 'MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c: In function '_mysql_connect':
_mysql.c:653: error: 'c' undeclared (first use in this function)
_mysql.c:655: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:666: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_traverse':
_mysql.c:670: error: 'self' undeclared (first use in this function)
_mysql.c:671: error: 'arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:677: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_clear':
_mysql.c:679: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:689: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_close':
_mysql.c:692: error: 'args' undeclared (first use in this function)
_mysql.c:695: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:717: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_affected_rows':
_mysql.c:720: error: 'args' undeclared (first use in this function)
_mysql.c:721: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:751: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_dump_debug_info':
_mysql.c:755: error: 'args' undeclared (first use in this function)
_mysql.c:756: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:770: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_autocommit':
_mysql.c:774: error: 'args' undeclared (first use in this function)
_mysql.c:782: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:796: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_commit':
_mysql.c:800: error: 'args' undeclared (first use in this function)
_mysql.c:805: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:818: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_rollback':
_mysql.c:822: error: 'args' undeclared (first use in this function)
_mysql.c:827: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:850: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_next_result':
_mysql.c:854: error: 'args' undeclared (first use in this function)
_mysql.c:862: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:935: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_errno':
_mysql.c:938: error: 'args' undeclared (first use in this function)
_mysql.c:939: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:951: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_error':
_mysql.c:954: error: 'args' undeclared (first use in this function)
_mysql.c:955: error: 'self' undeclared (first use in this function)
_mysql.c:956: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:969: error: parse error before '' token
_mysql.c: In function '_mysql_escape_string':
_mysql.c:975: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1004: error: parse error before '' token
_mysql.c: In function '_mysql_string_literal':
_mysql.c:1010: error: 'args' undeclared (first use in this function)
_mysql.c: In function '_mysql_escape':
_mysql.c:1087: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:1248: error: parse error before '' token
_mysql.c: In function '_mysql_row_to_tuple':
_mysql.c:1255: error: 'self' undeclared (first use in this function)
_mysql.c:1257: warning: assignment makes pointer from integer without a cast
_mysql.c:1261: error: 'row' undeclared (first use in this function)
_mysql.c: In function '_mysql_escape_dict':
_mysql.c:1144: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:1273: error: parse error before '*' token
_mysql.c: In function '_mysql_row_to_dict':
_mysql.c:1279: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1279: error: 'fields' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c:1281: error: 'self' undeclared (first use in this function)
_mysql.c:1163: error: parse error before '*' token
_mysql.c:1283: warning: assignment makes pointer from integer without a cast
_mysql.c: In function '_mysql_ResultObject_describe':
_mysql.c:1167: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1167: error: 'fields' undeclared (first use in this function)_mysql.c:1288: error: 'row' undeclared (first use in this function)
_mysql.c:1169: error: 'args' undeclared (first use in this function)
_mysql.c:1170: error: parse error before ')' token
_mysql.c:1170: error: parse error before ')' token
_mysql.c:1171: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1312: error: parse error before '' token
_mysql.c: At top level:_mysql.c: In function '_mysql_row_to_dict_old':
_mysql.c:1199: error: parse error before '' token
_mysql.c:1318: error: 'MYSQL_FIELD' undeclared (first use in this function)_mysql.c: In function '_mysql_ResultObject_field_flags':
_mysql.c:1203: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1318: error: 'fields' undeclared (first use in this function)
_mysql.c:1203: error: 'fields' undeclared (first use in this function)
_mysql.c:1320: error: 'self' undeclared (first use in this function)
_mysql.c:1205: error: 'args' undeclared (first use in this function)
_mysql.c:1322: warning: assignment makes pointer from integer without a cast
_mysql.c:1327: error: 'row' undeclared (first use in this function)_mysql.c:1206: error: parse error before ')' token
_mysql.c:1206: error: parse error before ')' token
_mysql.c:1207: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1349: error: parse error before '' token
_mysql.c: At top level:_mysql.c:1353: error: parse error before '' token
_mysql.c: In function '_mysql__fetch_row':_mysql.c:1248: error: parse error before '*' token
_mysql.c:1360: error: 'MYSQL_ROW' undeclared (first use in this function)_mysql.c: In function '_mysql_row_to_tuple':
_mysql.c:1255: error: 'self' undeclared (first use in this function)
_mysql.c:1360: error: parse error before 'row'
_mysql.c:1362: error: 'skiprows' undeclared (first use in this function)_mysql.c:1257: warning: assignment makes pointer from integer without a cast
_mysql.c:1362: error: 'maxrows' undeclared (first use in this function)_mysql.c:1261: error: 'row' undeclared (first use in this function)
_mysql.c:1364: error: 'self' undeclared (first use in this function)
_mysql.c:1365: error: 'row' undeclared (first use in this function)
_mysql.c:1371: error: parse error before ')' token
_mysql.c:1372: error: parse error before ')' token_mysql.c: At top level:
_mysql.c:1273: error: parse error before '*' token
_mysql.c:1376: error: 'r' undeclared (first use in this function)
_mysql.c: In function '_mysql_row_to_dict':
_mysql.c:1279: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1379: warning: assignment makes pointer from integer without a cast_mysql.c:1279: error: 'fields' undeclared (first use in this function)
_mysql.c:1281: error: 'self' undeclared (first use in this function)
_mysql.c:1283: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:_mysql.c:1288: error: 'row' undeclared (first use in this function)
_mysql.c:1399: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_fetch_row':
_mysql.c:1403: error: parse error before '' token
_mysql.c:1415: error: 'args' undeclared (first use in this function)
_mysql.c:1415: error: 'kwargs' undeclared (first use in this function)
_mysql.c:1418: error: parse error before ')' token
_mysql.c:1418: error: parse error before ')' token
_mysql.c:1426: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1506: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_character_set_name':
_mysql.c:1510: error: 'args' undeclared (first use in this function)
_mysql.c:1511: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_get_client_info':
_mysql.c:1602: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1612: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_get_host_info':
_mysql.c:1615: error: 'args' undeclared (first use in this function)
_mysql.c:1616: error: 'self' undeclared (first use in this function)
_mysql.c:1617: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1627: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_get_proto_info':
_mysql.c:1630: error: 'args' undeclared (first use in this function)
_mysql.c:1631: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1642: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_get_server_info':
_mysql.c:1645: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1312: error: parse error before '*' token
_mysql.c:1646: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_row_to_dict_old':
_mysql.c:1647: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c:1318: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1318: error: 'fields' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1320: error: 'self' undeclared (first use in this function)
_mysql.c:1658: error: parse error before '' token
_mysql.c:1322: warning: assignment makes pointer from integer without a cast
_mysql.c:1327: error: 'row' undeclared (first use in this function)
_mysql.c: In function '_mysql_ConnectionObject_info':
_mysql.c:1662: error: 'args' undeclared (first use in this function)
_mysql.c:1663: error: 'self' undeclared (first use in this function)
_mysql.c:1664: warning: assignment makes pointer from integer without a cast_mysql.c: At top level:
_mysql.c:1349: error: parse error before '' token
_mysql.c:1353: error: parse error before '*' token
_mysql.c: In function '_mysql__fetch_row':
_mysql.c:1360: error: 'MYSQL_ROW' undeclared (first use in this function)
_mysql.c:1360: error: parse error before 'row'_mysql.c: At top level:
_mysql.c:1362: error: 'skiprows' undeclared (first use in this function)
_mysql.c:1362: error: 'maxrows' undeclared (first use in this function)_mysql.c:1693: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_insert_id':
_mysql.c:1364: error: 'self' undeclared (first use in this function)
_mysql.c:1365: error: 'row' undeclared (first use in this function)_mysql.c:1696: error: 'my_ulonglong' undeclared (first use in this function)
_mysql.c:1696: error: parse error before 'r'
_mysql.c:1697: error: 'args' undeclared (first use in this function)
_mysql.c:1371: error: parse error before ')' token_mysql.c:1698: error: 'self' undeclared (first use in this function)
_mysql.c:1372: error: parse error before ')' token
_mysql.c:1376: error: 'r' undeclared (first use in this function)_mysql.c:1700: error: 'r' undeclared (first use in this function)
_mysql.c:1379: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1711: error: parse error before '' token
_mysql.c: At top level:_mysql.c: In function '_mysql_ConnectionObject_kill':
_mysql.c:1716: error: 'args' undeclared (first use in this function)
_mysql.c:1399: error: parse error before '' token
_mysql.c:1717: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_fetch_row':
_mysql.c:1403: error: parse error before '*' token
_mysql.c: At top level:_mysql.c:1415: error: 'args' undeclared (first use in this function)
_mysql.c:1415: error: 'kwargs' undeclared (first use in this function)
_mysql.c:1734: error: parse error before '*' token
_mysql.c:1418: error: parse error before ')' token
_mysql.c:1418: error: parse error before ')' token
_mysql.c: In function '_mysql_ConnectionObject_field_count':
_mysql.c:1737: error: 'args' undeclared (first use in this function)
_mysql.c:1738: error: 'self' undeclared (first use in this function)_mysql.c:1426: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1751: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_num_fields':
_mysql.c:1754: error: 'args' undeclared (first use in this function)
_mysql.c:1755: error: parse error before ')' token
_mysql.c:1755: error: parse error before ')' token
_mysql.c:1756: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1767: error: parse error before '' token
_mysql.c: At top level:
_mysql.c: In function '_mysql_ResultObject_num_rows':
_mysql.c:1770: error: 'args' undeclared (first use in this function)_mysql.c:1506: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_character_set_name':
_mysql.c:1771: error: parse error before ')' token
_mysql.c:1771: error: parse error before ')' token_mysql.c:1510: error: 'args' undeclared (first use in this function)
_mysql.c:1511: error: 'self' undeclared (first use in this function)_mysql.c:1772: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1789: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_ping':
_mysql.c:1793: error: 'args' undeclared (first use in this function)
_mysql.c: In function '_mysql_get_client_info':
_mysql.c:1794: error: 'self' undeclared (first use in this function)_mysql.c:1602: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1612: error: parse error before '' token
_mysql.c: At top level:_mysql.c: In function '_mysql_ConnectionObject_get_host_info':
_mysql.c:1811: error: parse error before '' token
_mysql.c:1615: error: 'args' undeclared (first use in this function)_mysql.c: In function '_mysql_ConnectionObject_query':
_mysql.c:1816: error: 'args' undeclared (first use in this function)_mysql.c:1616: error: 'self' undeclared (first use in this function)
_mysql.c:1617: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c:1817: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1627: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_get_proto_info':
_mysql.c: At top level:_mysql.c:1630: error: 'args' undeclared (first use in this function)
_mysql.c:1631: error: 'self' undeclared (first use in this function)_mysql.c:1841: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_select_db':
_mysql.c:1846: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1642: error: parse error before '*' token_mysql.c:1847: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ConnectionObject_get_server_info':
_mysql.c:1645: error: 'args' undeclared (first use in this function)
_mysql.c:1646: error: 'self' undeclared (first use in this function)
_mysql.c:1647: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast_mysql.c: At top level:
_mysql.c:1863: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_shutdown':
_mysql.c: At top level:_mysql.c:1867: error: 'args' undeclared (first use in this function)
_mysql.c:1658: error: parse error before '*' token_mysql.c:1868: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ConnectionObject_info':
_mysql.c:1662: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c:1663: error: 'self' undeclared (first use in this function)
_mysql.c:1890: error: parse error before '*' token
_mysql.c:1664: warning: assignment makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_stat':
_mysql.c:1894: error: 'args' undeclared (first use in this function)
_mysql.c:1895: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1693: error: parse error before '*' token_mysql.c:1897: warning: assignment makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_insert_id':
_mysql.c:1696: error: 'my_ulonglong' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1696: error: parse error before 'r'
_mysql.c:1697: error: 'args' undeclared (first use in this function)
_mysql.c:1698: error: 'self' undeclared (first use in this function)
_mysql.c:1700: error: 'r' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1711: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_kill':
_mysql.c:1716: error: 'args' undeclared (first use in this function)
_mysql.c:1717: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1734: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_field_count':
_mysql.c:1737: error: 'args' undeclared (first use in this function)
_mysql.c:1738: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1911: error: parse error before '' token_mysql.c:1751: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_num_fields':
_mysql.c: In function '_mysql_ConnectionObject_store_result':
_mysql.c:1754: error: 'args' undeclared (first use in this function)
_mysql.c:1915: error: 'r' undeclared (first use in this function)
_mysql.c:1755: error: parse error before ')' token_mysql.c:1917: error: 'args' undeclared (first use in this function)
_mysql.c:1755: error: parse error before ')' token_mysql.c:1918: error: 'self' undeclared (first use in this function)
_mysql.c:1756: error: 'self' undeclared (first use in this function)
_mysql.c:1923: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:1767: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_num_rows':
_mysql.c:1770: error: 'args' undeclared (first use in this function)
_mysql.c:1771: error: parse error before ')' token
_mysql.c:1771: error: parse error before ')' token
_mysql.c:1772: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c: At top level:
_mysql.c:1789: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_ping':
_mysql.c:1793: error: 'args' undeclared (first use in this function)
_mysql.c:1794: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1811: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_query':
_mysql.c:1816: error: 'args' undeclared (first use in this function)
_mysql.c:1817: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1841: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_select_db':
_mysql.c:1846: error: 'args' undeclared (first use in this function)
_mysql.c:1847: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1863: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_shutdown':
_mysql.c:1867: error: 'args' undeclared (first use in this function)
_mysql.c:1868: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1890: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_stat':
_mysql.c:1894: error: 'args' undeclared (first use in this function)
_mysql.c:1895: error: 'self' undeclared (first use in this function)
_mysql.c:1897: warning: assignment makes pointer from integer without a cast
_mysql.c: At top level:
_mysql.c:1911: error: parse error before '*' token
_mysql.c:1952: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_store_result':
_mysql.c: In function '_mysql_ConnectionObject_thread_id':_mysql.c:1915: error: 'r' undeclared (first use in this function)
_mysql.c:1917: error: 'args' undeclared (first use in this function)
_mysql.c:1956: error: 'args' undeclared (first use in this function)
_mysql.c:1918: error: 'self' undeclared (first use in this function)
_mysql.c:1957: error: 'self' undeclared (first use in this function)_mysql.c:1923: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:1972: error: parse error before '*' token
_mysql.c: In function '_mysql_ConnectionObject_use_result':
_mysql.c:1976: error: 'r' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:1978: error: 'args' undeclared (first use in this function)
_mysql.c:1952: error: parse error before '*' token
_mysql.c:1979: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ConnectionObject_thread_id':
_mysql.c:1984: error: parse error before ')' token_mysql.c:1956: error: 'args' undeclared (first use in this function)
_mysql.c:1957: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1972: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_use_result':
_mysql.c:1976: error: 'r' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2002: error: parse error before '' token
_mysql.c:1978: error: 'args' undeclared (first use in this function)
_mysql.c:1979: error: 'self' undeclared (first use in this function)_mysql.c: In function '_mysql_ConnectionObject_dealloc':
_mysql.c:2006: error: 'self' undeclared (first use in this function)
_mysql.c:1984: error: parse error before ')' token
_mysql.c: At top level:
_mysql.c:2016: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_repr':
_mysql.c:2019: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c: At top level:
_mysql.c:2002: error: parse error before '' token
_mysql.c:2033: error: parse error before '*' token_mysql.c: In function '_mysql_ConnectionObject_dealloc':
_mysql.c:2006: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_data_seek':
_mysql.c:2037: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2038: error: parse error before ')' token_mysql.c:2016: error: parse error before '*' token
_mysql.c:2038: error: parse error before ')' token_mysql.c: In function '_mysql_ConnectionObject_repr':
_mysql.c:2019: error: 'self' undeclared (first use in this function)
_mysql.c:2039: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c: At top level:_mysql.c:2048: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_row_seek':_mysql.c:2033: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_data_seek':
_mysql.c:2037: error: 'args' undeclared (first use in this function)_mysql.c:2052: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:2052: error: parse error before 'r'
_mysql.c:2053: error: 'args' undeclared (first use in this function)_mysql.c:2038: error: parse error before ')' token
_mysql.c:2038: error: parse error before ')' token
_mysql.c:2039: error: 'self' undeclared (first use in this function)
_mysql.c:2054: error: parse error before ')' token
_mysql.c:2054: error: parse error before ')' token
_mysql.c:2055: error: 'self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2048: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_row_seek':
_mysql.c:2052: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)_mysql.c:2060: error: 'r' undeclared (first use in this function)
_mysql.c:2052: error: parse error before 'r'
_mysql.c:2053: error: 'args' undeclared (first use in this function)
_mysql.c: At top level:_mysql.c:2054: error: parse error before ')' token
_mysql.c:2070: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_row_tell':_mysql.c:2054: error: parse error before ')' token
_mysql.c:2073: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:2055: error: 'self' undeclared (first use in this function)
_mysql.c:2073: error: parse error before 'r'
_mysql.c:2074: error: 'args' undeclared (first use in this function)_mysql.c:2060: error: 'r' undeclared (first use in this function)
_mysql.c:2075: error: parse error before ')' token
_mysql.c:2075: error: parse error before ')' token_mysql.c: At top level:
_mysql.c:2070: error: parse error before '*' token
_mysql.c:2076: error: 'self' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_row_tell':_mysql.c:2081: error: 'r' undeclared (first use in this function)
_mysql.c:2073: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:2073: error: parse error before 'r'_mysql.c: At top level:
_mysql.c:2087: error: parse error before '*' token
_mysql.c:2074: error: 'args' undeclared (first use in this function)
_mysql.c: In function '_mysql_ResultObject_dealloc':_mysql.c:2075: error: parse error before ')' token
_mysql.c:2075: error: parse error before ')' token
_mysql.c:2076: error: 'self' undeclared (first use in this function)_mysql.c:2089: error: 'self' undeclared (first use in this function)
_mysql.c:2081: error: 'r' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2097: error: parse error before '*' token
_mysql.c: In function '_mysql_ResultObject_repr':
_mysql.c:2101: error: 'self' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2087: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_dealloc':
_mysql.c:2089: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2097: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_repr':
_mysql.c:2101: error: 'self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2321: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2328: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2335: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2342: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2349: error: parse error before '_mysql_ConnectionObject'
_mysql.c: At top level:_mysql.c:2412: error: parse error before '_mysql_ResultObject'
_mysql.c:2424: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_getattr':
_mysql.c:2429: error: 'self' undeclared (first use in this function)
_mysql.c:2429: error: 'name' undeclared (first use in this function)
_mysql.c:2429: warning: passing argument 2 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2429: warning: passing argument 3 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2433: warning: passing argument 1 of 'strcmp' from incompatible pointer type
_mysql.c:2434: error: 'struct PyMemberDef' has no member named 'open'
_mysql.c:2441: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2442: warning: passing argument 1 of 'PyMember_GetOne' from incompatible pointer type
_mysql.c:2444: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2452: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_getattr':
_mysql.c:2457: error: 'self' undeclared (first use in this function)
_mysql.c:2457: error: 'name' undeclared (first use in this function)
_mysql.c:2457: warning: passing argument 2 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2457: warning: passing argument 3 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2467: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2468: warning: passing argument 1 of 'PyMember_GetOne' from incompatible pointer type
_mysql.c:2470: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2478: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_setattr':
_mysql.c:2482: error: 'v' undeclared (first use in this function)
_mysql.c:2493: error: 'name' undeclared (first use in this function)
_mysql.c:2493: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2494: error: 'self' undeclared (first use in this function)
_mysql.c:2494: warning: passing argument 1 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2494: warning: passing argument 3 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2496: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2503: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_setattr':
_mysql.c:2507: error: 'v' undeclared (first use in this function)
_mysql.c:2518: error: 'name' undeclared (first use in this function)
_mysql.c:2518: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2519: error: 'self' undeclared (first use in this function)
_mysql.c:2519: warning: passing argument 1 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2519: warning: passing argument 3 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2521: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c:2321: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2328: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2335: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2342: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2349: error: parse error before '_mysql_ConnectionObject'
_mysql.c:2412: error: parse error before '_mysql_ResultObject'
_mysql.c:2424: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_getattr':
_mysql.c:2429: error: 'self' undeclared (first use in this function)
_mysql.c:2429: error: 'name' undeclared (first use in this function)
_mysql.c:2429: warning: passing argument 2 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2429: warning: passing argument 3 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2433: warning: passing argument 1 of 'strcmp' from incompatible pointer type
_mysql.c:2434: error: 'struct PyMemberDef' has no member named 'open'
_mysql.c:2441: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2442: warning: passing argument 1 of 'PyMember_GetOne' from incompatible pointer type
_mysql.c:2444: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2452: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_getattr':
_mysql.c:2457: error: 'self' undeclared (first use in this function)
_mysql.c:2457: error: 'name' undeclared (first use in this function)
_mysql.c:2457: warning: passing argument 2 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2457: warning: passing argument 3 of 'Py_FindMethod' from incompatible pointer type
_mysql.c:2467: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2468: warning: passing argument 1 of 'PyMember_GetOne' from incompatible pointer type
_mysql.c:2470: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2478: error: parse error before '' token
_mysql.c: In function '_mysql_ConnectionObject_setattr':
_mysql.c:2482: error: 'v' undeclared (first use in this function)
_mysql.c:2493: error: 'name' undeclared (first use in this function)
_mysql.c:2493: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2494: error: 'self' undeclared (first use in this function)
_mysql.c:2494: warning: passing argument 1 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2494: warning: passing argument 3 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2496: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
_mysql.c: At top level:
_mysql.c:2503: error: parse error before '' token
_mysql.c: In function '_mysql_ResultObject_setattr':
_mysql.c:2507: error: 'v' undeclared (first use in this function)
_mysql.c:2518: error: 'name' undeclared (first use in this function)
_mysql.c:2518: warning: passing argument 2 of 'strcmp' from incompatible pointer type
_mysql.c:2519: error: 'self' undeclared (first use in this function)
_mysql.c:2519: warning: passing argument 1 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2519: warning: passing argument 3 of 'PyMember_SetOne' from incompatible pointer type
_mysql.c:2521: warning: passing argument 2 of 'PyErr_SetString' from incompatible pointer type
lipo: can't figure out the architecture type of: /var/tmp//ccgIWxrK.out
error: command 'gcc' failed with exit status 1
SO, does anybody have ANY idea what to do? X_x;
mysql_config needs to be on your path; that is a drop-dead error. If you are in a shell and running mysql_config doesn't work, you need to fix that.
Hi Kael,
Could you please send me your built for Python 2.5?
Many thanks,
Minh
OK, I'll chime in. I'm trying to install ver 1.2.1_p2 with Python 2.5 and MySQL 5. I'm getting this error:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:730:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
I've googled this error and have found discussions (but no solutions) regarding 64 vs 32 bit. I'm trying this on OS X 10.4.8 on the 64-bit Intel chip (macbook pro). I installed the latest version of Xcode. Any ideas on what might be going wrong?