Hi,
I've this problem, that at the moment, I am not able to solve:
I've two pc, one is just for computation and the other is just for storage. MySql is installed on the second, but all the software will be installed on the first machine. So in the first machine I will have my software which uses MySqlPython.
Where must I install MySqlPython? What must I do to connect my sw to MySqlPython and then to MySql??
thanks a lot
Marco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I try to install Mysql-python on the client side, but when I run python setup.py build I obtain a list of warnings and errors.
I change the enviroment variable mysqlclient using all the possible value, but it's the same.
I attach some errors:
_mysql.c: In function _mysql_NewException':
_mysql.c:2629: error:PyObject' undeclared (first use in this function)
_mysql.c:2629: error: e' undeclared (first use in this function)
_mysql.c:2631: error:edict' undeclared (first use in this function)
_mysql.c:2631: error: name' undeclared (first use in this function)
_mysql.c:2633: error:dict' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2652: error: syntax error before "init_mysql"
_mysql.c: In function init_mysql':
_mysql.c:2654: error:PyObject' undeclared (first use in this function)
_mysql.c:2654: error: dict' undeclared (first use in this function)
_mysql.c:2654: error:module' undeclared (first use in this function)
_mysql.c:2654: error: emod' undeclared (first use in this function)
_mysql.c:2654: error:edict' undeclared (first use in this function)
_mysql.c:2656: error: syntax error before ')' token
_mysql.c:2658: error: request for member ob_type' in something not a structure or union
_mysql.c:2658: error:PyType_Type' undeclared (first use in this function)
_mysql.c:2659: error: request for member ob_type' in something not a structure or union
_mysql.c:2671: error:Py_eval_input' undeclared (first use in this function)
_mysql.c:2678: error: syntax error before ')' token
_mysql.c:2682: error: syntax error before ')' token
thank a lot
Marco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've this problem, that at the moment, I am not able to solve:
I've two pc, one is just for computation and the other is just for storage. MySql is installed on the second, but all the software will be installed on the first machine. So in the first machine I will have my software which uses MySqlPython.
Where must I install MySqlPython? What must I do to connect my sw to MySqlPython and then to MySql??
thanks a lot
Marco
MySQL-python needs to be on the MySQL client side; it does not need to be on the MySQL server side.
Hi,
I try to install Mysql-python on the client side, but when I run python setup.py build I obtain a list of warnings and errors.
I change the enviroment variable mysqlclient using all the possible value, but it's the same.
I attach some errors:
_mysql.c: In function
_mysql_NewException': _mysql.c:2629: error:
PyObject' undeclared (first use in this function)_mysql.c:2629: error:
e' undeclared (first use in this function) _mysql.c:2631: error:
edict' undeclared (first use in this function)_mysql.c:2631: error:
name' undeclared (first use in this function) _mysql.c:2633: error:
dict' undeclared (first use in this function)_mysql.c: At top level:
_mysql.c:2652: error: syntax error before "init_mysql"
_mysql.c: In function
init_mysql': _mysql.c:2654: error:
PyObject' undeclared (first use in this function)_mysql.c:2654: error:
dict' undeclared (first use in this function) _mysql.c:2654: error:
module' undeclared (first use in this function)_mysql.c:2654: error:
emod' undeclared (first use in this function) _mysql.c:2654: error:
edict' undeclared (first use in this function)_mysql.c:2656: error: syntax error before ')' token
_mysql.c:2658: error: request for member
ob_type' in something not a structure or union _mysql.c:2658: error:
PyType_Type' undeclared (first use in this function)_mysql.c:2659: error: request for member
ob_type' in something not a structure or union _mysql.c:2671: error:
Py_eval_input' undeclared (first use in this function)_mysql.c:2678: error: syntax error before ')' token
_mysql.c:2682: error: syntax error before ')' token
thank a lot
Marco
Wherever you compile MySQL-python, you must have the MySQL development package installed, and you evidently do not in this case.