IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques tierces Python Discussion :

MySQLdb et windows :aie:


Sujet :

Bibliothèques tierces Python

  1. #1
    Membre régulier Avatar de MenshaKaine
    Inscrit en
    Juin 2009
    Messages
    68
    Détails du profil
    Informations personnelles :
    Âge : 47

    Informations forums :
    Inscription : Juin 2009
    Messages : 68
    Points : 81
    Points
    81
    Par défaut MySQLdb et windows :aie:
    bonjour,

    j'ai récupéré la dernière version de MySQLdb, la dernièere version de Mysql.

    j'ai python 2.6 installé sur mon xp 64 bit.

    j'ai réussit à lancer la procédure d'installation de : python setup.py install ... mais j'ai le message suivant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
     
    C:\Documents and Settings\45502316\My Documents\Téléchargements\MySQL-python-1.2.3c1>python setup.py install
    running install
    running bdist_egg
    running egg_info
    writing MySQL_python.egg-info\PKG-INFO
    writing top-level names to MySQL_python.egg-info\top_level.txt
    writing dependency_links to MySQL_python.egg-info\dependency_links.txt
    reading manifest file 'MySQL_python.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'MySQL_python.egg-info\SOURCES.txt'
    installing library code to build\bdist.win32\egg
    running install_lib
    running build_py
    creating build
    creating build\lib.win32-2.6
    copying _mysql_exceptions.py -> build\lib.win32-2.6
    creating build\lib.win32-2.6\MySQLdb
    copying MySQLdb\__init__.py -> build\lib.win32-2.6\MySQLdb
    copying MySQLdb\converters.py -> build\lib.win32-2.6\MySQLdb
    copying MySQLdb\connections.py -> build\lib.win32-2.6\MySQLdb
    copying MySQLdb\cursors.py -> build\lib.win32-2.6\MySQLdb
    copying MySQLdb\release.py -> build\lib.win32-2.6\MySQLdb
    copying MySQLdb\times.py -> build\lib.win32-2.6\MySQLdb
    creating build\lib.win32-2.6\MySQLdb\constants
    copying MySQLdb\constants\__init__.py -> build\lib.win32-2.6\MySQLdb\constants
    copying MySQLdb\constants\CR.py -> build\lib.win32-2.6\MySQLdb\constants
    copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-2.6\MySQLdb\constants
    copying MySQLdb\constants\ER.py -> build\lib.win32-2.6\MySQLdb\constants
    copying MySQLdb\constants\FLAG.py -> build\lib.win32-2.6\MySQLdb\constants
    copying MySQLdb\constants\REFRESH.py -> build\lib.win32-2.6\MySQLdb\constants
    copying MySQLdb\constants\CLIENT.py -> build\lib.win32-2.6\MySQLdb\constants
    running build_ext
    building '_mysql' extension
    error: Unable to find vcvarsall.bat
    et là je me dit si c'est à cause de visual c++ 6 et son compilo, je le trouve ou ?!

  2. #2
    Membre régulier Avatar de MenshaKaine
    Inscrit en
    Juin 2009
    Messages
    68
    Détails du profil
    Informations personnelles :
    Âge : 47

    Informations forums :
    Inscription : Juin 2009
    Messages : 68
    Points : 81
    Points
    81
    Par défaut
    J'ai trouvé des éléments de réposne sur des forums.

    Il faudrait installer le compilateur de vs 2008. MinGW ne serait pas utilisable pour la version de python 2.6 !

    J'ai installer vs 2008 express et la j'ai encore des erreurs de compilation cf(ci-dessous)!!!

    alors attention gros troll:
    1- est-ce que distutils de python est un gros truc bien pourri (oui je suis un peu énervé ) ?
    - est-ce que python est un langage utilisé avec mysql sous windows !?


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
     
     
    C:\Documents and Settings\45502316\My Documents\Téléchargements\MySQL-python-1.2.3c1>python setup.py install
    running install
    running bdist_egg
    running egg_info
    writing MySQL_python.egg-info\PKG-INFO
    writing top-level names to MySQL_python.egg-info\top_level.txt
    writing dependency_links to MySQL_python.egg-info\dependency_links.txt
    reading manifest file 'MySQL_python.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'MySQL_python.egg-info\SOURCES.txt'
    installing library code to build\bdist.win32\egg
    running install_lib
    running build_py
    copying MySQLdb\release.py -> build\lib.win32-2.6\MySQLdb
    running build_ext
    building '_mysql' extension
    creating build\temp.win32-2.6
    creating build\temp.win32-2.6\Release
    C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Dversion_info
    =(1,2,3,'gamma',1) -D__version__=1.2.3c1 "-IC:\Program Files\MySQL\MySQL Server 5.4\include" -IC:\Python26\inc
    lude -IC:\Python26\PC /Tc_mysql.c /Fobuild\temp.win32-2.6\Release\_mysql.obj /Zl
    _mysql.c
    C:\Program Files\MySQL\MySQL Server 5.4\include\config-win.h(171) : warning C4005: 'SIZEOF_OFF_T'*: redéfiniti
    on de macro
            c:\python26\include\pyconfig.h(361)*: voir la définition précédente de 'SIZEOF_OFF_T'
    C:\Program Files\MySQL\MySQL Server 5.4\include\config-win.h(269) : warning C4005: 'HAVE_STDDEF_H'*: redéfinit
    ion de macro
            c:\python26\include\pyconfig.h(647)*: voir la définition précédente de 'HAVE_STDDEF_H'
    C:\Program Files\MySQL\MySQL Server 5.4\include\config-win.h(276) : warning C4005: 'HAVE_ISNAN'*: redéfinition
     de macro
            c:\python26\include\pyconfig.h(412)*: voir la définition précédente de 'HAVE_ISNAN'
    _mysql.c(1363) : warning C4018: '<'*: incompatibilité signed/unsigned
    C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO "/LIBPATH:C:\Program
     Files\MySQL\MySQL Server 5.4\lib\opt" /LIBPATH:C:\Python26\libs /LIBPATH:C:\Python26\PCbuild kernel32.lib adv
    api32.lib wsock32.lib mysqlclient.lib /EXPORT:init_mysql build\temp.win32-2.6\Release\_mysql.obj /OUT:build\li
    b.win32-2.6\_mysql.pyd /IMPLIB:build\temp.win32-2.6\Release\_mysql.lib /MANIFESTFILE:build\temp.win32-2.6\Rele
    ase\_mysql.pyd.manifest
       Création de la bibliothèque build\temp.win32-2.6\Release\_mysql.lib et de l'objet build\temp.win32-2.6\Rele
    ase\_mysql.exp
    _mysql.obj : warning LNK4217: symbole défini localement _strncpy importé dans la fonction __mysql_row_to_dict
    _mysql.obj : warning LNK4217: symbole défini localement _strncat importé dans la fonction __mysql_row_to_dict
    _mysql.obj : warning LNK4217: symbole défini localement _sprintf importé dans la fonction __mysql_ConnectionOb
    ject_repr
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe -nologo -manifest build\temp.win32-2.6\Release\_mysql
    .pyd.manifest -outputresource:build\lib.win32-2.6\_mysql.pyd;2
     
    build\temp.win32-2.6\Release\_mysql.pyd.manifest : general error c1010070: Failed to load and parse the manife
    st. Le fichier spicifii est introuvable.
    error: command 'mt.exe' failed with exit status 31
     
    C:\Documents and Settings\45502316\My Documents\Téléchargements\MySQL-python-1.2.3c1>

Discussions similaires

  1. Installer MysqlDb sous windows
    Par astragoth dans le forum Déploiement/Installation
    Réponses: 1
    Dernier message: 13/12/2010, 12h29
  2. [MySQLdb] installation window
    Par KINENVEU dans le forum Bibliothèques tierces
    Réponses: 3
    Dernier message: 20/12/2009, 09h44
  3. Documentation gratuite sur l'API Windows, COM, DCOM, OLE, etc.
    Par Community Management dans le forum Windows
    Réponses: 1
    Dernier message: 16/11/2006, 15h28
  4. Programme de boot qui passe la main à Windows
    Par Bob dans le forum Assembleur
    Réponses: 7
    Dernier message: 25/11/2002, 03h08
  5. Quel désassembleur/assembleur pour un exe Windows ?
    Par Anonymous dans le forum x86 32-bits / 64-bits
    Réponses: 6
    Dernier message: 17/04/2002, 10h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo