local-talking-llm
local-talking-llm copied to clipboard
pkg_resources is deprecated as an API
Hi,
trying to install requirement, i get errors
(audio) test@rzz:~/local-talking-llm$ pip install requirements.txt
ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none)
HINT: You are attempting to install a package literally named "requirements.txt" (which cannot exist). Consider using the '-r' flag to install the packages listed in requirements.txt
ERROR: No matching distribution found for requirements.txt
(audio) test@rzz:~/local-talking-llm$ pip install -r requirements.txt
Collecting openai-whisper@ git+https://github.com/openai/whisper.git@ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab (from -r requirements.txt (line 49))
Cloning https://github.com/openai/whisper.git (to revision ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab) to /tmp/pip-install-7dim0v_w/openai-whisper_540e1c25e75a4ce28191ce4867151cde
Running command git clone --filter=blob:none --quiet https://github.com/openai/whisper.git /tmp/pip-install-7dim0v_w/openai-whisper_540e1c25e75a4ce28191ce4867151cde
Running command git rev-parse -q --verify 'sha^ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab'
Running command git fetch -q https://github.com/openai/whisper.git ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab
Running command git checkout -q ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab
Resolved https://github.com/openai/whisper.git to commit ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
<string>:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Traceback (most recent call last):
File "/home/test/.venvs/audio/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/home/test/.venvs/audio/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/.venvs/audio/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-ivax1ztq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ivax1ztq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-ivax1ztq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ivax1ztq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 21, in <module>
File "<string>", line 11, in read_version
KeyError: '__version__'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
need adjust some version of package in "requirement" ?
Thanks.
Try using pip install --upgrade -r requirements.txt
Getting this same error too. According to this Stack Overflow question from a few months ago openai-whisper and/or some of its dependencies only work on Python versions 3.11.9 and below. So, if you're trying to install this project with Python 3.13 (like I was) you'll need to downgrade your environment to Python 3.11.9 first