module espeak python
Répondre à la discussion
Affichage des résultats 1 à 8 sur 8

module espeak python



  1. #1
    hamzazrd

    module espeak python


    ------

    salut les programmeurs,
    comment je peux installer le module espeak à partir terminal
    hy j'utilise ubuntu anaconda 3 ,
    merci avance.

    -----

  2. #2
    pm42

    Re : module espeak python

    En lisant la doc qui suggère par exemple :

    Code:
    pip install python-espeak
    ca donne quoi ?

  3. #3
    hamzazrd

    Post Re : module espeak python

    IL 'AFFICHE DES ERREURSS
    pip install python-espeak
    Collecting python-espeak
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnec tionPool(host='files.pythonhos ted.org', port=443): Read timed out. (read timeout=15)",)': /packages/59/5b/45437090dbd71ee9f586dc7f650c6e 8c4815bd8bff9b2923d4db5b9120ed/python-espeak-0.6.3.tar.gz
    Downloading python-espeak-0.6.3.tar.gz (9.1 kB)
    Preparing metadata (setup.py) ... done
    Building wheels for collected packages: python-espeak
    Building wheel for python-espeak (setup.py) ... error
    ERROR: Command errored out with exit status 1:
    command: /home/hamza/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'" ', '"'"'\n'"'"');f.close();exec(c ompile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-48yzw1cu
    cwd: /tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/
    Complete output (16 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/espeak
    copying espeak/__init__.py -> build/lib.linux-x86_64-3.6/espeak
    running build_ext
    building 'espeak.core' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/espeak
    gcc -pthread -B /home/hamza/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/hamza/anaconda3/include/python3.6m -c espeak/espeakmodulecore.cpp -o build/temp.linux-x86_64-3.6/espeak/espeakmodulecore.o
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    espeak/espeakmodulecore.cpp:23:30: fatal error: espeak/speak_lib.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for python-espeak
    Running setup.py clean for python-espeak
    Failed to build python-espeak
    Installing collected packages: python-espeak
    Running setup.py install for python-espeak ... error
    ERROR: Command errored out with exit status 1:
    command: /home/hamza/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'" ', '"'"'\n'"'"');f.close();exec(c ompile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8v87hopr/install-record.txt --single-version-externally-managed --compile --install-headers /home/hamza/anaconda3/include/python3.6m/python-espeak
    cwd: /tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/
    Complete output (16 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/espeak
    copying espeak/__init__.py -> build/lib.linux-x86_64-3.6/espeak
    running build_ext
    building 'espeak.core' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/espeak
    gcc -pthread -B /home/hamza/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/hamza/anaconda3/include/python3.6m -c espeak/espeakmodulecore.cpp -o build/temp.linux-x86_64-3.6/espeak/espeakmodulecore.o
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    espeak/espeakmodulecore.cpp:23:30: fatal error: espeak/speak_lib.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Command errored out with exit status 1: /home/hamza/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'" ', '"'"'\n'"'"');f.close();exec(c ompile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8v87hopr/install-record.txt --single-version-externally-managed --compile --install-headers /home/hamza/anaconda3/include/python3.6m/python-espeak Check the logs for full command output.

  4. #4
    umfred

    Re : module espeak python

    j'ai testé aussi sous windows, et je rencontre le même type de souci. D'après les instructions, il faut aussi installer espeak et ces librairies, et que ces répertoires/fichiers soient déclarées dans le chemin des include du compilateur (gcc ici); une fois fait, ça devrait vouloir compiler.
    J'ai abandonné car il me trouvait d'autres erreurs dans les fichiers sources et j'ai pas voulu creuser plus.

  5. A voir en vidéo sur Futura
  6. #5
    hamzazrd

    Re : module espeak python

    Merci,
    J'essaye pour la n fois

  7. #6
    pm42

    Re : module espeak python

    Oui il faut d'abord installer espeak pour avoir la librairie et les headers :

    https://stackoverflow.com/questions/...ders-in-ubuntu

  8. #7
    Ernum

    Re : module espeak python

    Post annulé, grillé par pm42.
    Dernière modification par Ernum ; 18/03/2022 à 16h03.

  9. #8
    pm42

    Re : module espeak python

    J'ai testé sur un Ubuntu 20.04 et ça a marché.

Discussions similaires

  1. importation d'un module Python
    Par Mohamed198 dans le forum Programmation et langages, Algorithmique
    Réponses: 27
    Dernier message: 05/08/2021, 09h40
  2. module python
    Par loftyramitsu dans le forum Programmation et langages, Algorithmique
    Réponses: 3
    Dernier message: 08/05/2020, 11h38
  3. Python - Pycharm installation de module
    Par Linuxman99 dans le forum Programmation et langages, Algorithmique
    Réponses: 0
    Dernier message: 07/10/2018, 10h47
  4. installation d'un module sur python
    Par margoth dans le forum Programmation et langages, Algorithmique
    Réponses: 3
    Dernier message: 02/01/2017, 22h32
  5. PYTHON 3.3.0 : Pb import de module
    Par GalaxieA440 dans le forum Programmation et langages, Algorithmique
    Réponses: 3
    Dernier message: 30/10/2012, 12h35