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

Eric Python Discussion :

Installation Eric5 difficile


Sujet :

Eric Python

  1. #1
    Membre du Club Avatar de ptissendier
    Homme Profil pro
    Retraité
    Inscrit en
    Juillet 2011
    Messages
    64
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Retraité

    Informations forums :
    Inscription : Juillet 2011
    Messages : 64
    Points : 53
    Points
    53
    Par défaut Installation Eric5 difficile
    Bonjour,
    J'essaie d'installer Eric5 depuis hier. Mais je n'y arrive vraiment pas.
    Je suis sous Ubuntu 13.10.
    Qt4 est installé avec QtDesigner (ainsi Qt5 avec QtCreator)
    PyQt4 est bien installé (ainsi que PyQt5)
    QScintilla 2.8 est installé.
    J'ai un problème pour le Python binding.
    Voici ma console
    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
     
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$ python3.3 configure.py
    PyQt 4.10.3 is being used.
    Qt 4.8.4 is being used.
    sip 4.15.3 is being used.
    QScintilla 2.8 is being used.
    The sip executable is /usr/bin/sip.
    The QScintilla module will be installed in
    /usr/lib/python3.3/site-packages/PyQt4.
    The QScintilla module is being built with 'protected' redefined as 'public'.
    The QScintilla .sip files will be installed in /usr/share/sip/PyQt4.
    The QScintilla API file will be installed in /usr/share/qt5/api/python.
    Generating the C++ source for the Qsci module...
    Generating the .pro file for the Qsci module...
    Creating the Makefile for the Qsci module...
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$ make
    g++ -c -m64 -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/python3.3m -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o sipQsciQsciLexerPerl.o sipQsciQsciLexerPerl.cpp
    In file included from sipQsciQsciLexerPerl.cpp:29:0:
    sipAPIQsci.h:33:17: fatal error: sip.h: Aucun fichier ou dossier de ce type
     #include <sip.h>
                     ^
    compilation terminated.
    make: *** [sipQsciQsciLexerPerl.o] Erreur 1
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$
    Evidement le make install ne fonctionne pas pour la même raison.
    Je ne sais pas comment re-initialiser ce binding. Que faut-il effacer ?
    merci pour votre aide.
    Ubuntu 22.04.1 LTS
    LibreOffice 7.4.3

  2. #2
    Expert éminent

    Homme Profil pro
    Inscrit en
    Octobre 2008
    Messages
    4 300
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Octobre 2008
    Messages : 4 300
    Points : 6 780
    Points
    6 780
    Par défaut
    Salut,

    C'est donc bien du binding pour Qscintilla dont tu parles, pas Eric5 ?

    Dans ce cas essayes comme ceci
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    python3 configure.py --sip-incdir=/usr/include/python3.2mu
    en modifiant python3.2mu par ta version. Vérifie quand même le chemin aussi.

  3. #3
    Membre du Club Avatar de ptissendier
    Homme Profil pro
    Retraité
    Inscrit en
    Juillet 2011
    Messages
    64
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Retraité

    Informations forums :
    Inscription : Juillet 2011
    Messages : 64
    Points : 53
    Points
    53
    Par défaut
    Merci VinsS, pour ta réponse.
    Oui c'est sur le binding de qscintilla.
    Voici le résultat
    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
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$ python3 configure.py --sip-incdir=/usr/include/python3.2mu
    PyQt 4.10.3 is being used.
    Qt 4.8.4 is being used.
    sip 4.15.3 is being used.
    QScintilla 2.8 is being used.
    The sip executable is /usr/bin/sip.
    The QScintilla module will be installed in
    /usr/lib/python3.3/site-packages/PyQt4.
    The QScintilla module is being built with 'protected' redefined as 'public'.
    The QScintilla .sip files will be installed in /usr/share/sip/PyQt4.
    The QScintilla API file will be installed in /usr/share/qt5/api/python.
    Generating the C++ source for the Qsci module...
    Generating the .pro file for the Qsci module...
    Creating the Makefile for the Qsci module...
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$ sudo make
    [sudo] password for pierre: 
    g++ -c -m64 -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/python3.3m -I/usr/include/python3.2mu -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o sipQsciQsciLexerPerl.o sipQsciQsciLexerPerl.cpp
    In file included from sipAPIQsci.h:33:0,
                     from sipQsciQsciLexerPerl.cpp:29:
    /usr/include/python3.2mu/sip.h:32:20: fatal error: Python.h: Aucun fichier ou dossier de ce type
     #include <Python.h>
                        ^
    compilation terminated.
    make: *** [sipQsciQsciLexerPerl.o] Erreur 1
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$
    maintenant il cherche Python.h, le prochain ce sera lequel ?
    Ne vaudrait-il pas mieux de "désinstaller-réinstaller" ? Si oui comment-faire?
    Ubuntu 22.04.1 LTS
    LibreOffice 7.4.3

  4. #4
    Expert éminent

    Homme Profil pro
    Inscrit en
    Octobre 2008
    Messages
    4 300
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Octobre 2008
    Messages : 4 300
    Points : 6 780
    Points
    6 780
    Par défaut
    Oui mais moi, j'ai mis ma version de python pour le chemin de sip.h après avoir vérifié qu'il était bien là

    /usr/include/python3.2mu/sip.h

    Toi, dans ton premier post tu utilises python 3.3, tu as vérifié le chemin de sip.h ?

    Si tu fais
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    python3 configure.py -h
    tu verras les options possibles pour préciser les chemins.

    Quoique je ne voie rien concernant Python.h ...


    Edit: Je viens de vérifier, il y a bien un Python.h dans /usr/include/python3.2mu/ Pourquoi ne l'aurais-tu pas ?

  5. #5
    Membre du Club Avatar de ptissendier
    Homme Profil pro
    Retraité
    Inscrit en
    Juillet 2011
    Messages
    64
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Retraité

    Informations forums :
    Inscription : Juillet 2011
    Messages : 64
    Points : 53
    Points
    53
    Par défaut
    Je viens de reinstaller sip et je retrouve un sip.h et un Python.h dans /usr/include/python3.3m (chemin par défaut pris par défaut par python3.3).
    Voila ce que j'obtiens
    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
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$ python3.3 configure.py --pyqt=PyQt4
    PyQt 4.10.3 is being used.
    Qt 4.8.4 is being used.
    sip 4.15.3 is being used.
    QScintilla 2.8 is being used.
    The sip executable is /usr/bin/sip.
    The QScintilla module will be installed in
    /usr/lib/python3.3/site-packages/PyQt4.
    The QScintilla module is being built with 'protected' redefined as 'public'.
    The QScintilla .sip files will be installed in /usr/share/sip/PyQt4.
    The QScintilla API file will be installed in /usr/share/qt5/api/python.
    Generating the C++ source for the Qsci module...
    Generating the .pro file for the Qsci module...
    Creating the Makefile for the Qsci module...
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$ make
    g++ -c -m64 -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/python3.3m -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o sipQsciQsciLexerPerl.o sipQsciQsciLexerPerl.cpp
    ./sipQsciQsciLexerPerl.cpp: In member function ‘void sipQsciLexerPerl::disconnectNotify(const char*)’:
    ./sipQsciQsciLexerPerl.cpp:188:43: error: no matching function for call to ‘sipQsciLexerPerl::disconnectNotify(const char*&)’
             QsciLexerPerl::disconnectNotify(a0);
                                               ^
    ./sipQsciQsciLexerPerl.cpp:188:43: note: candidate is:
    In file included from /usr/include/qt5/QtCore/qthread.h:45:0,
                     from /usr/include/qt5/QtCore/QThread:1,
                     from sipAPIQsci.h:36,
                     from sipQsciQsciLexerPerl.cpp:29:
    /usr/include/qt5/QtCore/qobject.h:383:18: note: virtual void QObject::disconnectNotify(const QMetaMethod&)
         virtual void disconnectNotify(const QMetaMethod &signal);
                      ^
    /usr/include/qt5/QtCore/qobject.h:383:18: note:   no known conversion for argument 1 from ‘const char*’ to ‘const QMetaMethod&’
    ./sipQsciQsciLexerPerl.cpp: In member function ‘void sipQsciLexerPerl::connectNotify(const char*)’:
    ./sipQsciQsciLexerPerl.cpp:206:40: error: no matching function for call to ‘sipQsciLexerPerl::connectNotify(const char*&)’
             QsciLexerPerl::connectNotify(a0);
                                            ^
    ./sipQsciQsciLexerPerl.cpp:206:40: note: candidate is:
    In file included from /usr/include/qt5/QtCore/qthread.h:45:0,
                     from /usr/include/qt5/QtCore/QThread:1,
                     from sipAPIQsci.h:36,
                     from sipQsciQsciLexerPerl.cpp:29:
    /usr/include/qt5/QtCore/qobject.h:382:18: note: virtual void QObject::connectNotify(const QMetaMethod&)
         virtual void connectNotify(const QMetaMethod &signal);
                      ^
    /usr/include/qt5/QtCore/qobject.h:382:18: note:   no known conversion for argument 1 from ‘const char*’ to ‘const QMetaMethod&’
    make: *** [sipQsciQsciLexerPerl.o] Erreur 1
    pierre@PTISS:~/Informatique/Applications/QScintilla-gpl-2.8/Python$
    Faut-il reinstaller qt5 ou pyqt5?
    Ubuntu 22.04.1 LTS
    LibreOffice 7.4.3

  6. #6
    Membre du Club Avatar de ptissendier
    Homme Profil pro
    Retraité
    Inscrit en
    Juillet 2011
    Messages
    64
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Retraité

    Informations forums :
    Inscription : Juillet 2011
    Messages : 64
    Points : 53
    Points
    53
    Par défaut
    Je ne m'en sort pas

    L'install d'Eric me renvoie toujours ça :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    pierre@PTISS:~/Informatique/Applications/Eric5/eric5-5.3.8$ python3.3 install.py
    Checking dependencies
    Python Version: 3.3.2
    Found PyQt4
    Found QtHelp
    Sorry, please install QScintilla2 and
    its PyQt4 wrapper.
    Error: /usr/lib/python3/dist-packages/PyQt4/Qsci.so: undefined symbol: PyUnicodeUCS4_DecodeASCII
    J'ai vraiment envie d'essayer Eric.
    Ubuntu 22.04.1 LTS
    LibreOffice 7.4.3

  7. #7
    Rédacteur/Modérateur

    Avatar de Jiyuu
    Homme Profil pro
    Développeur amateur
    Inscrit en
    Janvier 2007
    Messages
    2 456
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Loire (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur amateur
    Secteur : Industrie

    Informations forums :
    Inscription : Janvier 2007
    Messages : 2 456
    Points : 6 789
    Points
    6 789
    Billets dans le blog
    15
    Par défaut
    Sur Ubuntu 13.04 sip et QScintilla ne sont pas disponible dans les dépôts ?
    Es-tu sûr d'avoir la bonne version de QScintilla & PyQt4 versions compatibles entre-elles et surtout avec Python 3 ?

    Petite remarque : pour installer Eric 5, PyQt 5 n'est pas utile puisque Eric 5 est entièrement écrit en PyQt 4. Je ne sais même pas si tu pourras bénéficier de toutes les fonctionnalités d'Eric en codant en PyQt 5.

    Une autre solution si tu désires vraiment coder en PyQt 5 serait d'utiliser Qt Creator 2.8


    Bonne continuation.


    [EDIT]
    Tu as reposté entre le moment où j'ai commencé à écrire et le moment où j'ai posté mon message.

    Donc tu as la bonne version de PyQt 4... Je ne peux que te conseiller de chercher QScintilla 2 pour Python dans tes dépôts. Je suis sous Debian Sid et il s'appelle python3-pyqt4-qsci pour ma part.
    Initiation à Qt Quick et QML : Partie 1 - Partie 2
    En cas de besoin, pensez à la
    Mon site et mes tutoriaux sur Developpez.com
    Pas de question technique par MP... Les forums sont là pour ça

  8. #8
    Membre du Club Avatar de ptissendier
    Homme Profil pro
    Retraité
    Inscrit en
    Juillet 2011
    Messages
    64
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Retraité

    Informations forums :
    Inscription : Juillet 2011
    Messages : 64
    Points : 53
    Points
    53
    Par défaut
    Bon j'ai trouvé dans les dépots
    python3-pyqt4.qsci (qui n'était pas installé) je l'ai installé
    et voilà ce que j'ai
    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
    pierre@PTISS:~/Informatique/Applications/Eric5/eric5-5.3.8$ sudo python3.3 install.py
    [sudo] password for pierre: 
    Checking dependencies
    Python Version: 3.3.2
    Found PyQt4
    Found QtHelp
    Found QScintilla2
    Found QtGui
    Found QtNetwork
    Found QtSql
    Found QtSvg
    Found QtWebKit
    Qt Version: 4.8.4
    PyQt Version:  4.10.3
    QScintilla Version:  2.7.2
    All dependencies ok.
     
    Cleaning up old installation ...
     
    Creating configuration file ...
     
    Compiling user interface files ...
     
    Compiling source files ...
     
    Installing eric5 ...
     
    Installation complete.
     
    pierre@PTISS:~/Informatique/Applications/Eric5/eric5-5.3.8$
    Encore merci
    Maintenant j'espère que eric5 va démarrer.
    Sera-t-il en français?
    merci et sans doute à bientot, puisque je débute
    Ubuntu 22.04.1 LTS
    LibreOffice 7.4.3

  9. #9
    Rédacteur/Modérateur

    Avatar de Jiyuu
    Homme Profil pro
    Développeur amateur
    Inscrit en
    Janvier 2007
    Messages
    2 456
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Loire (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur amateur
    Secteur : Industrie

    Informations forums :
    Inscription : Janvier 2007
    Messages : 2 456
    Points : 6 789
    Points
    6 789
    Billets dans le blog
    15
    Par défaut


    Pour l'avoir en français tu auras besoin de ça http://sourceforge.net/projects/eric...ar.gz/download

    Un retour sur son utilisation avec PyQt 5 en langage de programme m'intéresse au passage
    Initiation à Qt Quick et QML : Partie 1 - Partie 2
    En cas de besoin, pensez à la
    Mon site et mes tutoriaux sur Developpez.com
    Pas de question technique par MP... Les forums sont là pour ça

  10. #10
    Membre du Club Avatar de ptissendier
    Homme Profil pro
    Retraité
    Inscrit en
    Juillet 2011
    Messages
    64
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Retraité

    Informations forums :
    Inscription : Juillet 2011
    Messages : 64
    Points : 53
    Points
    53
    Par défaut
    Merci pour ton aide,
    Je vais essayer déjà d'apprivoiser eric
    J'ai le début d'une petite appli en qt4, je vais essayer de la passer en qt5.
    Mais je suis débutant (en PyQt et Python) et ça risque d'être long.
    Encore merci,merci et....
    surement à bientôt pour d'autres aventures
    Ubuntu 22.04.1 LTS
    LibreOffice 7.4.3

  11. #11
    Rédacteur/Modérateur

    Avatar de Jiyuu
    Homme Profil pro
    Développeur amateur
    Inscrit en
    Janvier 2007
    Messages
    2 456
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Loire (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur amateur
    Secteur : Industrie

    Informations forums :
    Inscription : Janvier 2007
    Messages : 2 456
    Points : 6 789
    Points
    6 789
    Billets dans le blog
    15
    Par défaut
    Au cas où tu ne serai pas tombé dessus, voici un article que j'ai fait qui pourra t'aider

    Bonne lecture.
    Initiation à Qt Quick et QML : Partie 1 - Partie 2
    En cas de besoin, pensez à la
    Mon site et mes tutoriaux sur Developpez.com
    Pas de question technique par MP... Les forums sont là pour ça

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Installation Linux difficile
    Par Galendil dans le forum Linux
    Réponses: 17
    Dernier message: 22/04/2012, 02h25
  2. Installation Red5 difficile
    Par nikolaus dans le forum Debian
    Réponses: 4
    Dernier message: 28/04/2009, 08h38
  3. Installation subversion difficile
    Par spekal dans le forum Mandriva / Mageia
    Réponses: 2
    Dernier message: 09/01/2007, 19h11
  4. Installation difficile de midlets
    Par spekal dans le forum Java ME
    Réponses: 1
    Dernier message: 03/11/2006, 20h28
  5. Installer curl, si difficile que ça?
    Par Uims01 dans le forum Code::Blocks
    Réponses: 3
    Dernier message: 01/09/2006, 15h39

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