question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with installing ESPnet

See original GitHub issue

Describe the issue Hi, I tried to install ESPnet2 on my system. But I get the following error:

What should I do to fix it? Should I necessarily install Python 3.8 according to the error I get RuntimeError: Python version >= 3.8 required. ? However, I’ve seen in Github that some use ESPnet by python3.6 without any problem.

Thanks a lot for any help or suggestion.

check_install.py status

[x] python=3.6.9 (default, Jan 26 2021, 15:33:00)  [GCC 8.4.0]

Python modules:
/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/torch/package/_directory_reader.py:17: UserWarning: Failed to initialize NumPy: numpy.core.multiarray failed to import (Triggered internally at  ../torch/csrc/utils/tensor_numpy.cpp:68.)
  _dtype_to_storage = {data_type(0).dtype: data_type for data_type in _storages}
[x] torch=1.10.0+cu113
[x] torch cuda=11.3
[x] torch cudnn=8200
[x] torch nccl
[ ] chainer
[ ] cupy
[x] torchaudio=0.10.0+cu113
[ ] torch_optimizer
[ ] warpctc_pytorch
[ ] warprnnt_pytorch
[ ] chainer_ctc
[ ] pyopenjtalk
[ ] tdmelodic_pyopenjtalk
[ ] kenlm
[ ] mmseg
[ ] espnet
[ ] fairseq
[ ] phonemizer
[ ] gtn
[ ] s3prl
[ ] transformers
[ ] k2

Executables:
[ ] sclite
[ ] sph2pipe
[ ] PESQ
[ ] BeamformIt

Basic environments:

  - OS information: Linux 4.15.0-163-generic #171-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64
  - python version: `3.6.9 (default, Jan 26 2021, 15:33:00)  [GCC 8.4.0]`
  - Git hash: `9827dfe37f69e8e55f902dc4e340de5108596311`
  - Commit date: `Wed Dec 1 19:37:31 2021 +0900`

Environments from torch.utils.collect_env:

/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/torch/package/_directory_reader.py:17: UserWarning: Failed to initialize NumPy: numpy.core.multiarray failed to import (Triggered internally at  ../torch/csrc/utils/tensor_numpy.cpp:68.)
  _dtype_to_storage = {data_type(0).dtype: data_type for data_type in _storages}
Collecting environment information...
PyTorch version: 1.10.0+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.1 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.10.2
Libc version: glibc-2.25

Python version: 3.6.9 (default, Jan 26 2021, 15:33:00)  [GCC 8.4.0] (64-bit runtime)
Python platform: Linux-4.15.0-163-generic-x86_64-with-Ubuntu-18.04-bionic
Is CUDA available: True
CUDA runtime version: 11.3.58
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3090
Nvidia driver version: 470.86
cuDNN version: Probably one of the following:
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn.so.8.2.1
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.2.1
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.2.1
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.2.1
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.2.1
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.2.1
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.2.1
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] torch==1.10.0+cu113
[pip3] torchaudio==0.10.0+cu113
[conda] Could not collect

To Reproduce

./setup_venv.sh $(command -v python3)
make TH_VERSION=1.10.0 CUDA_VERSION=11.3

Error logs

Installing collected packages: typing-extensions, dataclasses, torch, torchaudio
Successfully installed dataclasses-0.8 torch-1.10.0+cu113 torchaudio-0.10.0+cu113 typing-extensions-4.0.1
touch pytorch.done
touch conda_packages.done
. ./activate_python.sh && python3 -m pip install -e "..[train, recipe]"  # Install editable mode by default
Obtaining file:///home/ubuntu/my_projects/my_espnet/espnet
  Preparing metadata (setup.py) ... error

      replace_conflicting=True,
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in resolve
      replace_conflicting=replace_conflicting
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1057, in best_match
      return self.obtain(req, installer)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1069, in obtain
      return installer(requirement)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/dist.py", line 580, in fetch_build_egg
      return cmd.easy_install(req)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 698, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 724, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 909, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1177, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/home/ubuntu/my_projects/my_
      yield
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
      saved_exc.resume()
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
      six.reraise(type, exc, self._tb)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/home/ubuntu/my_projects/my_espnet/espnet/tools/venv/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-93mnczc4/numpy-1.22.0rc1/setup.py", line 34, in <module>
      "espnet_tts_frontend",
  RuntimeError: Python version >= 3.8 required.
  ----------------------------------------
WARNING: Discarding file:///home/ubuntu/my_projects/my_espnet/espnet. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Makefile:104: recipe for target 'espnet.done' failed
make: *** [espnet.done] Error 1

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kamo-naoyukicommented, Dec 3, 2021

@asadolahzade Oh, sorry, I didn’t notice you are using Python3.6. Python3.6 is not supported by espnet. Please use python>=3.7.

0reactions
stale[bot]commented, Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ — ESPnet 202209 documentation - GitHub Pages
How to build espnet on a cloud machine such as GCP, AWS, etc.? ModuleNotFoundError: No module named 'espnet', or etc. To detect the...
Read more >
espnet · PyPI
ESPnet is an end-to-end speech processing toolkit covering end-to-end speech recognition, text-to-speech, speech translation, speech enhancement, speaker ...
Read more >
python error :Espnet installation
python error Espnet installation. ... record the espnet installation ... download espnet, if git clone if you can't install it, just go straight...
Read more >
Getting Started with ESPnet - AssemblyAI
ESPnet is the premier end-to-end speech processing toolkit. ... for example, is a difficult problem which has previously required several ...
Read more >
espnet2_tutorial_2021_CMU_11...
Installation https://espnet.github.io/espnet/installation.html ... If torch, torch cuda, and espnet are successfully installed, it would be no problem.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found