python installer does not work properly
============== Preparing virtualenv ==============
Shell: python3 --version Python 3.12.3
Shell: Exit OK
Shell: virtualenv --python=python3 --version virtualenv 20.25.0+ds from /usr/lib/python3/dist-packages/virtualenv/init.py
Shell: Exit OK
Shell: env/bin/python --version Python 3.12.3
Shell: Exit OK
============ Installing requirements =============
Shell: env/bin/pip install -U -r installer/requirements.txt Ignoring pathlib2: markers 'python_version < "3.4"' don't match your environment Ignoring psutil: markers 'sys_platform == "win32"' don't match your environment Ignoring pync: markers 'sys_platform == "darwin"' don't match your environment Ignoring pypiwin32: markers 'sys_platform == "win32"' don't match your environment Ignoring pyreadline: markers 'sys_platform == "win32"' don't match your environment Ignoring pywin32: markers 'sys_platform == "win32"' don't match your environment Ignoring win10toast: markers 'sys_platform == "win32"' don't match your environment Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment Collecting archey4==4.6.0.post1 (from -r installer/requirements.txt (line 1)) Using cached archey4-4.6.0.post1-py3-none-any.whl.metadata (1.0 kB) Collecting beautifulsoup4 (from -r installer/requirements.txt (line 2)) Using cached beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB) Collecting climage (from -r installer/requirements.txt (line 3)) Using cached climage-0.2.2-py3-none-any.whl.metadata (8.2 kB) Collecting colorama (from -r installer/requirements.txt (line 4)) Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) Collecting distro (from -r installer/requirements.txt (line 5)) Using cached distro-1.9.0-py3-none-any.whl.metadata (6.8 kB) Collecting flake8 (from -r installer/requirements.txt (line 6)) Using cached flake8-7.1.1-py2.py3-none-any.whl.metadata (3.8 kB) Collecting forex-python (from -r installer/requirements.txt (line 7)) Using cached forex_python-1.8-py3-none-any.whl.metadata (1.3 kB) Collecting geopy (from -r installer/requirements.txt (line 8)) Using cached geopy-2.4.1-py3-none-any.whl.metadata (6.8 kB) Collecting gitpython (from -r installer/requirements.txt (line 9)) Using cached GitPython-3.1.44-py3-none-any.whl.metadata (13 kB) Collecting googletrans (from -r installer/requirements.txt (line 10)) Using cached googletrans-4.0.2-py3-none-any.whl.metadata (10 kB) Collecting IMDbPY (from -r installer/requirements.txt (line 11)) Using cached IMDbPY-2022.7.9-py3-none-any.whl.metadata (498 bytes) Collecting matplotlib (from -r installer/requirements.txt (line 12)) Using cached matplotlib-3.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB) Collecting mock (from -r installer/requirements.txt (line 13)) Using cached mock-5.1.0-py3-none-any.whl.metadata (3.0 kB) Collecting nltk (from -r installer/requirements.txt (line 14)) Using cached nltk-3.9.1-py3-none-any.whl.metadata (2.9 kB) Collecting pdfkit (from -r installer/requirements.txt (line 16)) Using cached pdfkit-1.0.0-py3-none-any.whl.metadata (9.3 kB) Collecting pick (from -r installer/requirements.txt (line 17)) Using cached pick-2.4.0-py3-none-any.whl.metadata (3.4 kB) Collecting pluginmanager (from -r installer/requirements.txt (line 18)) Using cached pluginmanager-0.4.1-py2.py3-none-any.whl.metadata (6.8 kB) Collecting pycricbuzz (from -r installer/requirements.txt (line 20)) Using cached pycricbuzz-2.4-py2.py3-none-any.whl.metadata (388 bytes) Collecting pydoc-markdown (from -r installer/requirements.txt (line 21)) Using cached pydoc_markdown-4.8.2-py3-none-any.whl.metadata (5.9 kB) Collecting pyjokes (from -r installer/requirements.txt (line 22)) Using cached pyjokes-0.8.3-py3-none-any.whl.metadata (3.4 kB) Collecting markdown (from -r installer/requirements.txt (line 23)) Using cached Markdown-3.7-py3-none-any.whl.metadata (7.0 kB) Collecting python-dateutil (from -r installer/requirements.txt (line 27)) Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB) Collecting pytimeparse (from -r installer/requirements.txt (line 28)) Using cached pytimeparse-1.1.8-py2.py3-none-any.whl.metadata (3.4 kB) Collecting pyttsx3==2.71 (from -r installer/requirements.txt (line 29)) Using cached pyttsx3-2.71-py3-none-any.whl.metadata (3.4 kB) Collecting random-word (from -r installer/requirements.txt (line 31)) Using cached random_word-1.0.13-py3-none-any.whl.metadata (4.3 kB) Collecting speedtest-cli (from -r installer/requirements.txt (line 33)) Using cached speedtest_cli-2.1.3-py2.py3-none-any.whl.metadata (6.8 kB) Collecting sympy (from -r installer/requirements.txt (line 34)) Using cached sympy-1.13.3-py3-none-any.whl.metadata (12 kB) Collecting tabulate (from -r installer/requirements.txt (line 35)) Using cached tabulate-0.9.0-py3-none-any.whl.metadata (34 kB) Collecting termdown (from -r installer/requirements.txt (line 36)) Using cached termdown-1.18.0-py3-none-any.whl.metadata (916 bytes) Collecting opencv-python-headless (from -r installer/requirements.txt (line 37)) Using cached opencv_python_headless-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB) Collecting whois (from -r installer/requirements.txt (line 38)) Using cached whois-1.20240129.2-py3-none-any.whl.metadata (1.3 kB) Collecting wikipedia (from -r installer/requirements.txt (line 39)) Using cached wikipedia-1.4.0.tar.gz (27 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting gtts (from -r installer/requirements.txt (line 41)) Using cached gTTS-2.5.4-py3-none-any.whl.metadata (4.1 kB) Collecting playsound (from -r installer/requirements.txt (line 42)) Using cached playsound-1.3.0.tar.gz (7.7 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Traceback (most recent call last):
File "/home/arif/Jarvis/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
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.
note: This error originates from a subprocess, and is likely not a problem with pip.
Shell: Exit Fail Command 'env/bin/pip install -U -r installer/requirements.txt' returned non-zero exit status 1.
Installation failed
FATAL!
enter the venv and try pip install --upgrade wheel setuptools then try pip install playsound, pip install playsound --no-cache-dir, and pip install playsound --only-binary playsound. Don't know though. If that does not work try using python 3.9 instead
I had the same issue. A fork of the playsound repository contains fixes for compatibility with newer Python versions. You can install this version directly from GitHub:
pip install git+https://github.com/taconi/playsound.git
Will make a small commit to switch to this version if Python 3.12+ is installed maybe it'll help.
Thank you