AlphaSlayer1964 / kemono-dl

A simple kemono.party downloader using python.
504 stars 82 forks source link

Brotli error while installing #159

Open chibineko13 opened 1 year ago

chibineko13 commented 1 year ago

Version

kemono-dl 2022.04.27

Your Command


py -m pip install -r requirements.txt

Description of bug

I was trying to install the downloader and got this error message that brotli could not be installed because of deprecation. So the program is not working correctly without it.

Error messages and tracebacks


Collecting brotli
  Using cached Brotli-1.0.9.zip (510 kB)
  Preparing metadata (setup.py) ... done
Installing collected packages: brotli, websockets, urllib3, soupsieve, pycryptodomex, Pillow, mutagen, idna, charset-normalizer, certifi, yt_dlp, requests, beautifulsoup4
  DEPRECATION: brotli is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for brotli ... error
  error: subprocess-exited-with-error

  × Running setup.py install for brotli did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      C:\Users\Ricardo\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
        warnings.warn(
      running install
      C:\Users\Ricardo\AppData\Local\Programs\Python\Python311\Lib\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 bin
      creating bin\lib.win-amd64-cpython-311
      copying python\brotli.py -> bin\lib.win-amd64-cpython-311
      running build_ext
      building '_brotli' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [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.
╰─> brotli

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

Additional comments

ive installed an updated version of MS Visual and still getting the same error

Ovear commented 1 year ago

DEPRECATION: brotli is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559

Try the solution inside your log.

chibineko13 commented 1 year ago

DEPRECATION: brotli is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559

Try the solution inside your log.

I hate to be a pest but i dont undertand DOS that well. Can you give me directions? Not sure if this is correct but I tried "py -m pip install -r requirements.txt --use-pep517" and it still failed but with a different set of errors.

Ovear commented 1 year ago

Hi, I have no idea about new errors you mentioned, since no log is attached.

But for original error, please install Redistributable to see if works according https://github.com/mitmproxy/mitmproxy/issues/5015#issuecomment-1001610266