danpovey / lilcom

Small compression utility
Other
33 stars 10 forks source link

python 3.11 error installation on newest version #61

Open xalteropsx opened 4 months ago

xalteropsx commented 4 months ago


Downloading lhotse-1.23.0-py3-none-any.whl (772 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 772.4/772.4 kB 7.0 MB/s eta 0:00:00
Using cached cytoolz-0.12.3-cp311-cp311-win_amd64.whl (363 kB)
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Building wheels for collected packages: lilcom
  Building wheel for lilcom (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [63 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\lilcom
      copying lilcom\lilcom_interface.py -> build\lib.win-amd64-cpython-311\lilcom
      copying lilcom\__init__.py -> build\lib.win-amd64-cpython-311\lilcom
      running build_ext
      'cmake' is not recognized as an internal or external command,
      operable program or batch file.
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\haide\AppData\Local\Temp\pip-install-f1p62htm\lilcom_ec754a122deb45f5816376f6c4d26f49\setup.py", line 45, in <module>
          setuptools.setup(
        File "Z:\software\python11\Lib\site-packages\setuptools\__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
          self.run_command(cmd)
        File "Z:\software\python11\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "Z:\software\python11\Lib\site-packages\wheel\bdist_wheel.py", line 368, in run
          self.run_command("build")
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "Z:\software\python11\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
          self.run_command(cmd_name)
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "Z:\software\python11\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "Z:\software\python11\Lib\site-packages\setuptools\command\build_ext.py", line 84, in run
          _build_ext.run(self)
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 346, in run
          self.build_extensions()
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 466, in build_extensions
          self._build_extensions_serial()
        File "Z:\software\python11\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 492, in _build_extensions_serial
          self.build_extension(ext)
        File "C:\Users\haide\AppData\Local\Temp\pip-install-f1p62htm\lilcom_ec754a122deb45f5816376f6c4d26f49\cmake\cmake_extension.py", line 82, in build_extension
          raise Exception("Failed to build lilcom_extension")
      Exception: Failed to build lilcom_extension
      Setting PYTHON_EXECUTABLE to Z:\software\python11\python.exe
      build command is:

                      cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=Z:\software\python11\python.exe -B build\temp.win-amd64-cpython-311\Release -S C:\Users\haide\AppData\Local\Temp\pip-install-f1p62htm\lilcom_ec754a122deb45f5816376f6c4d26f49
                      cmake --build build\temp.win-amd64-cpython-311\Release --target lilcom_extension --config Release -- -m

      [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
Failed to build lilcom
ERROR: Could not build wheels for lilcom, which is required to install pyproject.toml-based projects
WARNING: There was an error checking the latest version of pip.
csukuangfj commented 4 months ago

Should be fixed by #60

You can use

pip install cmake

as a workaround or use Python < 3.11