db-art/mysql-statsd

Can't install via easy_install

Closed this issue · 14 comments

I'm executing:

easy_install mysql-statsd

and getting:

No local packages or download links found for mysql-statsd
error: Could not find suitable distribution for Requirement.parse('mysql-statsd')

Thanks for your interest in the module, but it doesn't really do anything yet. We're currently working on getting a first release out there and then I'll push it to PyPi as well.

👍

hi guys, any updates on upcoming release ;) ?

and .. how I can install your manually ?

@hicolour what updates are you looking for? Also, the documentation gives you installation guide, please read: http://mysql-statsd.readthedocs.org/en/latest/contributing.html#types-of-contributions

@jippi You should now be able to install this package through pip:

$ pip search mysql-statsd
mysql-statsd              - Daemon that gathers statistics from MySQL and
                            sends them to statsd.

hey @thijsdezoete, I still cannot install this pkg :/

[root@ie tmp]# pip install mysql-statsd
Downloading/unpacking mysql-statsd
  Could not find any downloads that satisfy the requirement mysql-statsd
Cleaning up...
No distributions at all found for mysql-statsd
Storing debug log for failure in /root/.pip/pip.log
Downloading/unpacking mysql-statsd
  Getting page https://pypi.python.org/simple/mysql-statsd/
  URLs to search for versions for mysql-statsd:
  * https://pypi.python.org/simple/mysql-statsd/
  Analyzing links from page https://pypi.python.org/simple/mysql-statsd/
  Could not find any downloads that satisfy the requirement mysql-statsd
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
No distributions at all found for mysql-statsd
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for mysql-statsd

[root@ie tmp]# easy_install mysql-statsd
Searching for mysql-statsd
Reading http://pypi.python.org/simple/mysql-statsd/
No local packages or download links found for mysql-statsd
error: Could not find suitable distribution for Requirement.parse('mysql-statsd')
[root@ie tmp]# 

Hi, yes it seems it's still not fixed. I will look into this as soon as pypi is back up again. :)

@hicolour @jippi Looks like it's fixed now. Would you please verify?

@thijsdezoete I'm not the same guy, but I was able to install it via pip. It failed without "--allow-all-external," though.

pip install --allow-all-external mysql-statsd #Works

Box is FreeBSD 10.0 using 2014Q2 branch of ports.

Great!
Ah! I found out why. One of the subpackages is giving some problems:

Downloading/unpacking argparse>=1.2 (from pystatsd==0.1.10->mysql-statsd)
  Could not find a version that satisfies the requirement argparse>=1.2 (from pystatsd==0.1.10->mysql-statsd) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 1.0.1, 1.0, 1.1)
  Some externally hosted files were ignored (use --allow-external to allow).

It seems to me that pkg if fixed but now I have problem with installation process:

[root@ie tmp]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago
[root@ie tmp]# rpm -qa | grep MySQL
MySQL-shared-5.5.35-1.el6.x86_64
MySQL-client-5.5.35-1.el6.x86_64
MySQL-devel-5.5.37-1.el6.x86_64
MySQL-server-5.5.35-1.el6.x86_64
[root@ie tmp]#
[root@ie tmp]# sudo pip install --allow-all-external mysql-statsd
Requirement already satisfied (use --upgrade to upgrade): mysql-statsd in /usr/lib/python2.6/site-packages/mysql_statsd-0.1.1-py2.6.egg
Downloading/unpacking MySQL-python==1.2.5 (from mysql-statsd)
  Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
  Running setup.py (path:/tmp/pip_build_root/MySQL-python/setup.py) egg_info for package MySQL-python
Requirement already satisfied (use --upgrade to upgrade): pystatsd==0.1.10 in /usr/lib/python2.6/site-packages/pystatsd-0.1.10-py2.6.egg (from mysql-statsd)
Downloading/unpacking argparse>=1.2 (from pystatsd==0.1.10->mysql-statsd)
  argparse an externally hosted file and may be unreliable
  Downloading argparse-1.2.1.tar.gz (69kB): 69kB downloaded
  Running setup.py (path:/tmp/pip_build_root/argparse/setup.py) egg_info for package argparse
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.pyo' found anywhere in distribution
    warning: no previously-included files matching '*.orig' found anywhere in distribution
    warning: no previously-included files matching '*.rej' found anywhere in distribution
    no previously-included directories found matching 'doc/_build'
    no previously-included directories found matching 'env24'
    no previously-included directories found matching 'env25'
    no previously-included directories found matching 'env26'
    no previously-included directories found matching 'env27'
Installing collected packages: MySQL-python, argparse
  Running setup.py install for MySQL-python
    building '_mysql' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-x86_64-2.6/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1
    _mysql.c:29:20: error: Python.h: No such file or directory
    _mysql.c:40:26: error: structmember.h: No such file or directory
    _mysql.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:87: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
    _mysql.c:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’
    _mysql.c:100: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
    _mysql.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’
    _mysql.c:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:261: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:379: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:402: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    _mysql.c:403: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    _mysql.c: In function ‘_mysql_ResultObject_Initialize’:
    _mysql.c:405: error: ‘NULL’ undeclared (first use in this function)
    _mysql.c:405: error: (Each undeclared identifier is reported only once
    _mysql.c:405: error: for each function it appears in.)
    _mysql.c:407: warning: initialization from incompatible pointer type
    _mysql.c:409: error: ‘PyObject’ undeclared (first use in this function)
    _mysql.c:409: error: ‘conv’ undeclared (first use in this function)
    _mysql.c:409: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:409: warning: statement with no effect
    _mysql.c:413: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’
    _mysql.c:413: error: ‘args’ undeclared (first use in this function)
    _mysql.c:413: error: ‘kwargs’ undeclared (first use in this function)
    _mysql.c:417: warning: implicit declaration of function ‘PyDict_New’
    _mysql.c:421: warning: implicit declaration of function ‘Py_INCREF’
    _mysql.c:423: error: ‘_mysql_ResultObject’ has no member named ‘conn’
    _mysql.c:423: error: expected expression before ‘)’ token
    _mysql.c:423: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:423: warning: statement with no effect
    _mysql.c:425: error: ‘_mysql_ResultObject’ has no member named ‘use’
    _mysql.c:425: warning: statement with no effect
    _mysql.c:426: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
    _mysql.c:426: warning: statement with no effect
    _mysql.c:428: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:428: warning: passing argument 1 of ‘mysql_use_result’ from incompatible pointer type
    /usr/include/mysql/mysql.h:401: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:430: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:430: warning: passing argument 1 of ‘mysql_store_result’ from incompatible pointer type
    /usr/include/mysql/mysql.h:400: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:431: error: ‘_mysql_ResultObject’ has no member named ‘result’
    _mysql.c:431: warning: statement with no effect
    _mysql.c:432: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
    _mysql.c:432: warning: statement with no effect
    _mysql.c:434: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:434: warning: passing argument 1 of ‘mysql_field_count’ from incompatible pointer type
    /usr/include/mysql/mysql.h:368: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:435: warning: implicit declaration of function ‘_mysql_Exception’
    _mysql.c:438: error: ‘_mysql_ResultObject’ has no member named ‘converter’
    _mysql.c:438: warning: implicit declaration of function ‘PyTuple_New’
    _mysql.c:438: warning: statement with no effect
    _mysql.c:439: warning: implicit declaration of function ‘Py_DECREF’
    _mysql.c:443: error: ‘_mysql_ResultObject’ has no member named ‘nfields’
    _mysql.c:443: warning: statement with no effect
    _mysql.c:444: error: ‘_mysql_ResultObject’ has no member named ‘converter’
    _mysql.c:450: error: ‘tmp’ undeclared (first use in this function)
    _mysql.c:450: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:450: error: ‘fun’ undeclared (first use in this function)
    _mysql.c:450: warning: left-hand operand of comma expression has no effect
    _mysql.c:450: warning: statement with no effect
    _mysql.c:451: warning: implicit declaration of function ‘PyInt_FromLong’
    _mysql.c:451: warning: statement with no effect
    _mysql.c:456: warning: implicit declaration of function ‘PyObject_GetItem’
    _mysql.c:456: warning: statement with no effect
    _mysql.c:459: warning: implicit declaration of function ‘PyErr_Occurred’
    _mysql.c:460: warning: implicit declaration of function ‘PyErr_ExceptionMatches’
    _mysql.c:460: error: ‘PyExc_KeyError’ undeclared (first use in this function)
    _mysql.c:464: warning: implicit declaration of function ‘PyErr_Clear’
    _mysql.c:466: error: ‘Py_None’ undeclared (first use in this function)
    _mysql.c:466: warning: statement with no effect
    _mysql.c:469: warning: implicit declaration of function ‘PySequence_Check’
    _mysql.c:470: warning: implicit declaration of function ‘PySequence_Size’
    _mysql.c:471: error: ‘fun2’ undeclared (first use in this function)
    _mysql.c:471: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:471: warning: statement with no effect
    _mysql.c:473: error: ‘t’ undeclared (first use in this function)
    _mysql.c:473: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:473: warning: implicit declaration of function ‘PySequence_GetItem’
    _mysql.c:473: warning: statement with no effect
    _mysql.c:479: warning: implicit declaration of function ‘PyTuple_Check’
    _mysql.c:479: warning: implicit declaration of function ‘PyTuple_GET_SIZE’
    _mysql.c:481: error: ‘pmask’ undeclared (first use in this function)
    _mysql.c:481: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:481: warning: statement with no effect
    _mysql.c:482: warning: implicit declaration of function ‘PyTuple_GET_ITEM’
    _mysql.c:482: warning: statement with no effect
    _mysql.c:483: warning: statement with no effect
    _mysql.c:484: warning: implicit declaration of function ‘Py_XINCREF’
    _mysql.c:485: warning: implicit declaration of function ‘PyInt_Check’
    _mysql.c:486: warning: implicit declaration of function ‘PyInt_AS_LONG’
    _mysql.c:496: warning: statement with no effect
    _mysql.c:506: warning: statement with no effect
    _mysql.c:510: warning: statement with no effect
    _mysql.c:512: warning: implicit declaration of function ‘PyTuple_SET_ITEM’
    _mysql.c:512: error: ‘_mysql_ResultObject’ has no member named ‘converter’
    _mysql.c: In function ‘_mysql_ResultObject_clear’:
    _mysql.c:538: warning: implicit declaration of function ‘Py_XDECREF’
    _mysql.c:538: error: ‘_mysql_ResultObject’ has no member named ‘converter’
    _mysql.c:539: error: ‘_mysql_ResultObject’ has no member named ‘converter’
    _mysql.c:539: error: ‘NULL’ undeclared (first use in this function)
    _mysql.c:539: warning: statement with no effect
    _mysql.c:540: error: ‘_mysql_ResultObject’ has no member named ‘conn’
    _mysql.c:541: error: ‘_mysql_ResultObject’ has no member named ‘conn’
    _mysql.c:541: warning: statement with no effect
    _mysql.c: At top level:
    _mysql.c:548: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    _mysql.c:549: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    _mysql.c: In function ‘_mysql_ConnectionObject_Initialize’:
    _mysql.c:551: error: ‘NULL’ undeclared (first use in this function)
    _mysql.c:551: warning: initialization from incompatible pointer type
    _mysql.c:552: error: ‘PyObject’ undeclared (first use in this function)
    _mysql.c:552: error: ‘conv’ undeclared (first use in this function)
    _mysql.c:552: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:552: warning: statement with no effect
    _mysql.c:553: error: ‘ssl’ undeclared (first use in this function)
    _mysql.c:553: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:553: warning: statement with no effect
    _mysql.c:555: warning: initialization from incompatible pointer type
    _mysql.c:555: warning: initialization from incompatible pointer type
    _mysql.c:555: warning: initialization from incompatible pointer type
    _mysql.c:556: warning: initialization from incompatible pointer type
    _mysql.c:556: warning: initialization from incompatible pointer type
    _mysql.c:558: warning: initialization from incompatible pointer type
    _mysql.c:558: warning: initialization from incompatible pointer type
    _mysql.c:558: warning: initialization from incompatible pointer type
    _mysql.c:559: warning: initialization from incompatible pointer type
    _mysql.c:559: warning: initialization from incompatible pointer type
    _mysql.c:573: error: initializer element is not constant
    _mysql.c:573: error: (near initialization for ‘kwlist[18]’)
    _mysql.c:580: warning: initialization from incompatible pointer type
    _mysql.c:581: warning: initialization from incompatible pointer type
    _mysql.c:582: warning: initialization from incompatible pointer type
    _mysql.c:584: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
    _mysql.c:584: warning: statement with no effect
    _mysql.c:585: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
    _mysql.c:585: warning: statement with no effect
    _mysql.c:588: error: ‘args’ undeclared (first use in this function)
    _mysql.c:588: error: ‘kwargs’ undeclared (first use in this function)
    _mysql.c:622: error: ‘value’ undeclared (first use in this function)
    _mysql.c:622: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:622: warning: statement with no effect
    _mysql.c:623: warning: implicit declaration of function ‘PyMapping_GetItemString’
    _mysql.c:623: warning: statement with no effect
    _mysql.c:623: warning: implicit declaration of function ‘PyString_AsString’
    _mysql.c:623: warning: assignment makes pointer from integer without a cast
    _mysql.c:624: warning: statement with no effect
    _mysql.c:624: warning: assignment makes pointer from integer without a cast
    _mysql.c:625: warning: statement with no effect
    _mysql.c:625: warning: assignment makes pointer from integer without a cast
    _mysql.c:626: warning: statement with no effect
    _mysql.c:626: warning: assignment makes pointer from integer without a cast
    _mysql.c:627: warning: statement with no effect
    _mysql.c:627: warning: assignment makes pointer from integer without a cast
    _mysql.c:635: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
    _mysql.c:635: warning: statement with no effect
    _mysql.c:636: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:636: warning: passing argument 1 of ‘mysql_init’ from incompatible pointer type
    /usr/include/mysql/mysql.h:380: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:639: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:640: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:645: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:646: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:650: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:651: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:655: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:655: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:659: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:659: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:660: warning: comparison of distinct pointer types lacks a cast
    _mysql.c:661: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:661: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:662: warning: comparison of distinct pointer types lacks a cast
    _mysql.c:663: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:663: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:664: warning: comparison of distinct pointer types lacks a cast
    _mysql.c:665: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:665: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:668: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:668: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
    /usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:672: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:673: warning: passing argument 1 of ‘mysql_ssl_set’ from incompatible pointer type
    /usr/include/mysql/mysql.h:381: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:676: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:677: warning: passing argument 1 of ‘mysql_real_connect’ from incompatible pointer type
    /usr/include/mysql/mysql.h:387: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:679: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
    _mysql.c:679: warning: statement with no effect
    _mysql.c:688: warning: statement with no effect
    _mysql.c:694: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
    _mysql.c:694: warning: statement with no effect
    _mysql.c:702: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
    _mysql.c:702: warning: statement with no effect
    _mysql.c: At top level:
    _mysql.c:760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c: In function ‘_mysql_ConnectionObject_clear’:
    _mysql.c:792: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
    _mysql.c:793: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
    _mysql.c:793: error: ‘NULL’ undeclared (first use in this function)
    _mysql.c:793: warning: statement with no effect
    _mysql.c: At top level:
    _mysql.c:800: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:828: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:844: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:862: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:881: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:907: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:921: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:943: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:975: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1001: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1028: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1047: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1064: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1080: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1192: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1194: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1260: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1294: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1326: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1362: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1386: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1416: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1441: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1480: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1519: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1524: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    _mysql.c:1527: error: expected declaration specifiers or ‘...’ before ‘_PYFUNC’
    _mysql.c: In function ‘_mysql__fetch_row’:
    _mysql.c:1533: error: ‘PyObject’ undeclared (first use in this function)
    _mysql.c:1533: error: ‘v’ undeclared (first use in this function)
    _mysql.c:1533: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:1533: warning: statement with no effect
    _mysql.c:1534: error: ‘_mysql_ResultObject’ has no member named ‘use’
    _mysql.c:1535: error: ‘_mysql_ResultObject’ has no member named ‘result’
    _mysql.c:1535: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type
    /usr/include/mysql/mysql.h:454: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
    _mysql.c:1537: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
    _mysql.c:1537: warning: statement with no effect
    _mysql.c:1538: error: ‘_mysql_ResultObject’ has no member named ‘result’
    _mysql.c:1538: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type
    /usr/include/mysql/mysql.h:454: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
    _mysql.c:1539: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
    _mysql.c:1539: warning: statement with no effect
    _mysql.c:1541: error: ‘_mysql_ResultObject’ has no member named ‘conn’
    _mysql.c:1541: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
    _mysql.c:1541: warning: passing argument 1 of ‘mysql_errno’ from incompatible pointer type
    /usr/include/mysql/mysql.h:371: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
    _mysql.c:1542: error: ‘_mysql_ResultObject’ has no member named ‘conn’
    _mysql.c:1546: warning: implicit declaration of function ‘_PyTuple_Resize’
    _mysql.c:1546: error: ‘r’ undeclared (first use in this function)
    _mysql.c:1549: warning: implicit declaration of function ‘convert_row’
    _mysql.c:1549: warning: statement with no effect
    _mysql.c: At top level:
    _mysql.c:1567: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1646: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1674: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1700: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1740: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1782: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1801: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1820: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1835: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1855: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1894: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1912: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1935: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1952: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1968: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:1997: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2050: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2072: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2099: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2186: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c: In function ‘_mysql_ConnectionObject_dealloc’:
    _mysql.c:2220: error: ‘PyObject’ undeclared (first use in this function)
    _mysql.c:2220: error: ‘o’ undeclared (first use in this function)
    _mysql.c:2220: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
    _mysql.c:2220: warning: statement with no effect
    _mysql.c:2223: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
    _mysql.c:2224: warning: implicit declaration of function ‘_mysql_ConnectionObject_close’
    _mysql.c:2224: error: ‘NULL’ undeclared (first use in this function)
    _mysql.c:2224: warning: statement with no effect
    _mysql.c:2227: warning: implicit declaration of function ‘PyMem_Free’
    _mysql.c: At top level:
    _mysql.c:2230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2251: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2266: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2288: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c: In function ‘_mysql_ResultObject_dealloc’:
    _mysql.c:2310: error: ‘_mysql_ResultObject’ has no member named ‘result’
    _mysql.c:2310: warning: passing argument 1 of ‘mysql_free_result’ from incompatible pointer type
    /usr/include/mysql/mysql.h:447: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
    _mysql.c: At top level:
    _mysql.c:2315: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2329: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_methods’
    _mysql.c:2550: error: array type has incomplete element type
    _mysql.c:2551: error: ‘T_INT’ undeclared here (not in a function)
    _mysql.c:2551: warning: implicit declaration of function ‘offsetof’
    _mysql.c:2551: error: expected expression before ‘_mysql_ConnectionObject’
    _mysql.c:2551: error: ‘READONLY’ undeclared here (not in a function)
    _mysql.c:2558: error: ‘T_OBJECT’ undeclared here (not in a function)
    _mysql.c:2558: error: expected expression before ‘_mysql_ConnectionObject’
    _mysql.c:2565: error: ‘T_UINT’ undeclared here (not in a function)
    _mysql.c:2565: error: expected expression before ‘_mysql_ConnectionObject’
    _mysql.c:2572: error: expected expression before ‘_mysql_ConnectionObject’
    _mysql.c:2579: error: expected expression before ‘_mysql_ConnectionObject’
    _mysql.c:2586: error: ‘NULL’ undeclared here (not in a function)
    _mysql.c:2589: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_methods’
    _mysql.c:2641: error: array type has incomplete element type
    _mysql.c:2642: error: expected expression before ‘_mysql_ResultObject’
    _mysql.c:2652: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:2714: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    _mysql.c: In function ‘_mysql_ConnectionObject_setattr’:
    _mysql.c:2716: error: ‘v’ undeclared (first use in this function)
    _mysql.c:2717: warning: implicit declaration of function ‘PyErr_SetString’
    _mysql.c:2717: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
    _mysql.c:2722: warning: implicit declaration of function ‘PyMember_Set’
    _mysql.c: At top level:
    _mysql.c:2739: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    _mysql.c: In function ‘_mysql_ResultObject_setattr’:
    _mysql.c:2741: error: ‘v’ undeclared (first use in this function)
    _mysql.c:2742: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
    _mysql.c: At top level:
    _mysql.c:2760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’
    _mysql.c:2848: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’
    _mysql.c:2938: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_methods’
    _mysql.c:3010: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _mysql.c:3058: warning: return type defaults to ‘int’
    _mysql.c: In function ‘DL_EXPORT’:
    _mysql.c:3058: error: expected declaration specifiers before ‘init_mysql’
    _mysql.c:3166: error: expected ‘{’ at end of input
    error: command 'gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-t35Uzi-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.6

copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.6

creating build/lib.linux-x86_64-2.6/MySQLdb

copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.6/MySQLdb

copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.6/MySQLdb

copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.6/MySQLdb

copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.6/MySQLdb

copying MySQLdb/release.py -> build/lib.linux-x86_64-2.6/MySQLdb

copying MySQLdb/times.py -> build/lib.linux-x86_64-2.6/MySQLdb

creating build/lib.linux-x86_64-2.6/MySQLdb/constants

copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.6/MySQLdb/constants

copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.6/MySQLdb/constants

copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.6/MySQLdb/constants

copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.6/MySQLdb/constants

copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.6/MySQLdb/constants

copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.6/MySQLdb/constants

copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.6/MySQLdb/constants

running build_ext

building '_mysql' extension

creating build/temp.linux-x86_64-2.6

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-x86_64-2.6/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1

_mysql.c:29:20: error: Python.h: No such file or directory

_mysql.c:40:26: error: structmember.h: No such file or directory

_mysql.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:87: error: expected specifier-qualifier-list before ‘PyObject_HEAD’

_mysql.c:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’

_mysql.c:100: error: expected specifier-qualifier-list before ‘PyObject_HEAD’

_mysql.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’

_mysql.c:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:261: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:379: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:402: error: expected declaration specifiers or ‘...’ before ‘PyObject’

_mysql.c:403: error: expected declaration specifiers or ‘...’ before ‘PyObject’

_mysql.c: In function ‘_mysql_ResultObject_Initialize’:

_mysql.c:405: error: ‘NULL’ undeclared (first use in this function)

_mysql.c:405: error: (Each undeclared identifier is reported only once

_mysql.c:405: error: for each function it appears in.)

_mysql.c:407: warning: initialization from incompatible pointer type

_mysql.c:409: error: ‘PyObject’ undeclared (first use in this function)

_mysql.c:409: error: ‘conv’ undeclared (first use in this function)

_mysql.c:409: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:409: warning: statement with no effect

_mysql.c:413: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’

_mysql.c:413: error: ‘args’ undeclared (first use in this function)

_mysql.c:413: error: ‘kwargs’ undeclared (first use in this function)

_mysql.c:417: warning: implicit declaration of function ‘PyDict_New’

_mysql.c:421: warning: implicit declaration of function ‘Py_INCREF’

_mysql.c:423: error: ‘_mysql_ResultObject’ has no member named ‘conn’

_mysql.c:423: error: expected expression before ‘)’ token

_mysql.c:423: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:423: warning: statement with no effect

_mysql.c:425: error: ‘_mysql_ResultObject’ has no member named ‘use’

_mysql.c:425: warning: statement with no effect

_mysql.c:426: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)

_mysql.c:426: warning: statement with no effect

_mysql.c:428: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:428: warning: passing argument 1 of ‘mysql_use_result’ from incompatible pointer type

/usr/include/mysql/mysql.h:401: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:430: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:430: warning: passing argument 1 of ‘mysql_store_result’ from incompatible pointer type

/usr/include/mysql/mysql.h:400: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:431: error: ‘_mysql_ResultObject’ has no member named ‘result’

_mysql.c:431: warning: statement with no effect

_mysql.c:432: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)

_mysql.c:432: warning: statement with no effect

_mysql.c:434: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:434: warning: passing argument 1 of ‘mysql_field_count’ from incompatible pointer type

/usr/include/mysql/mysql.h:368: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:435: warning: implicit declaration of function ‘_mysql_Exception’

_mysql.c:438: error: ‘_mysql_ResultObject’ has no member named ‘converter’

_mysql.c:438: warning: implicit declaration of function ‘PyTuple_New’

_mysql.c:438: warning: statement with no effect

_mysql.c:439: warning: implicit declaration of function ‘Py_DECREF’

_mysql.c:443: error: ‘_mysql_ResultObject’ has no member named ‘nfields’

_mysql.c:443: warning: statement with no effect

_mysql.c:444: error: ‘_mysql_ResultObject’ has no member named ‘converter’

_mysql.c:450: error: ‘tmp’ undeclared (first use in this function)

_mysql.c:450: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:450: error: ‘fun’ undeclared (first use in this function)

_mysql.c:450: warning: left-hand operand of comma expression has no effect

_mysql.c:450: warning: statement with no effect

_mysql.c:451: warning: implicit declaration of function ‘PyInt_FromLong’

_mysql.c:451: warning: statement with no effect

_mysql.c:456: warning: implicit declaration of function ‘PyObject_GetItem’

_mysql.c:456: warning: statement with no effect

_mysql.c:459: warning: implicit declaration of function ‘PyErr_Occurred’

_mysql.c:460: warning: implicit declaration of function ‘PyErr_ExceptionMatches’

_mysql.c:460: error: ‘PyExc_KeyError’ undeclared (first use in this function)

_mysql.c:464: warning: implicit declaration of function ‘PyErr_Clear’

_mysql.c:466: error: ‘Py_None’ undeclared (first use in this function)

_mysql.c:466: warning: statement with no effect

_mysql.c:469: warning: implicit declaration of function ‘PySequence_Check’

_mysql.c:470: warning: implicit declaration of function ‘PySequence_Size’

_mysql.c:471: error: ‘fun2’ undeclared (first use in this function)

_mysql.c:471: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:471: warning: statement with no effect

_mysql.c:473: error: ‘t’ undeclared (first use in this function)

_mysql.c:473: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:473: warning: implicit declaration of function ‘PySequence_GetItem’

_mysql.c:473: warning: statement with no effect

_mysql.c:479: warning: implicit declaration of function ‘PyTuple_Check’

_mysql.c:479: warning: implicit declaration of function ‘PyTuple_GET_SIZE’

_mysql.c:481: error: ‘pmask’ undeclared (first use in this function)

_mysql.c:481: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:481: warning: statement with no effect

_mysql.c:482: warning: implicit declaration of function ‘PyTuple_GET_ITEM’

_mysql.c:482: warning: statement with no effect

_mysql.c:483: warning: statement with no effect

_mysql.c:484: warning: implicit declaration of function ‘Py_XINCREF’

_mysql.c:485: warning: implicit declaration of function ‘PyInt_Check’

_mysql.c:486: warning: implicit declaration of function ‘PyInt_AS_LONG’

_mysql.c:496: warning: statement with no effect

_mysql.c:506: warning: statement with no effect

_mysql.c:510: warning: statement with no effect

_mysql.c:512: warning: implicit declaration of function ‘PyTuple_SET_ITEM’

_mysql.c:512: error: ‘_mysql_ResultObject’ has no member named ‘converter’

_mysql.c: In function ‘_mysql_ResultObject_clear’:

_mysql.c:538: warning: implicit declaration of function ‘Py_XDECREF’

_mysql.c:538: error: ‘_mysql_ResultObject’ has no member named ‘converter’

_mysql.c:539: error: ‘_mysql_ResultObject’ has no member named ‘converter’

_mysql.c:539: error: ‘NULL’ undeclared (first use in this function)

_mysql.c:539: warning: statement with no effect

_mysql.c:540: error: ‘_mysql_ResultObject’ has no member named ‘conn’

_mysql.c:541: error: ‘_mysql_ResultObject’ has no member named ‘conn’

_mysql.c:541: warning: statement with no effect

_mysql.c: At top level:

_mysql.c:548: error: expected declaration specifiers or ‘...’ before ‘PyObject’

_mysql.c:549: error: expected declaration specifiers or ‘...’ before ‘PyObject’

_mysql.c: In function ‘_mysql_ConnectionObject_Initialize’:

_mysql.c:551: error: ‘NULL’ undeclared (first use in this function)

_mysql.c:551: warning: initialization from incompatible pointer type

_mysql.c:552: error: ‘PyObject’ undeclared (first use in this function)

_mysql.c:552: error: ‘conv’ undeclared (first use in this function)

_mysql.c:552: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:552: warning: statement with no effect

_mysql.c:553: error: ‘ssl’ undeclared (first use in this function)

_mysql.c:553: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:553: warning: statement with no effect

_mysql.c:555: warning: initialization from incompatible pointer type

_mysql.c:555: warning: initialization from incompatible pointer type

_mysql.c:555: warning: initialization from incompatible pointer type

_mysql.c:556: warning: initialization from incompatible pointer type

_mysql.c:556: warning: initialization from incompatible pointer type

_mysql.c:558: warning: initialization from incompatible pointer type

_mysql.c:558: warning: initialization from incompatible pointer type

_mysql.c:558: warning: initialization from incompatible pointer type

_mysql.c:559: warning: initialization from incompatible pointer type

_mysql.c:559: warning: initialization from incompatible pointer type

_mysql.c:573: error: initializer element is not constant

_mysql.c:573: error: (near initialization for ‘kwlist[18]’)

_mysql.c:580: warning: initialization from incompatible pointer type

_mysql.c:581: warning: initialization from incompatible pointer type

_mysql.c:582: warning: initialization from incompatible pointer type

_mysql.c:584: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’

_mysql.c:584: warning: statement with no effect

_mysql.c:585: error: ‘_mysql_ConnectionObject’ has no member named ‘open’

_mysql.c:585: warning: statement with no effect

_mysql.c:588: error: ‘args’ undeclared (first use in this function)

_mysql.c:588: error: ‘kwargs’ undeclared (first use in this function)

_mysql.c:622: error: ‘value’ undeclared (first use in this function)

_mysql.c:622: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:622: warning: statement with no effect

_mysql.c:623: warning: implicit declaration of function ‘PyMapping_GetItemString’

_mysql.c:623: warning: statement with no effect

_mysql.c:623: warning: implicit declaration of function ‘PyString_AsString’

_mysql.c:623: warning: assignment makes pointer from integer without a cast

_mysql.c:624: warning: statement with no effect

_mysql.c:624: warning: assignment makes pointer from integer without a cast

_mysql.c:625: warning: statement with no effect

_mysql.c:625: warning: assignment makes pointer from integer without a cast

_mysql.c:626: warning: statement with no effect

_mysql.c:626: warning: assignment makes pointer from integer without a cast

_mysql.c:627: warning: statement with no effect

_mysql.c:627: warning: assignment makes pointer from integer without a cast

_mysql.c:635: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)

_mysql.c:635: warning: statement with no effect

_mysql.c:636: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:636: warning: passing argument 1 of ‘mysql_init’ from incompatible pointer type

/usr/include/mysql/mysql.h:380: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:639: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:640: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:645: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:646: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:650: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:651: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:655: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:655: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:659: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:659: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:660: warning: comparison of distinct pointer types lacks a cast

_mysql.c:661: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:661: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:662: warning: comparison of distinct pointer types lacks a cast

_mysql.c:663: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:663: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:664: warning: comparison of distinct pointer types lacks a cast

_mysql.c:665: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:665: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:668: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:668: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type

/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:672: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:673: warning: passing argument 1 of ‘mysql_ssl_set’ from incompatible pointer type

/usr/include/mysql/mysql.h:381: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:676: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:677: warning: passing argument 1 of ‘mysql_real_connect’ from incompatible pointer type

/usr/include/mysql/mysql.h:387: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:679: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)

_mysql.c:679: warning: statement with no effect

_mysql.c:688: warning: statement with no effect

_mysql.c:694: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’

_mysql.c:694: warning: statement with no effect

_mysql.c:702: error: ‘_mysql_ConnectionObject’ has no member named ‘open’

_mysql.c:702: warning: statement with no effect

_mysql.c: At top level:

_mysql.c:760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c: In function ‘_mysql_ConnectionObject_clear’:

_mysql.c:792: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’

_mysql.c:793: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’

_mysql.c:793: error: ‘NULL’ undeclared (first use in this function)

_mysql.c:793: warning: statement with no effect

_mysql.c: At top level:

_mysql.c:800: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:828: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:844: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:862: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:881: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:907: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:921: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:943: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:975: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1001: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1028: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1047: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1064: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1080: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1192: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1194: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1260: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1294: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1326: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1362: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1386: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1416: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1441: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1480: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1519: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1524: error: expected declaration specifiers or ‘...’ before ‘PyObject’

_mysql.c:1527: error: expected declaration specifiers or ‘...’ before ‘_PYFUNC’

_mysql.c: In function ‘_mysql__fetch_row’:

_mysql.c:1533: error: ‘PyObject’ undeclared (first use in this function)

_mysql.c:1533: error: ‘v’ undeclared (first use in this function)

_mysql.c:1533: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:1533: warning: statement with no effect

_mysql.c:1534: error: ‘_mysql_ResultObject’ has no member named ‘use’

_mysql.c:1535: error: ‘_mysql_ResultObject’ has no member named ‘result’

_mysql.c:1535: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type

/usr/include/mysql/mysql.h:454: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’

_mysql.c:1537: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)

_mysql.c:1537: warning: statement with no effect

_mysql.c:1538: error: ‘_mysql_ResultObject’ has no member named ‘result’

_mysql.c:1538: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type

/usr/include/mysql/mysql.h:454: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’

_mysql.c:1539: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)

_mysql.c:1539: warning: statement with no effect

_mysql.c:1541: error: ‘_mysql_ResultObject’ has no member named ‘conn’

_mysql.c:1541: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:1541: warning: passing argument 1 of ‘mysql_errno’ from incompatible pointer type

/usr/include/mysql/mysql.h:371: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’

_mysql.c:1542: error: ‘_mysql_ResultObject’ has no member named ‘conn’

_mysql.c:1546: warning: implicit declaration of function ‘_PyTuple_Resize’

_mysql.c:1546: error: ‘r’ undeclared (first use in this function)

_mysql.c:1549: warning: implicit declaration of function ‘convert_row’

_mysql.c:1549: warning: statement with no effect

_mysql.c: At top level:

_mysql.c:1567: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1646: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1674: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1700: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1740: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1782: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1801: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1820: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1835: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1855: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1894: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1912: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1935: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1952: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1968: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:1997: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2050: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2072: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2099: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2186: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c: In function ‘_mysql_ConnectionObject_dealloc’:

_mysql.c:2220: error: ‘PyObject’ undeclared (first use in this function)

_mysql.c:2220: error: ‘o’ undeclared (first use in this function)

_mysql.c:2220: error: invalid operands to binary * (have ‘char **’ and ‘char **’)

_mysql.c:2220: warning: statement with no effect

_mysql.c:2223: error: ‘_mysql_ConnectionObject’ has no member named ‘open’

_mysql.c:2224: warning: implicit declaration of function ‘_mysql_ConnectionObject_close’

_mysql.c:2224: error: ‘NULL’ undeclared (first use in this function)

_mysql.c:2224: warning: statement with no effect

_mysql.c:2227: warning: implicit declaration of function ‘PyMem_Free’

_mysql.c: At top level:

_mysql.c:2230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2251: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2266: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2288: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c: In function ‘_mysql_ResultObject_dealloc’:

_mysql.c:2310: error: ‘_mysql_ResultObject’ has no member named ‘result’

_mysql.c:2310: warning: passing argument 1 of ‘mysql_free_result’ from incompatible pointer type

/usr/include/mysql/mysql.h:447: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’

_mysql.c: At top level:

_mysql.c:2315: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2329: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_methods’

_mysql.c:2550: error: array type has incomplete element type

_mysql.c:2551: error: ‘T_INT’ undeclared here (not in a function)

_mysql.c:2551: warning: implicit declaration of function ‘offsetof’

_mysql.c:2551: error: expected expression before ‘_mysql_ConnectionObject’

_mysql.c:2551: error: ‘READONLY’ undeclared here (not in a function)

_mysql.c:2558: error: ‘T_OBJECT’ undeclared here (not in a function)

_mysql.c:2558: error: expected expression before ‘_mysql_ConnectionObject’

_mysql.c:2565: error: ‘T_UINT’ undeclared here (not in a function)

_mysql.c:2565: error: expected expression before ‘_mysql_ConnectionObject’

_mysql.c:2572: error: expected expression before ‘_mysql_ConnectionObject’

_mysql.c:2579: error: expected expression before ‘_mysql_ConnectionObject’

_mysql.c:2586: error: ‘NULL’ undeclared here (not in a function)

_mysql.c:2589: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_methods’

_mysql.c:2641: error: array type has incomplete element type

_mysql.c:2642: error: expected expression before ‘_mysql_ResultObject’

_mysql.c:2652: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:2714: error: expected declaration specifiers or ‘...’ before ‘PyObject’

_mysql.c: In function ‘_mysql_ConnectionObject_setattr’:

_mysql.c:2716: error: ‘v’ undeclared (first use in this function)

_mysql.c:2717: warning: implicit declaration of function ‘PyErr_SetString’

_mysql.c:2717: error: ‘PyExc_AttributeError’ undeclared (first use in this function)

_mysql.c:2722: warning: implicit declaration of function ‘PyMember_Set’

_mysql.c: At top level:

_mysql.c:2739: error: expected declaration specifiers or ‘...’ before ‘PyObject’

_mysql.c: In function ‘_mysql_ResultObject_setattr’:

_mysql.c:2741: error: ‘v’ undeclared (first use in this function)

_mysql.c:2742: error: ‘PyExc_AttributeError’ undeclared (first use in this function)

_mysql.c: At top level:

_mysql.c:2760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’

_mysql.c:2848: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’

_mysql.c:2938: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_methods’

_mysql.c:3010: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

_mysql.c:3058: warning: return type defaults to ‘int’

_mysql.c: In function ‘DL_EXPORT’:

_mysql.c:3058: error: expected declaration specifiers before ‘init_mysql’

_mysql.c:3166: error: expected ‘{’ at end of input

error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-t35Uzi-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/MySQL-python
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
  File "/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 33: ordinal not in range(128)
[root@ie tmp]# 
[root@ie tmp]# easy_install mysql-statsd
Searching for mysql-statsd
Best match: mysql-statsd 0.1.1
Processing mysql_statsd-0.1.1-py2.6.egg
mysql-statsd 0.1.1 is already the active version in easy-install.pth
Installing mysql_statsd script to /usr/bin

Using /usr/lib/python2.6/site-packages/mysql_statsd-0.1.1-py2.6.egg
Processing dependencies for mysql-statsd
Searching for MySQL-python==1.2.5
Reading http://pypi.python.org/simple/MySQL-python/
Best match: MySQL-python 1.2.5
Downloading https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip#md5=654f75b302db6ed8dc5a898c625e030c
Processing MySQL-python-1.2.5.zip
Writing /tmp/easy_install-fj3C6w/MySQL-python-1.2.5/setup.cfg
Running MySQL-python-1.2.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fj3C6w/MySQL-python-1.2.5/egg-dist-tmp-zljpCs
_mysql.c:29:20: error: Python.h: No such file or directory
_mysql.c:40:26: error: structmember.h: No such file or directory
_mysql.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:87: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:100: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’
_mysql.c:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:261: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:379: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:402: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:403: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_Initialize’:
_mysql.c:405: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:405: error: (Each undeclared identifier is reported only once
_mysql.c:405: error: for each function it appears in.)
_mysql.c:407: warning: initialization from incompatible pointer type
_mysql.c:409: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:409: error: ‘conv’ undeclared (first use in this function)
_mysql.c:409: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:409: warning: statement with no effect
_mysql.c:413: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’
_mysql.c:413: error: ‘args’ undeclared (first use in this function)
_mysql.c:413: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:417: warning: implicit declaration of function ‘PyDict_New’
_mysql.c:421: warning: implicit declaration of function ‘Py_INCREF’
_mysql.c:423: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:423: error: expected expression before ‘)’ token
_mysql.c:423: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:423: warning: statement with no effect
_mysql.c:425: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:425: warning: statement with no effect
_mysql.c:426: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:426: warning: statement with no effect
_mysql.c:428: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:428: warning: passing argument 1 of ‘mysql_use_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:401: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:430: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:430: warning: passing argument 1 of ‘mysql_store_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:400: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:431: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:431: warning: statement with no effect
_mysql.c:432: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:432: warning: statement with no effect
_mysql.c:434: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:434: warning: passing argument 1 of ‘mysql_field_count’ from incompatible pointer type
/usr/include/mysql/mysql.h:368: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:435: warning: implicit declaration of function ‘_mysql_Exception’
_mysql.c:438: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:438: warning: implicit declaration of function ‘PyTuple_New’
_mysql.c:438: warning: statement with no effect
_mysql.c:439: warning: implicit declaration of function ‘Py_DECREF’
_mysql.c:443: error: ‘_mysql_ResultObject’ has no member named ‘nfields’
_mysql.c:443: warning: statement with no effect
_mysql.c:444: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:450: error: ‘tmp’ undeclared (first use in this function)
_mysql.c:450: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:450: error: ‘fun’ undeclared (first use in this function)
_mysql.c:450: warning: left-hand operand of comma expression has no effect
_mysql.c:450: warning: statement with no effect
_mysql.c:451: warning: implicit declaration of function ‘PyInt_FromLong’
_mysql.c:451: warning: statement with no effect
_mysql.c:456: warning: implicit declaration of function ‘PyObject_GetItem’
_mysql.c:456: warning: statement with no effect
_mysql.c:459: warning: implicit declaration of function ‘PyErr_Occurred’
_mysql.c:460: warning: implicit declaration of function ‘PyErr_ExceptionMatches’
_mysql.c:460: error: ‘PyExc_KeyError’ undeclared (first use in this function)
_mysql.c:464: warning: implicit declaration of function ‘PyErr_Clear’
_mysql.c:466: error: ‘Py_None’ undeclared (first use in this function)
_mysql.c:466: warning: statement with no effect
_mysql.c:469: warning: implicit declaration of function ‘PySequence_Check’
_mysql.c:470: warning: implicit declaration of function ‘PySequence_Size’
_mysql.c:471: error: ‘fun2’ undeclared (first use in this function)
_mysql.c:471: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:471: warning: statement with no effect
_mysql.c:473: error: ‘t’ undeclared (first use in this function)
_mysql.c:473: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:473: warning: implicit declaration of function ‘PySequence_GetItem’
_mysql.c:473: warning: statement with no effect
_mysql.c:479: warning: implicit declaration of function ‘PyTuple_Check’
_mysql.c:479: warning: implicit declaration of function ‘PyTuple_GET_SIZE’
_mysql.c:481: error: ‘pmask’ undeclared (first use in this function)
_mysql.c:481: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:481: warning: statement with no effect
_mysql.c:482: warning: implicit declaration of function ‘PyTuple_GET_ITEM’
_mysql.c:482: warning: statement with no effect
_mysql.c:483: warning: statement with no effect
_mysql.c:484: warning: implicit declaration of function ‘Py_XINCREF’
_mysql.c:485: warning: implicit declaration of function ‘PyInt_Check’
_mysql.c:486: warning: implicit declaration of function ‘PyInt_AS_LONG’
_mysql.c:496: warning: statement with no effect
_mysql.c:506: warning: statement with no effect
_mysql.c:510: warning: statement with no effect
_mysql.c:512: warning: implicit declaration of function ‘PyTuple_SET_ITEM’
_mysql.c:512: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c: In function ‘_mysql_ResultObject_clear’:
_mysql.c:538: warning: implicit declaration of function ‘Py_XDECREF’
_mysql.c:538: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:539: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:539: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:539: warning: statement with no effect
_mysql.c:540: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:541: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:541: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:548: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:549: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ConnectionObject_Initialize’:
_mysql.c:551: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:551: warning: initialization from incompatible pointer type
_mysql.c:552: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:552: error: ‘conv’ undeclared (first use in this function)
_mysql.c:552: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:552: warning: statement with no effect
_mysql.c:553: error: ‘ssl’ undeclared (first use in this function)
_mysql.c:553: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:553: warning: statement with no effect
_mysql.c:555: warning: initialization from incompatible pointer type
_mysql.c:555: warning: initialization from incompatible pointer type
_mysql.c:555: warning: initialization from incompatible pointer type
_mysql.c:556: warning: initialization from incompatible pointer type
_mysql.c:556: warning: initialization from incompatible pointer type
_mysql.c:558: warning: initialization from incompatible pointer type
_mysql.c:558: warning: initialization from incompatible pointer type
_mysql.c:558: warning: initialization from incompatible pointer type
_mysql.c:559: warning: initialization from incompatible pointer type
_mysql.c:559: warning: initialization from incompatible pointer type
_mysql.c:573: error: initializer element is not constant
_mysql.c:573: error: (near initialization for ‘kwlist[18]’)
_mysql.c:580: warning: initialization from incompatible pointer type
_mysql.c:581: warning: initialization from incompatible pointer type
_mysql.c:582: warning: initialization from incompatible pointer type
_mysql.c:584: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:584: warning: statement with no effect
_mysql.c:585: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:585: warning: statement with no effect
_mysql.c:588: error: ‘args’ undeclared (first use in this function)
_mysql.c:588: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:622: error: ‘value’ undeclared (first use in this function)
_mysql.c:622: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:622: warning: statement with no effect
_mysql.c:623: warning: implicit declaration of function ‘PyMapping_GetItemString’
_mysql.c:623: warning: statement with no effect
_mysql.c:623: warning: implicit declaration of function ‘PyString_AsString’
_mysql.c:623: warning: assignment makes pointer from integer without a cast
_mysql.c:624: warning: statement with no effect
_mysql.c:624: warning: assignment makes pointer from integer without a cast
_mysql.c:625: warning: statement with no effect
_mysql.c:625: warning: assignment makes pointer from integer without a cast
_mysql.c:626: warning: statement with no effect
_mysql.c:626: warning: assignment makes pointer from integer without a cast
_mysql.c:627: warning: statement with no effect
_mysql.c:627: warning: assignment makes pointer from integer without a cast
_mysql.c:635: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:635: warning: statement with no effect
_mysql.c:636: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:636: warning: passing argument 1 of ‘mysql_init’ from incompatible pointer type
/usr/include/mysql/mysql.h:380: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:639: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:640: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:645: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:646: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:650: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:651: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:655: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:655: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:659: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:659: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:660: warning: comparison of distinct pointer types lacks a cast
_mysql.c:661: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:661: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:662: warning: comparison of distinct pointer types lacks a cast
_mysql.c:663: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:663: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:664: warning: comparison of distinct pointer types lacks a cast
_mysql.c:665: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:665: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:668: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:668: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:445: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:672: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:673: warning: passing argument 1 of ‘mysql_ssl_set’ from incompatible pointer type
/usr/include/mysql/mysql.h:381: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:676: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:677: warning: passing argument 1 of ‘mysql_real_connect’ from incompatible pointer type
/usr/include/mysql/mysql.h:387: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:679: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:679: warning: statement with no effect
_mysql.c:688: warning: statement with no effect
_mysql.c:694: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:694: warning: statement with no effect
_mysql.c:702: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:702: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_clear’:
_mysql.c:792: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:793: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:793: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:793: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:800: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:828: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:844: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:862: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:881: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:907: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:921: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:943: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:975: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1001: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1028: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1047: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1064: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1080: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1192: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1194: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1260: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1294: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1326: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1362: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1386: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1416: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1441: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1480: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1519: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1524: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:1527: error: expected declaration specifiers or ‘...’ before ‘_PYFUNC’
_mysql.c: In function ‘_mysql__fetch_row’:
_mysql.c:1533: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:1533: error: ‘v’ undeclared (first use in this function)
_mysql.c:1533: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:1533: warning: statement with no effect
_mysql.c:1534: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:1535: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1535: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type
/usr/include/mysql/mysql.h:454: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c:1537: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1537: warning: statement with no effect
_mysql.c:1538: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1538: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type
/usr/include/mysql/mysql.h:454: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c:1539: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1539: warning: statement with no effect
_mysql.c:1541: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1541: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:1541: warning: passing argument 1 of ‘mysql_errno’ from incompatible pointer type
/usr/include/mysql/mysql.h:371: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:1542: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1546: warning: implicit declaration of function ‘_PyTuple_Resize’
_mysql.c:1546: error: ‘r’ undeclared (first use in this function)
_mysql.c:1549: warning: implicit declaration of function ‘convert_row’
_mysql.c:1549: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:1567: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1646: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1674: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1700: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1740: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1782: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1801: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1820: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1835: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1855: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1894: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1912: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1935: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1952: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1968: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1997: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2050: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2072: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2099: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2186: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_dealloc’:
_mysql.c:2220: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:2220: error: ‘o’ undeclared (first use in this function)
_mysql.c:2220: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:2220: warning: statement with no effect
_mysql.c:2223: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:2224: warning: implicit declaration of function ‘_mysql_ConnectionObject_close’
_mysql.c:2224: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:2224: warning: statement with no effect
_mysql.c:2227: warning: implicit declaration of function ‘PyMem_Free’
_mysql.c: At top level:
_mysql.c:2230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2251: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2266: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2288: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ResultObject_dealloc’:
_mysql.c:2310: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:2310: warning: passing argument 1 of ‘mysql_free_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:447: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c: At top level:
_mysql.c:2315: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2329: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_methods’
_mysql.c:2550: error: array type has incomplete element type
_mysql.c:2551: error: ‘T_INT’ undeclared here (not in a function)
_mysql.c:2551: warning: implicit declaration of function ‘offsetof’
_mysql.c:2551: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2551: error: ‘READONLY’ undeclared here (not in a function)
_mysql.c:2558: error: ‘T_OBJECT’ undeclared here (not in a function)
_mysql.c:2558: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2565: error: ‘T_UINT’ undeclared here (not in a function)
_mysql.c:2565: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2572: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2579: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2586: error: ‘NULL’ undeclared here (not in a function)
_mysql.c:2589: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_methods’
_mysql.c:2641: error: array type has incomplete element type
_mysql.c:2642: error: expected expression before ‘_mysql_ResultObject’
_mysql.c:2652: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2714: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ConnectionObject_setattr’:
_mysql.c:2716: error: ‘v’ undeclared (first use in this function)
_mysql.c:2717: warning: implicit declaration of function ‘PyErr_SetString’
_mysql.c:2717: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c:2722: warning: implicit declaration of function ‘PyMember_Set’
_mysql.c: At top level:
_mysql.c:2739: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_setattr’:
_mysql.c:2741: error: ‘v’ undeclared (first use in this function)
_mysql.c:2742: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:2848: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’
_mysql.c:2938: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_methods’
_mysql.c:3010: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:3058: warning: return type defaults to ‘int’
_mysql.c: In function ‘DL_EXPORT’:
_mysql.c:3058: error: expected declaration specifiers before ‘init_mysql’
_mysql.c:3166: error: expected ‘{’ at end of input
error: Setup script exited with error: command 'gcc' failed with exit status 1
[root@ie tmp]# 

I've sent you an email, see if that works.
Closing the issue as this package is now installable through easy_install / pip