danpovey / lilcom

Small compression utility
Other
33 stars 10 forks source link

Error when installing lhotse #40

Open WangHelin1997 opened 2 years ago

WangHelin1997 commented 2 years ago

Hi, I found errors when installing lhoste. Do you know anything about that? Thanks.

(k2) hwang258@c07:~$ pip install lhotse
Collecting lhotse
  Downloading lhotse-1.5.0-py3-none-any.whl (490 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 490.9/490.9 kB 5.8 MB/s eta 0:00:00
Collecting intervaltree>=3.1.0
  Downloading intervaltree-3.1.0.tar.gz (32 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.18.1 in ./anaconda3/envs/k2/lib/python3.8/site-packages (from lhotse) (1.23.1)
Collecting lilcom>=1.1.0
  Downloading lilcom-1.2.1.tar.gz (44 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.5/44.5 kB 3.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting SoundFile>=0.10
  Using cached SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB)
Collecting dataclasses
  Downloading dataclasses-0.6-py3-none-any.whl (14 kB)
Collecting packaging
  Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting audioread>=2.1.9
  Downloading audioread-3.0.0.tar.gz (377 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 377.0/377.0 kB 7.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting click>=7.1.1
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 5.5 MB/s eta 0:00:00
Collecting pyyaml>=5.3.1
  Downloading PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 701.2/701.2 kB 6.7 MB/s eta 0:00:00
Collecting cytoolz>=0.10.1
  Downloading cytoolz-0.12.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 6.1 MB/s eta 0:00:00
Collecting tqdm
  Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting toolz>=0.8.0
  Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 kB 3.0 MB/s eta 0:00:00
Collecting sortedcontainers<3.0,>=2.0
  Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting numpy>=1.18.1
  Downloading numpy-1.22.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.9/16.9 MB 5.0 MB/s eta 0:00:00
Collecting cffi>=1.0
  Downloading cffi-1.15.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (442 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 442.7/442.7 kB 7.1 MB/s eta 0:00:00
Collecting pyparsing!=3.0.5,>=2.0.2
  Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: audioread, intervaltree, lilcom
  Building wheel for audioread (setup.py) ... done
  Created wheel for audioread: filename=audioread-3.0.0-py3-none-any.whl size=23703 sha256=f0c797d34b5ae92038b1b584ee2b8d0e23faa738fa4963f1a0b5dd0336c4ebe2
  Stored in directory: /home/hwang258/.cache/pip/wheels/0a/ed/be/49df2538fca496690a024a4374455584d65c2afd6fc3d6e9c7
  Building wheel for intervaltree (setup.py) ... done
  Created wheel for intervaltree: filename=intervaltree-3.1.0-py2.py3-none-any.whl size=26100 sha256=3a236d5c8a30c6123e645d2f4067219a56c055175a9ec9b16c416ea34645bdf0
  Stored in directory: /home/hwang258/.cache/pip/wheels/45/23/de/5789a92962483fd33cb06674792b9697c1b3766d7c7742830e
  Building wheel for lilcom (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [79 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-38
      creating build/lib.linux-x86_64-cpython-38/lilcom
      copying lilcom/lilcom_interface.py -> build/lib.linux-x86_64-cpython-38/lilcom
      copying lilcom/__init__.py -> build/lib.linux-x86_64-cpython-38/lilcom
      running build_ext
      Setting PYTHON_EXECUTABLE to /home/hwang258/anaconda3/envs/k2/bin/python
      For fast compilation, run:
      export LILCOM_MAKE_ARGS="-j"; python setup.py install
      build command is:

                      cd build/temp.linux-x86_64-cpython-38

                      cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/home/hwang258/anaconda3/envs/k2/bin/python /tmp/pip-install-vi92662e/lilcom_11a4eed184dc472abb6a870ef0757b02

                      make  lilcom_extension

      CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
        CMake 3.8 or higher is required.  You are running version 3.7.2

      -- Configuring incomplete, errors occurred!
      make: *** No rule to make target 'lilcom_extension'.  Stop.
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-vi92662e/lilcom_11a4eed184dc472abb6a870ef0757b02/setup.py", line 52, in <module>
          setuptools.setup(
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
          self.run_command(cmd)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
          cmd_obj.run()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
          self.run_command('build')
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
          cmd_obj.run()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/command/build.py", line 24, in run
          super().run()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 132, in run
          self.run_command(cmd_name)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
          cmd_obj.run()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
          _build_ext.run(self)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
          self.build_extensions()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
          self._build_extensions_serial()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
          self.build_extension(ext)
        File "/tmp/pip-install-vi92662e/lilcom_11a4eed184dc472abb6a870ef0757b02/cmake/cmake_extension.py", line 101, in build_extension
          raise Exception(
      Exception:
      Build lilcom failed. Please check the error message.
      You can ask for help by creating an issue on GitHub.

      Click:
          https://github.com/danpovey/lilcom/issues/new

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for lilcom
  Running setup.py clean for lilcom
Successfully built audioread intervaltree
Failed to build lilcom
Installing collected packages: sortedcontainers, dataclasses, tqdm, toolz, pyyaml, pyparsing, pycparser, numpy, intervaltree, click, audioread, packaging, lilcom, cytoolz, cffi, SoundFile, lhotse
  Attempting uninstall: numpy
    Found existing installation: numpy 1.23.1
    Uninstalling numpy-1.23.1:
      Successfully uninstalled numpy-1.23.1
  Running setup.py install for lilcom ... error
  error: subprocess-exited-with-error

  × Running setup.py install for lilcom did not run successfully.
  │ exit code: 1
  ╰─> [83 lines of output]
      running install
      /home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-38
      creating build/lib.linux-x86_64-cpython-38/lilcom
      copying lilcom/lilcom_interface.py -> build/lib.linux-x86_64-cpython-38/lilcom
      copying lilcom/__init__.py -> build/lib.linux-x86_64-cpython-38/lilcom
      running build_ext
      Setting PYTHON_EXECUTABLE to /home/hwang258/anaconda3/envs/k2/bin/python
      For fast compilation, run:
      export LILCOM_MAKE_ARGS="-j"; python setup.py install
      build command is:

                      cd build/temp.linux-x86_64-cpython-38

                      cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/home/hwang258/anaconda3/envs/k2/bin/python /tmp/pip-install-vi92662e/lilcom_11a4eed184dc472abb6a870ef0757b02

                      make  lilcom_extension

      CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
        CMake 3.8 or higher is required.  You are running version 3.7.2

      -- Configuring incomplete, errors occurred!
      make: *** No rule to make target 'lilcom_extension'.  Stop.
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-vi92662e/lilcom_11a4eed184dc472abb6a870ef0757b02/setup.py", line 52, in <module>
          setuptools.setup(
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
          self.run_command(cmd)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
          cmd_obj.run()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/command/install.py", line 68, in run
          return orig.install.run(self)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/install.py", line 692, in run
          self.run_command('build')
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
          cmd_obj.run()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/command/build.py", line 24, in run
          super().run()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 132, in run
          self.run_command(cmd_name)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
          cmd_obj.run()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
          _build_ext.run(self)
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
          self.build_extensions()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
          self._build_extensions_serial()
        File "/home/hwang258/anaconda3/envs/k2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
          self.build_extension(ext)
        File "/tmp/pip-install-vi92662e/lilcom_11a4eed184dc472abb6a870ef0757b02/cmake/cmake_extension.py", line 101, in build_extension
          raise Exception(
      Exception:
      Build lilcom failed. Please check the error message.
      You can ask for help by creating an issue on GitHub.

      Click:
          https://github.com/danpovey/lilcom/issues/new

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> lilcom

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
csukuangfj commented 2 years ago

From the error log:

      CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
        CMake 3.8 or higher is required.  You are running version 3.7.2

Please update your CMake.