wayneclub / Subtitle-Downloader

Auto download subtitles from streaming services, such as Apple TV+, CatchPlay, Crunchyroll, Disney+, FridayVideo, HBO GO Asia, iQIYI, iTunes, KKTV, LINE TV, meWATCH, MyVideo, NowE, NowPlayer, Viki, Viu, WeTV, YouTube, and etc.
MIT License
314 stars 64 forks source link

when i run the install_requirements.bat,got this error #71

Closed frankwu8765 closed 8 months ago

frankwu8765 commented 9 months ago

Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output]

  Cargo, the Rust package manager, is not installed or is not on PATH.
  This package requires Rust and Cargo to compile extensions. Install it through
  the system's package manager or via https://rustup.rs/

  Checking for Rust toolchain....
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

wayneclub commented 8 months ago

Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output]

  Cargo, the Rust package manager, is not installed or is not on PATH.
  This package requires Rust and Cargo to compile extensions. Install it through
  the system's package manager or via https://rustup.rs/

  Checking for Rust toolchain....
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Which Python version are you using? Please use 3.11 or 3.10

dakshy commented 8 months ago

I am using 3.11.5 and getting the following error:

  error: subprocess-exited-with-error

  × Building wheel for rtoml (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      Running `maturin pep517 build-wheel -i C:\Users\DefaultUser\AppData\Local\Programs\Python\Python311\python.exe --compatibility off`
      📦 Including license file "C:\Users\DefaultUser\AppData\Local\Temp\3\pip-install-yebxznlo\rtoml_584960f74d2c40ecb37f4382ce184666\LICENSE"
      ðŸ\x8d¹ Building a mixed python/rust project
      🔗 Found pyo3 bindings
      ðŸ\x90\x8d Found CPython 3.11 at C:\Users\DefaultUser\AppData\Local\Programs\Python\Python311\python.exe
      📡 Using build options features, bindings from pyproject.toml
         Compiling autocfg v1.1.0
         Compiling target-lexicon v0.12.3
         Compiling once_cell v1.16.0
         Compiling proc-macro2 v1.0.70
         Compiling unicode-ident v1.0.12
         Compiling windows_x86_64_msvc v0.36.1
         Compiling cfg-if v1.0.0
      error: linker `link.exe` not found
        |
        = note: program not found

      note: the msvc targets depend on the msvc linker but `link.exe` was not found

      note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.

      note: VS Code is a different product, and is not sufficient.

      error: could not compile `windows_x86_64_msvc` (build script) due to previous error
      warning: build failed, waiting for other jobs to finish...
      error: could not compile `proc-macro2` (build script) due to previous error
      error: could not compile `target-lexicon` (build script) due to previous error
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit code: 101": `"cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\DefaultUser\\AppData\\Local\\Temp\\3\\pip-install-yebxznlo\\rtoml_584960f74d2c40ecb37f4382ce184666\\Cargo.toml" "--release" "--lib" "--crate-type" "cdylib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Users\\DefaultUser\\AppData\\Local\\Programs\\Python\\Python311\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for rtoml
Failed to build rtoml
ERROR: Could not build wheels for rtoml, which is required to install pyproject.toml-based projects
hsynclb commented 8 months ago

Same issue, any solution?

wayneclub commented 8 months ago

Seems like the rtoml package doesn't work well on AMD CPU. The rtoml package needs Rust to execute. I had replace rtoml with pytomlpp. It should worked.