Installation de Crème 1.2 sous Linux - jmarmand - 31-03-2012
Précision importante : ce tutoriel est pour l'instant sous la forme d'un message de forum. Il n'a pas vocation à ne rester que cela. Il se trouve simplement que je trouve que la forme post de forum permet facilement de modifier les choses en fonction de vos retours. Une fois que le tutoriel sera considéré comme fini, il sera transformé en pdf et mis dans les sources de Crème.
Pour ce tutoriel d'installation de Crème CRM sous Linux on va faire les choses du mieux possible. On va donc installer des choses qui pourraient vous sembler inutile mais qui à terme permettront d'avoir une installation pérenne et qui ne rentrera pas en collision avec d'autres logiciels que vous pourriez vouloir installer.
Enfin, le tutoriel va être en deux parties, la première partie vous permet d'installer tout le nécessaire pour faire fonctionner Crème avec le serveur de développement intégré dans Django. Le serveur de développement n'est pas une façon pérenne de faire fonctionner une application Django. Mais c'est un moyen simple de vérifier que tout fonctionne et vous pouvez faire quelques tests avec pour vérifier que Crème vous convient.
La deuxième partie du tutoriel vous permettra d'utiliser Apache pour faire tourner votre Crème. Bien que plus compliqué à faire fonctionner, c'est une façon pérenne de faire les choses.
Une remarque très importante : si l'utilisation du serveur de développement est déconseillé pour une utilisation sur du long terme dans le cadre d'une machine personnelle, elle est par contre totalement interdite dans le cadre d'un hébergement sur un serveur. Si vous comptez installer Crème tout de suite sur un serveur, il ne faut pas, pas une seule seconde, utiliser le serveur de développement. En effet celui-ci est fait pour le test et rien d'autre. Il n'est pas prévu, ni en terme de performance ni en terme de sécurité, pour être utilisé dans un vrai contexte de production.
On va donc commencer par installer Virtualenv. Virtualenv vous permet en effet d'avoir plusieurs environnements virtuels Python. L’intérêt est de pouvoir cloisonner les dépendances par projet. Vous êtes ainsi sûr que votre Crème n’arrêtera pas de fonctionner juste parce que vous avez dû mettre à jour une librairie Python pour pouvoir installer un autre logiciel. On ne va pas se contenter d'installer Virtualenv et on va installer aussi Virtualenvwrapper qui est une surcouche à Virtualenv et qui vous simplifiera les choses.
Pour installer tout cela, vous allez devoir commencer par installer python-setuptools et python-pip. Si vous êtes sous Debian ou Ubuntu il vous suffit de faire :
Code : sudo apt-get install python-setuptools
sudo apt-get install python-pip
Ensuite, vous allez installer Virtualenvwrapper qui installera automatiquement Virtualenv en même temps.
Pour cela il vous suffit de taper :
Code : sudo pip install virtualenvwrapper
Avant d'aller plus loin, il faut que vous vérifiez que les packages suivants sont bien installés, sinon, installez les : - mysql_config
libmysqlclient-dev
python-dev
libxslt1-dev
graphviz
graphviz-dev
Une fois que tout est installé on va pouvoir créer le Virtualenv pour Crème. Il reste pourtant une dernière petite config à faire, à savoir indiquer où vous allez stocker vos différents Virtualenv. Je vais partir du principe que vous utilisez le répertoire Envs à la racine de votre home. Il va falloir que dans le fichier de configuration de votre shell (.bashrc si vous utilisez le bash) vous configuriez la variable WORKON_HOME. Cela se fait de la manière suivante (pour bash)
Code : export WORKON_HOME=~/Envs
Une fois cela fait et après avoir rechargé votre configuration, vous pouvez créer votre Virtualenv en tapant la commande :
Code : mkvirtualenv –no-site-packages creme
L'option –no-site-packages permet d'être sûr que votre Virtualenv sera bien isolé de votre système et que vous n'utiliserez pas par inadvertance un package de celui-ci. Il faut d'ailleurs noter que dans les dernières versions de Virtualenvwrapper, cette option est obsolète. En effet, l'isolation des Virtualenv est devenu le comportement par défaut.
Une fois que votre Virtualenv est créé, il faut l'activer pour votre console. Vous allez en effet installer de nouveaux packages Python et faire des commandes Django et tout doit se faire dans votre Virtualenv. L'activation d'un Virtualenv se fait avec la commande workon. Si vous la lancez sans argument elle vous donnera la liste des Virtualenv possibles. Avec un nom de Virtualenv, elle l'active.
Ici, vous devez donc taper
Il y a d'autre commandes intéressantes dans Virtualenvwrapper. Vous les trouverez dans le man. Une commande qui vous sera utile est la commande deactivate qui permet de sortir d'un Virtualenv pour revenir à votre environnement système classique.
Maintenant que vous avez activé votre Virtualenv, il vous faut récupérer Crème. Je vais partir du principe que vous voulez installer la version de dev. Mais la suite de ce tutoriel fonctionne également avec la version 1.2 (qui sortira courant avril 2012).
Il vous faut récupérer Crème, pour cela il suffit d'utiliser mercurial (que vous devez avoir installé avec votre gestionnaire de package préféré).
Taper simplement à l'endroit où vous voulez déposer le code source de Crème :
Code : hg clone https://bitbucket.org/hybird/creme_crm-1.2
Vous remarquerez que les sources de Crème contiennent (dans le répertoire creme) un petit fichier requirements.txt. C'est ce fichier qui va servir à installer de manière automatique les dépendances.
Il vous suffit donc de taper (suivant l'endroit d'où vous vous trouvez)
Code : pip install -r creme/requirements.txt
ou
Code : pip install -r requirements.txt
Une fois l'installation des dépendances finies et avant de passer au déploiement de Crème proprement dit, on va devoir configurer la base de données.
Je vais partir du principe que vous utilisez MySQL comme serveur de base de données. Pour pouvoir utiliser Crème, il faut créer une base de données et un utilisateur qui a les droits sur celle-ci. Vous pouvez bien entendu le faire en graphique grâce à un outil d'administration de BD.
Vous pouvez aussi le faire en console. Logguez vous dans MySQL avec la commande suivante :
Puis passez sur la base de configuration avec la commande :
Ajoutez maintenant votre utilisateur (en remplaçant les valeurs d'exemple par vos propres valeurs) avec la commande :
Code : INSERT INTO user(host,user,password) VALUES ('localhost','cremeuser',PASSWORD('34jkfue1dioaA'));
Il ne vous reste plus alors qu'à créer la base de données
create database bdcremecrm ;
et à donner à votre utilisateurs les bonnes permissions.
Code : GRANT SELECT ,
INSERT ,
UPDATE ,
DELETE ,
CREATE ,
DROP ,
INDEX ,
ALTER ,
CREATE TEMPORARY TABLES ,
CREATE VIEW ,
EVENT,
TRIGGER,
SHOW VIEW ,
CREATE ROUTINE,
ALTER ROUTINE,
EXECUTE ON `bdcremecrm` . * TO 'cremeuser'@'localhost';
On peut passer à la dernière phase du déploiement de Crème. Rendez-vous dans le répertoire creme. Il va vous falloir créer un fichier de configuration propre à votre machine.
Ce fichier doit s'appeler local_settings.py
Il doit contenir les lignes suivantes (vous devrez si nécessaire remplacer les noms de la table, de l'utilisateur et son mot de passe par les valeurs que vous avez défini précédemment) :
Code : from os.path import dirname, join, abspath
CREME_ROOT = dirname(abspath(__file__))
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'bdcremecrm', # Or path to database file if using sqlite3.
'USER': 'cremeuser', # Not used with sqlite3.
'PASSWORD': '34jkfue1dioaA', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
'OPTIONS': {'init_command': 'SET storage_engine=INNODB' }, # Extra parameters for database connection. Consult backend module's document for available keywords.
},
}
Ensuite il vous suffit de taper :
Code : python manage.py syncdb
Syncdb vous demandera de configurer un utilisateur, faites le, ce sera votre premier utilisateur Crème
puis
Code : python manage.py migrate --all
puis
Code : python manage.py creme_populate
et enfin :
Code : python manage.py generatemedia
Une fois cela fait il ne nous reste plus qu'à lancer le serveur de test en faisant
Code : python manage.py runserver
Vous pouvez maintenant vous connecter sur http://localhost:8000 pour voir que votre Crème fonctionne. Mais, et je vais le répéter, ce serveur de développement n'est pas fait pour être utiliser dans un contexte de production. La prochaine partie de ce tutoriel vous apprendra à mettre en place une vraie solution d'hébergement de votre Crème CRM.
Re: Installation de Crème sous Linux - redb - 15-06-2012
Bonjour à tous
j'ai noté une inversion
mkvirtualenv creme –no-site-packages
pour moi ça a marché en faisant
mkvirtualenv –no-site-packages creme
merci
Re: Installation de Crème sous Linux - Creme - 16-06-2012
Merci, c'est corrigé.
Re: Installation de Crème sous Linux - djyp - 05-09-2012
Bonjour,
Je me lance moi-même dans l'installation de Creme ! 8-)
Je désenchante : putain ça plante ! :o
Je trouve cette page, je recommence l'installage
Je gueule :evil:
Jusqu'à pip tout est valable mais pour "mkvirtualenv" : commande introuvable !! :!:
La solution : enlever le mk et ajouter un - pour faire : virtualenv –-no-site-packages creme parce que de toute façon mkmachin renvoit tous les paramètres à machin qui s'exécute :evil:
Enfin ça marche, je continue... nouvel embuche qui pue :roll:
"workon creme" commande introuvable :evil:
À ceci j'y trouve source creme/bin/activate
J'me sens trop un pro, je continue le tuto 8-)
J'installe des requirements.txt et j'me prend des erreurs à la gueule (encore !!) :x
Un petit cd creme_crm/creme aurait été apprécié, ça m'aurait évité de chercher...
Donc il me manque mysql_config que j'ai fini par apprendre qu'il est dans le paquet libmysqlclient-dev
Au fil des erreurs j'installe les -dev de chaque librairies demandées, libxml2, libxslt, graphviz... faut tout installer ! :?
Ah, des erreurs _mysql.c à n'en plus finir. Là c'est moi qui en peut plus... Donc je ne sais pas quoi faire avec alors je continue, on verra bien :geek:
Bon je skippe la config MySQL... je l'ai fait déjà auparavant !
local_settings.py je mets ça où ? J'en perds mes vers ! Allez on essaie à la source de l'appli
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
GWWARR !!
:evil: :evil: :evil: Ce truc là marchait avant et maintenant en environnement virtuel ça existe plus... :evil: :evil: :evil:
Y a-t-il un moyen de l'ajouter dans l'environnement virtuel ?
Ah oui et avant d'aller jusque là, j'ai réussi à installer Creme auparavant, en tout cas au moins en manage.py runserver, mais en fait dès la connexion j'ai :
Citation :Creme Erreur 500
Une erreur interne s'est produite.
:?
Re: Installation de Crème sous Linux - djyp - 05-09-2012
J'ai une meilleure piste ! C'est lors de Code : pip install requirements.txt
que ça foire... c'est l'install de mysql-python qui me donne 56 erreurs... maintenant que faire pour que ça marche ?
Je vous copie ici ce qui sort de pip à partir de là où ça plante. Il apparait que c'est la compilation qui foire !
Code : Running setup.py install for mysql-python
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-i686-2.6/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX
In file included from _mysql.c:29:
pymemcompat.h:10:20: error: Python.h: Aucun fichier ou dossier de ce type
_mysql.c:30:26: error: structmember.h: Aucun fichier ou dossier de ce type
_mysql.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:75: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:88: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’
_mysql.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:227: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:318: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:336: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:359: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:360: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_Initialize’:
_mysql.c:362: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:362: error: (Each undeclared identifier is reported only once
_mysql.c:362: error: for each function it appears in.)
_mysql.c:364: warning: initialization from incompatible pointer type
_mysql.c:366: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:366: error: ‘conv’ undeclared (first use in this function)
_mysql.c:366: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:366: warning: statement with no effect
_mysql.c:370: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’
_mysql.c:370: error: ‘args’ undeclared (first use in this function)
_mysql.c:370: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:373: warning: implicit declaration of function ‘PyDict_New’
_mysql.c:373: warning: statement with no effect
_mysql.c:375: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:375: error: expected expression before ‘)’ token
_mysql.c:375: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:375: warning: statement with no effect
_mysql.c:376: warning: implicit declaration of function ‘Py_INCREF’
_mysql.c:377: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:377: warning: statement with no effect
_mysql.c:378: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:378: warning: statement with no effect
_mysql.c:380: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:380: warning: passing argument 1 of ‘mysql_use_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:458: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:382: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:382: warning: passing argument 1 of ‘mysql_store_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:457: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:383: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:383: warning: statement with no effect
_mysql.c:384: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:384: warning: statement with no effect
_mysql.c:386: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:386: warning: implicit declaration of function ‘PyTuple_New’
_mysql.c:386: warning: statement with no effect
_mysql.c:390: error: ‘_mysql_ResultObject’ has no member named ‘nfields’
_mysql.c:390: warning: statement with no effect
_mysql.c:391: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:394: error: ‘tmp’ undeclared (first use in this function)
_mysql.c:394: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:394: error: ‘fun’ undeclared (first use in this function)
_mysql.c:394: warning: left-hand operand of comma expression has no effect
_mysql.c:394: warning: statement with no effect
_mysql.c:395: warning: implicit declaration of function ‘PyInt_FromLong’
_mysql.c:395: warning: statement with no effect
_mysql.c:397: warning: implicit declaration of function ‘PyObject_GetItem’
_mysql.c:397: warning: statement with no effect
_mysql.c:398: warning: implicit declaration of function ‘Py_DECREF’
_mysql.c:400: warning: implicit declaration of function ‘PyErr_Clear’
_mysql.c:401: error: ‘Py_None’ undeclared (first use in this function)
_mysql.c:401: warning: statement with no effect
_mysql.c:404: warning: implicit declaration of function ‘PySequence_Check’
_mysql.c:405: warning: implicit declaration of function ‘PySequence_Size’
_mysql.c:406: error: ‘fun2’ undeclared (first use in this function)
_mysql.c:406: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:406: warning: statement with no effect
_mysql.c:408: error: ‘t’ undeclared (first use in this function)
_mysql.c:408: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:408: warning: implicit declaration of function ‘PySequence_GetItem’
_mysql.c:408: warning: statement with no effect
_mysql.c:410: warning: implicit declaration of function ‘PyTuple_Check’
_mysql.c:411: warning: implicit declaration of function ‘PyTuple_GET_SIZE’
_mysql.c:413: error: ‘pmask’ undeclared (first use in this function)
_mysql.c:413: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:413: warning: statement with no effect
_mysql.c:414: warning: implicit declaration of function ‘PyTuple_GET_ITEM’
_mysql.c:414: warning: statement with no effect
_mysql.c:415: warning: statement with no effect
_mysql.c:416: warning: implicit declaration of function ‘PyInt_Check’
_mysql.c:417: warning: implicit declaration of function ‘PyInt_AS_LONG’
_mysql.c:433: warning: statement with no effect
_mysql.c:436: warning: statement with no effect
_mysql.c:438: warning: implicit declaration of function ‘PyTuple_SET_ITEM’
_mysql.c:438: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c: In function ‘_mysql_ResultObject_clear’:
_mysql.c:462: warning: implicit declaration of function ‘Py_XDECREF’
_mysql.c:462: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:463: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:463: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:463: warning: statement with no effect
_mysql.c:464: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:465: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:465: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:472: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:473: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ConnectionObject_Initialize’:
_mysql.c:475: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:475: warning: initialization from incompatible pointer type
_mysql.c:476: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:476: error: ‘conv’ undeclared (first use in this function)
_mysql.c:476: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:476: warning: statement with no effect
_mysql.c:477: error: ‘ssl’ undeclared (first use in this function)
_mysql.c:477: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:477: warning: statement with no effect
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:480: warning: initialization from incompatible pointer type
_mysql.c:480: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:483: warning: initialization from incompatible pointer type
_mysql.c:483: warning: initialization from incompatible pointer type
_mysql.c:493: error: initializer element is not constant
_mysql.c:493: error: (near initialization for ‘kwlist[16]’)
_mysql.c:496: warning: initialization from incompatible pointer type
_mysql.c:497: warning: initialization from incompatible pointer type
_mysql.c:498: warning: initialization from incompatible pointer type
_mysql.c:500: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:500: warning: statement with no effect
_mysql.c:501: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:501: warning: statement with no effect
_mysql.c:502: warning: implicit declaration of function ‘_mysql_Exception’
_mysql.c:503: error: ‘args’ undeclared (first use in this function)
_mysql.c:503: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:523: error: ‘value’ undeclared (first use in this function)
_mysql.c:523: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:523: warning: statement with no effect
_mysql.c:524: warning: implicit declaration of function ‘PyMapping_GetItemString’
_mysql.c:524: warning: statement with no effect
_mysql.c:524: warning: implicit declaration of function ‘PyString_AsString’
_mysql.c:524: warning: assignment makes pointer from integer without a cast
_mysql.c:525: warning: statement with no effect
_mysql.c:525: warning: assignment makes pointer from integer without a cast
_mysql.c:526: warning: statement with no effect
_mysql.c:526: warning: assignment makes pointer from integer without a cast
_mysql.c:527: warning: statement with no effect
_mysql.c:527: warning: assignment makes pointer from integer without a cast
_mysql.c:528: warning: statement with no effect
_mysql.c:528: warning: assignment makes pointer from integer without a cast
_mysql.c:536: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:536: warning: statement with no effect
_mysql.c:537: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:537: warning: passing argument 1 of ‘mysql_init’ from incompatible pointer type
/usr/include/mysql/mysql.h:437: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:540: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:541: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:544: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:544: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:548: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:548: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:549: warning: comparison of distinct pointer types lacks a cast
_mysql.c:550: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:550: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:551: warning: comparison of distinct pointer types lacks a cast
_mysql.c:552: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:552: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:553: warning: comparison of distinct pointer types lacks a cast
_mysql.c:554: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:554: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:557: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:557: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:561: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:562: warning: passing argument 1 of ‘mysql_ssl_set’ from incompatible pointer type
/usr/include/mysql/mysql.h:438: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:565: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:566: warning: passing argument 1 of ‘mysql_real_connect’ from incompatible pointer type
/usr/include/mysql/mysql.h:444: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:568: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:568: warning: statement with no effect
_mysql.c:577: warning: statement with no effect
_mysql.c:583: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:583: warning: statement with no effect
_mysql.c:591: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:591: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:649: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_clear’:
_mysql.c:681: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:682: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:682: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:682: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:689: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:717: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:733: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:751: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:770: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:796: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:818: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:850: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:876: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:903: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:918: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:935: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:951: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:969: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1004: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1035: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1037: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1067: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1097: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1163: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1223: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1248: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1273: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1312: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1351: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1356: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:1359: error: expected declaration specifiers or ‘...’ before ‘_PYFUNC’
_mysql.c: In function ‘_mysql__fetch_row’:
_mysql.c:1365: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:1365: error: ‘v’ undeclared (first use in this function)
_mysql.c:1365: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:1365: warning: statement with no effect
_mysql.c:1366: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:1367: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1367: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type
/usr/include/mysql/mysql.h:552: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c:1369: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1369: warning: statement with no effect
_mysql.c:1370: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1370: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type
/usr/include/mysql/mysql.h:552: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c:1371: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1371: warning: statement with no effect
_mysql.c:1373: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1373: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:1373: warning: passing argument 1 of ‘mysql_errno’ from incompatible pointer type
/usr/include/mysql/mysql.h:428: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:1374: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1378: warning: implicit declaration of function ‘_PyTuple_Resize’
_mysql.c:1378: error: ‘r’ undeclared (first use in this function)
_mysql.c:1381: warning: implicit declaration of function ‘convert_row’
_mysql.c:1381: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:1399: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1506: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1528: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1568: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1597: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1612: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1627: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1642: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1658: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1693: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1711: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1734: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1751: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1767: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1796: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1819: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1849: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1871: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1898: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1919: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1960: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1980: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_dealloc’:
_mysql.c:2014: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:2014: error: ‘o’ undeclared (first use in this function)
_mysql.c:2014: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:2014: warning: statement with no effect
_mysql.c:2017: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:2018: warning: implicit declaration of function ‘_mysql_ConnectionObject_close’
_mysql.c:2018: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:2018: warning: statement with no effect
_mysql.c:2021: warning: implicit declaration of function ‘PyMem_Free’
_mysql.c: At top level:
_mysql.c:2024: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2041: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2056: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2078: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ResultObject_dealloc’:
_mysql.c:2100: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:2100: warning: passing argument 1 of ‘mysql_free_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:545: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c: At top level:
_mysql.c:2105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_methods’
_mysql.c:2330: error: array type has incomplete element type
_mysql.c:2331: error: ‘T_INT’ undeclared here (not in a function)
_mysql.c:2331: warning: implicit declaration of function ‘offsetof’
_mysql.c:2331: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2331: error: ‘RO’ undeclared here (not in a function)
_mysql.c:2338: error: ‘T_OBJECT’ undeclared here (not in a function)
_mysql.c:2338: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2345: error: ‘T_UINT’ undeclared here (not in a function)
_mysql.c:2345: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2352: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2359: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2366: error: ‘NULL’ undeclared here (not in a function)
_mysql.c:2369: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_methods’
_mysql.c:2421: error: array type has incomplete element type
_mysql.c:2422: error: expected expression before ‘_mysql_ResultObject’
_mysql.c:2432: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2460: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2490: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ConnectionObject_setattr’:
_mysql.c:2492: error: ‘v’ undeclared (first use in this function)
_mysql.c:2493: warning: implicit declaration of function ‘PyErr_SetString’
_mysql.c:2493: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c:2498: warning: implicit declaration of function ‘PyMember_Set’
_mysql.c: At top level:
_mysql.c:2515: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_setattr’:
_mysql.c:2517: error: ‘v’ undeclared (first use in this function)
_mysql.c:2518: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2536: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:2620: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’
_mysql.c:2706: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_methods’
_mysql.c:2778: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2810: warning: return type defaults to ‘int’
_mysql.c: In function ‘DL_EXPORT’:
_mysql.c:2810: error: expected declaration specifiers before ‘init_mysql’
_mysql.c:2888: error: expected ‘{’ at end of input
error: command 'gcc' failed with exit status 1
Complete output from command /home/www/sites/creme/bin/python -c "import setuptools;__file__='/home/www/sites/creme/build/mysql-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wYpSSi-record/install-record.txt --single-version-externally-managed --install-headers /home/www/sites/creme/include/site/python2.6:
running install
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.6/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-i686-2.6/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX
In file included from _mysql.c:29:
pymemcompat.h:10:20: error: Python.h: Aucun fichier ou dossier de ce type
_mysql.c:30:26: error: structmember.h: Aucun fichier ou dossier de ce type
_mysql.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:75: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:88: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_mysql.c:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’
_mysql.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:227: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:318: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:336: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:359: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:360: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_Initialize’:
_mysql.c:362: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:362: error: (Each undeclared identifier is reported only once
_mysql.c:362: error: for each function it appears in.)
_mysql.c:364: warning: initialization from incompatible pointer type
_mysql.c:366: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:366: error: ‘conv’ undeclared (first use in this function)
_mysql.c:366: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:366: warning: statement with no effect
_mysql.c:370: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’
_mysql.c:370: error: ‘args’ undeclared (first use in this function)
_mysql.c:370: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:373: warning: implicit declaration of function ‘PyDict_New’
_mysql.c:373: warning: statement with no effect
_mysql.c:375: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:375: error: expected expression before ‘)’ token
_mysql.c:375: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:375: warning: statement with no effect
_mysql.c:376: warning: implicit declaration of function ‘Py_INCREF’
_mysql.c:377: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:377: warning: statement with no effect
_mysql.c:378: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:378: warning: statement with no effect
_mysql.c:380: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:380: warning: passing argument 1 of ‘mysql_use_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:458: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:382: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:382: warning: passing argument 1 of ‘mysql_store_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:457: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:383: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:383: warning: statement with no effect
_mysql.c:384: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:384: warning: statement with no effect
_mysql.c:386: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:386: warning: implicit declaration of function ‘PyTuple_New’
_mysql.c:386: warning: statement with no effect
_mysql.c:390: error: ‘_mysql_ResultObject’ has no member named ‘nfields’
_mysql.c:390: warning: statement with no effect
_mysql.c:391: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:394: error: ‘tmp’ undeclared (first use in this function)
_mysql.c:394: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:394: error: ‘fun’ undeclared (first use in this function)
_mysql.c:394: warning: left-hand operand of comma expression has no effect
_mysql.c:394: warning: statement with no effect
_mysql.c:395: warning: implicit declaration of function ‘PyInt_FromLong’
_mysql.c:395: warning: statement with no effect
_mysql.c:397: warning: implicit declaration of function ‘PyObject_GetItem’
_mysql.c:397: warning: statement with no effect
_mysql.c:398: warning: implicit declaration of function ‘Py_DECREF’
_mysql.c:400: warning: implicit declaration of function ‘PyErr_Clear’
_mysql.c:401: error: ‘Py_None’ undeclared (first use in this function)
_mysql.c:401: warning: statement with no effect
_mysql.c:404: warning: implicit declaration of function ‘PySequence_Check’
_mysql.c:405: warning: implicit declaration of function ‘PySequence_Size’
_mysql.c:406: error: ‘fun2’ undeclared (first use in this function)
_mysql.c:406: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:406: warning: statement with no effect
_mysql.c:408: error: ‘t’ undeclared (first use in this function)
_mysql.c:408: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:408: warning: implicit declaration of function ‘PySequence_GetItem’
_mysql.c:408: warning: statement with no effect
_mysql.c:410: warning: implicit declaration of function ‘PyTuple_Check’
_mysql.c:411: warning: implicit declaration of function ‘PyTuple_GET_SIZE’
_mysql.c:413: error: ‘pmask’ undeclared (first use in this function)
_mysql.c:413: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:413: warning: statement with no effect
_mysql.c:414: warning: implicit declaration of function ‘PyTuple_GET_ITEM’
_mysql.c:414: warning: statement with no effect
_mysql.c:415: warning: statement with no effect
_mysql.c:416: warning: implicit declaration of function ‘PyInt_Check’
_mysql.c:417: warning: implicit declaration of function ‘PyInt_AS_LONG’
_mysql.c:433: warning: statement with no effect
_mysql.c:436: warning: statement with no effect
_mysql.c:438: warning: implicit declaration of function ‘PyTuple_SET_ITEM’
_mysql.c:438: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c: In function ‘_mysql_ResultObject_clear’:
_mysql.c:462: warning: implicit declaration of function ‘Py_XDECREF’
_mysql.c:462: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:463: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:463: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:463: warning: statement with no effect
_mysql.c:464: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:465: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:465: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:472: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:473: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ConnectionObject_Initialize’:
_mysql.c:475: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:475: warning: initialization from incompatible pointer type
_mysql.c:476: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:476: error: ‘conv’ undeclared (first use in this function)
_mysql.c:476: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:476: warning: statement with no effect
_mysql.c:477: error: ‘ssl’ undeclared (first use in this function)
_mysql.c:477: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:477: warning: statement with no effect
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:479: warning: initialization from incompatible pointer type
_mysql.c:480: warning: initialization from incompatible pointer type
_mysql.c:480: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:482: warning: initialization from incompatible pointer type
_mysql.c:483: warning: initialization from incompatible pointer type
_mysql.c:483: warning: initialization from incompatible pointer type
_mysql.c:493: error: initializer element is not constant
_mysql.c:493: error: (near initialization for ‘kwlist[16]’)
_mysql.c:496: warning: initialization from incompatible pointer type
_mysql.c:497: warning: initialization from incompatible pointer type
_mysql.c:498: warning: initialization from incompatible pointer type
_mysql.c:500: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:500: warning: statement with no effect
_mysql.c:501: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:501: warning: statement with no effect
_mysql.c:502: warning: implicit declaration of function ‘_mysql_Exception’
_mysql.c:503: error: ‘args’ undeclared (first use in this function)
_mysql.c:503: error: ‘kwargs’ undeclared (first use in this function)
_mysql.c:523: error: ‘value’ undeclared (first use in this function)
_mysql.c:523: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:523: warning: statement with no effect
_mysql.c:524: warning: implicit declaration of function ‘PyMapping_GetItemString’
_mysql.c:524: warning: statement with no effect
_mysql.c:524: warning: implicit declaration of function ‘PyString_AsString’
_mysql.c:524: warning: assignment makes pointer from integer without a cast
_mysql.c:525: warning: statement with no effect
_mysql.c:525: warning: assignment makes pointer from integer without a cast
_mysql.c:526: warning: statement with no effect
_mysql.c:526: warning: assignment makes pointer from integer without a cast
_mysql.c:527: warning: statement with no effect
_mysql.c:527: warning: assignment makes pointer from integer without a cast
_mysql.c:528: warning: statement with no effect
_mysql.c:528: warning: assignment makes pointer from integer without a cast
_mysql.c:536: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:536: warning: statement with no effect
_mysql.c:537: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:537: warning: passing argument 1 of ‘mysql_init’ from incompatible pointer type
/usr/include/mysql/mysql.h:437: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:540: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:541: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:544: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:544: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:548: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:548: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:549: warning: comparison of distinct pointer types lacks a cast
_mysql.c:550: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:550: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:551: warning: comparison of distinct pointer types lacks a cast
_mysql.c:552: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:552: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:553: warning: comparison of distinct pointer types lacks a cast
_mysql.c:554: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:554: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:557: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:557: warning: passing argument 1 of ‘mysql_options’ from incompatible pointer type
/usr/include/mysql/mysql.h:543: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:561: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:562: warning: passing argument 1 of ‘mysql_ssl_set’ from incompatible pointer type
/usr/include/mysql/mysql.h:438: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:565: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:566: warning: passing argument 1 of ‘mysql_real_connect’ from incompatible pointer type
/usr/include/mysql/mysql.h:444: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:568: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:568: warning: statement with no effect
_mysql.c:577: warning: statement with no effect
_mysql.c:583: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:583: warning: statement with no effect
_mysql.c:591: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:591: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:649: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_clear’:
_mysql.c:681: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:682: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:682: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:682: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:689: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:717: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:733: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:751: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:770: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:796: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:818: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:850: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:876: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:903: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:918: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:935: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:951: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:969: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1004: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1035: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1037: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1067: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1097: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1163: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1223: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1248: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1273: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1312: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1351: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1356: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c:1359: error: expected declaration specifiers or ‘...’ before ‘_PYFUNC’
_mysql.c: In function ‘_mysql__fetch_row’:
_mysql.c:1365: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:1365: error: ‘v’ undeclared (first use in this function)
_mysql.c:1365: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:1365: warning: statement with no effect
_mysql.c:1366: error: ‘_mysql_ResultObject’ has no member named ‘use’
_mysql.c:1367: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1367: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type
/usr/include/mysql/mysql.h:552: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c:1369: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1369: warning: statement with no effect
_mysql.c:1370: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:1370: warning: passing argument 1 of ‘mysql_fetch_row’ from incompatible pointer type
/usr/include/mysql/mysql.h:552: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c:1371: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_mysql.c:1371: warning: statement with no effect
_mysql.c:1373: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1373: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:1373: warning: passing argument 1 of ‘mysql_errno’ from incompatible pointer type
/usr/include/mysql/mysql.h:428: note: expected ‘struct MYSQL *’ but argument is of type ‘char * (*)[1]’
_mysql.c:1374: error: ‘_mysql_ResultObject’ has no member named ‘conn’
_mysql.c:1378: warning: implicit declaration of function ‘_PyTuple_Resize’
_mysql.c:1378: error: ‘r’ undeclared (first use in this function)
_mysql.c:1381: warning: implicit declaration of function ‘convert_row’
_mysql.c:1381: warning: statement with no effect
_mysql.c: At top level:
_mysql.c:1399: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1506: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1528: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1568: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1597: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1612: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1627: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1642: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1658: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1693: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1711: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1734: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1751: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1767: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1796: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1819: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1849: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1871: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1898: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1919: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1960: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:1980: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ConnectionObject_dealloc’:
_mysql.c:2014: error: ‘PyObject’ undeclared (first use in this function)
_mysql.c:2014: error: ‘o’ undeclared (first use in this function)
_mysql.c:2014: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_mysql.c:2014: warning: statement with no effect
_mysql.c:2017: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:2018: warning: implicit declaration of function ‘_mysql_ConnectionObject_close’
_mysql.c:2018: error: ‘NULL’ undeclared (first use in this function)
_mysql.c:2018: warning: statement with no effect
_mysql.c:2021: warning: implicit declaration of function ‘PyMem_Free’
_mysql.c: At top level:
_mysql.c:2024: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2041: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2056: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2078: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c: In function ‘_mysql_ResultObject_dealloc’:
_mysql.c:2100: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c:2100: warning: passing argument 1 of ‘mysql_free_result’ from incompatible pointer type
/usr/include/mysql/mysql.h:545: note: expected ‘struct MYSQL_RES *’ but argument is of type ‘char **’
_mysql.c: At top level:
_mysql.c:2105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_methods’
_mysql.c:2330: error: array type has incomplete element type
_mysql.c:2331: error: ‘T_INT’ undeclared here (not in a function)
_mysql.c:2331: warning: implicit declaration of function ‘offsetof’
_mysql.c:2331: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2331: error: ‘RO’ undeclared here (not in a function)
_mysql.c:2338: error: ‘T_OBJECT’ undeclared here (not in a function)
_mysql.c:2338: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2345: error: ‘T_UINT’ undeclared here (not in a function)
_mysql.c:2345: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2352: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2359: error: expected expression before ‘_mysql_ConnectionObject’
_mysql.c:2366: error: ‘NULL’ undeclared here (not in a function)
_mysql.c:2369: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_methods’
_mysql.c:2421: error: array type has incomplete element type
_mysql.c:2422: error: expected expression before ‘_mysql_ResultObject’
_mysql.c:2432: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2460: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2490: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ConnectionObject_setattr’:
_mysql.c:2492: error: ‘v’ undeclared (first use in this function)
_mysql.c:2493: warning: implicit declaration of function ‘PyErr_SetString’
_mysql.c:2493: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c:2498: warning: implicit declaration of function ‘PyMember_Set’
_mysql.c: At top level:
_mysql.c:2515: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_mysql.c: In function ‘_mysql_ResultObject_setattr’:
_mysql.c:2517: error: ‘v’ undeclared (first use in this function)
_mysql.c:2518: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:2536: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ConnectionObject_Type’
_mysql.c:2620: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_ResultObject_Type’
_mysql.c:2706: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mysql_methods’
_mysql.c:2778: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_mysql.c:2810: warning: return type defaults to ‘int’
_mysql.c: In function ‘DL_EXPORT’:
_mysql.c:2810: error: expected declaration specifiers before ‘init_mysql’
_mysql.c:2888: error: expected ‘{’ at end of input
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /home/www/sites/creme/bin/python -c "import setuptools;__file__='/home/www/sites/creme/build/mysql-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wYpSSi-record/install-record.txt --single-version-externally-managed --install-headers /home/www/sites/creme/include/site/python2.6 failed with error code 1 in /home/www/sites/creme/build/mysql-python
Storing complete log in /home/djyp/.pip/pip.log
EDIT : J'ai trouvé la solution, il fallait aussi installer python-dev http://stackoverflow.com/questions/3960 ... sql-python
Maintenant le problème est à partir de "python manage.py syncdb"
Code : Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/home/www/sites/creme/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/home/www/sites/creme/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/www/sites/creme/lib/python2.6/site-packages/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/www/sites/creme/lib/python2.6/site-packages/django/core/management/__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/www/sites/creme/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/www/sites/creme/lib/python2.6/site-packages/south/management/commands/__init__.py", line 10, in <module>
import django.template.loaders.app_directories
File "/home/www/sites/creme/lib/python2.6/site-packages/django/template/loaders/app_directories.py", line 23, in <module>
raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))
django.core.exceptions.ImproperlyConfigured: ImportError mediagenerator: No module named mediagenerator
Pas de module mediagenerator ? Là je comprend pas, il est pourtant bel et bien dans mon environnement ! J'en peux plus là
Re: Installation de Crème sous Linux - jmarmand - 05-09-2012
Bonjour,
Je reprends vos messages un après l'autre ce soir pour voir si je peux vous aider (et vous donner les raisons des problèmes que vous avez eu mais que vous avez résolu).
Re: Installation de Crème sous Linux - djyp - 05-09-2012
Merci !
Alors pour info maintenant, là où ça bloque c'est l'intstallation de setuptools... J'arrive pas à trouver ce qui manque pour le moment
Cette fois-ci j'ai tout effacé, j'ai tout recommencé
Code : Running command /home/www/sites/creme/bin/python -c "import setuptools;__file__='/home/www/sites/creme/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-r6s9MU-record/install-record.txt --single-version-externally-managed --install-headers /home/www/sites/creme/include/site/python2.6
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /home/www/sites/creme/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg
Egg installation
Patching...
Renaming /home/www/sites/creme/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg into /home/www/sites/creme/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg.OLD.1346863707.7
Patched done.
Relaunching...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'install' is not defined
Complete output from command /home/www/sites/creme/bin/python -c "import setuptools;__file__='/home/www/sites/creme/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-r6s9MU-record/install-record.txt --single-version-externally-managed --install-headers /home/www/sites/creme/include/site/python2.6:
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /home/www/sites/creme/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg
Egg installation
Patching...
Renaming /home/www/sites/creme/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg into /home/www/sites/creme/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg.OLD.1346863707.7
Patched done.
Relaunching...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'install' is not defined
----------------------------------------
Command /home/www/sites/creme/bin/python -c "import setuptools;__file__='/home/www/sites/creme/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-r6s9MU-record/install-record.txt --single-version-externally-managed --install-headers /home/www/sites/creme/include/site/python2.6 failed with error code 1 in /home/www/sites/creme/build/distribute
Exception information:
Traceback (most recent call last):
File "/home/www/sites/creme/lib/python2.6/site-packages/pip-1.2-py2.6.egg/pip/basecommand.py", line 106, in main
status = self.run(options, args)
File "/home/www/sites/creme/lib/python2.6/site-packages/pip-1.2-py2.6.egg/pip/commands/install.py", line 261, in run
requirement_set.install(install_options, global_options)
File "/home/www/sites/creme/lib/python2.6/site-packages/pip-1.2-py2.6.egg/pip/req.py", line 1166, in install
requirement.install(install_options, global_options)
File "/home/www/sites/creme/lib/python2.6/site-packages/pip-1.2-py2.6.egg/pip/req.py", line 589, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/home/www/sites/creme/lib/python2.6/site-packages/pip-1.2-py2.6.egg/pip/util.py", line 612, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /home/www/sites/creme/bin/python -c "import setuptools;__file__='/home/www/sites/creme/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-r6s9MU-record/install-record.txt --single-version-externally-managed --install-headers /home/www/sites/creme/include/site/python2.6 failed with error code 1 in /home/www/sites/creme/build/distribute
Re: Installation de Crème sous Linux - jmarmand - 05-09-2012
Alors concernant vos premières erreurs, une fois avoir fait sudo pip install virtualenvwrapper il fallait faire la configuration de virtualenv (dispo ici : http://www.doughellmann.com/docs/virtualenvwrapper/) dans mon premier billet je parle de WORKON_HOME j'ai oublié de parler du source /usr/local/bin/virtualenvwrapper.sh a mettre dans votre .bashrc
Sans cela, ni mkvirtualenv ni workon ne fonctionneront.
Concernant votre erreur de django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
C'est normal. En effet, vous avez créé votre environnement virtuel avec l'option –-no-site-packages. Le no site packages signifie que tous les packages système (donc installés hors de l’environnement virtuel) ne sont pas pris en compte.
Quand vous avez une erreur 500 comme cela semblait être le cas à un moment, pour avoir plus d'infos mettez DEBUG à True dans settings.py (à ne surtout pas laisser en production) cela vous donnera les infos nécessaires à la compréhension de l'erreur.
Pour les dépendances, n'oubliez pas de regarder la liste des choses à ne surtout pas oublier d'installer dans le premier billet. Je la reproduis ici :
mysql_config
libmysqlclient-dev
python-dev
libxslt1-dev
graphviz
graphviz-dev
Vous voyez qu'il y avait bien python-dev de lister.
Pour le problème de mediagenerator, cela pouvait être du aussi au no site package.
Par contre pour votre dernière erreur, je ne vois pas.
Quelle est la commande que vous avez fait qui vous donner cela ?
Re: Installation de Crème sous Linux - djyp - 06-09-2012
Eh bien j'ai tout supprimé (l'environnement et l'appli) et j'ai repris le tuto au début.
Cette dernière erreur apparait au moment de faire : $ pip install - r requirements.txt
Donc si j'ai pas les paquets nécessaire ça risque pas de marcher ! Donc y'a un problème lors de l'installation de stuptools qui, je crois, est lié à mediagenerator justement, je n'ai pas encore trouvé de qu'installe le package "django-mediagenerator"
Re: Installation de Crème sous Linux - djyp - 20-09-2012
Bonjour,
Me revoici encore car après quelques essais j'ai toujours le même résultat. J'ai bien tout suivi en reprenant les détails sur la configuratio nde virtualenvwrapper mais je me heurte toujours à un problème avec mediagenerator.
Lors de pip install - requirements.txt j'ai ça :
Code : Downloading/unpacking django-mediagenerator==1.10.3 (from -r requirements.txt (line 6))
Running setup.py egg_info for package django-mediagenerator
warning: no files found matching '*.html' under directory 'mediagenerator'
warning: no files found matching '*.gif' under directory 'mediagenerator'
warning: no files found matching '*.jpg' under directory 'mediagenerator'
warning: no files found matching '*.jpeg' under directory 'mediagenerator'
warning: no files found matching '*.png' under directory 'mediagenerator'
warning: no files found matching '*.js' under directory 'mediagenerator'
warning: no files found matching '*.css' under directory 'mediagenerator'
warning: no files found matching '*.sass' under directory 'mediagenerator'
warning: no files found matching '*.manifest' under directory 'base_project'
warning: no files found matching '*.gif' under directory 'base_project'
warning: no files found matching '*.jpg' under directory 'base_project'
warning: no files found matching '*.jpeg' under directory 'base_project'
warning: no files found matching '*.js' under directory 'base_project'
warning: no files found matching '*.sass' under directory 'base_project'
warning: manifest_maker: MANIFEST.in, line 7: 'prune' expects a single <dir_pattern>
no previously-included directories found matching 'base_project/_generated_media'
Et donc lors de python manage.py syncdb j'ai ça :
Code : Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/home/djyp/Envs/creme/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/home/djyp/Envs/creme/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/djyp/Envs/creme/lib/python2.6/site-packages/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/djyp/Envs/creme/lib/python2.6/site-packages/django/core/management/__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/djyp/Envs/creme/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/djyp/Envs/creme/lib/python2.6/site-packages/south/management/commands/__init__.py", line 10, in <module>
import django.template.loaders.app_directories
File "/home/djyp/Envs/creme/lib/python2.6/site-packages/django/template/loaders/app_directories.py", line 23, in <module>
raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))
django.core.exceptions.ImproperlyConfigured: ImportError mediagenerator: No module named mediagenerator
Avez-vous une piste ? Parce que là je sèche grave :/
|