I’m facing a challenge while trying to install the openai-whisper package on my Python 3.13 environment. Each time I attempt to execute the installation, it results in a KeyError regarding ‘version’. I’ve devoted a significant amount of time troubleshooting, including reverting to an earlier Python version, but the problem continues.
Collecting openai-whisper
Downloaded openai-whisper-20240930.tar.gz (800 kB)
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
╰─> [22 lines of output]
<string>:4: DeprecationWarning: pkg_resources is deprecated as an API
Traceback (most recent call last):
File "/home/user/myproject/.venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 361, in <module>
main()
File "/home/user/myproject/.venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 342, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/user/myproject/.venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 125, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-abc123/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "/tmp/pip-build-env-abc123/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 312, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-abc123/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 528, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-abc123/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 326, in run_setup
exec(code, locals())
File "<string>", line 19, in <module>
File "<string>", line 9, in read_version
KeyError: '__version__'
[end of output]
Has anyone else faced this issue? What would be the most effective way to fix this version-related problem?