Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python installer not working #1159

Open
Celiian opened this issue Jan 2, 2024 · 6 comments
Open

python installer not working #1159

Celiian opened this issue Jan 2, 2024 · 6 comments

Comments

@Celiian
Copy link

Celiian commented Jan 2, 2024

So basically the problem is that the python installer can't install all dependancies but i don't know why or how to fix it
I am using MacOs (Sonoma 14.0) and was trying to use Jarvis in the terminal using python 3.12 :
× 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.

The full error is bellow if needed :

Jarvis % python3 installer
Logging to /var/folders/85/m6h_lm1575j4q9npm5nsyxsr0000gn/T/tmp7be1tktk

============== Preparing virtualenv ==============

============ Installing requirements =============

Installation failed with unexpected error - This should not have happened.
Please check logs at "/var/folders/85/m6h_lm1575j4q9npm5nsyxsr0000gn/T/tmp7be1tktk". If you open a bug report, please include this file.

Jarvis % cat /var/folders/85/m6h_lm1575j4q9npm5nsyxsr0000gn/T/tmp7be1tktk

============== Preparing virtualenv ==============


Shell: python3 --version
Python 3.12.1

Shell: Exit OK


Shell: virtualenv --python=python3 --version
virtualenv 20.25.0 from /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/virtualenv/init.py

Shell: Exit OK


Shell: virtualenv --python=python3 env
created virtual environment CPython3.12.1.final.0-64 in 158ms
creator CPython3Posix(dest=/Users/celian/Documents/AI/Jarvis/env, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/Users/celian/Library/Application Support/virtualenv)
added seed packages: pip==23.3.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

Shell: Exit OK

============ Installing requirements =============


Shell: env/bin/pip install -U -r installer/requirements.txt
Ignoring archey4: markers 'sys_platform != "darwin"' don't match your environment
Ignoring pathlib2: markers 'python_version < "3.4"' don't match your environment
Ignoring psutil: markers 'sys_platform == "win32"' 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 pyttsx3: markers 'sys_platform != "darwin"' 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 beautifulsoup4 (from -r installer/requirements.txt (line 2))
Using cached beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
Collecting climage (from -r installer/requirements.txt (line 3))
Using cached climage-0.2.0-py3-none-any.whl.metadata (2.7 kB)
Collecting colorama (from -r installer/requirements.txt (line 4))
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 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-6.1.0-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 (8.2 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.40-py3-none-any.whl.metadata (12 kB)
Collecting googletrans (from -r installer/requirements.txt (line 10))
Using cached googletrans-3.0.0.tar.gz (17 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 IMDbPY (from -r installer/requirements.txt (line 11))
Using cached IMDbPY-2022.7.9-py3-none-any.whl (1.2 kB)
Collecting matplotlib (from -r installer/requirements.txt (line 12))
Using cached matplotlib-3.8.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (5.8 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.8.1-py3-none-any.whl (1.5 MB)
Collecting pdfkit (from -r installer/requirements.txt (line 16))
Using cached pdfkit-1.0.0-py3-none-any.whl (12 kB)
Collecting pick (from -r installer/requirements.txt (line 17))
Using cached pick-2.2.0-py3-none-any.whl (4.9 kB)
Collecting pluginmanager (from -r installer/requirements.txt (line 18))
Using cached pluginmanager-0.4.1-py2.py3-none-any.whl (26 kB)
Collecting pycricbuzz (from -r installer/requirements.txt (line 20))
Using cached pycricbuzz-2.4-py2.py3-none-any.whl (10 kB)
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.6.0-py2.py3-none-any.whl (26 kB)
Collecting pync (from -r installer/requirements.txt (line 23))
Using cached pync-2.0.3.tar.gz (374 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 python-dateutil (from -r installer/requirements.txt (line 26))
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pytimeparse (from -r installer/requirements.txt (line 27))
Using cached pytimeparse-1.1.8-py2.py3-none-any.whl (10.0 kB)
Collecting random-word (from -r installer/requirements.txt (line 30))
Using cached Random_Word-1.0.11-py3-none-any.whl (1.2 MB)
Collecting speedtest-cli (from -r installer/requirements.txt (line 32))
Using cached speedtest_cli-2.1.3-py2.py3-none-any.whl (23 kB)
Collecting sympy (from -r installer/requirements.txt (line 33))
Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting tabulate (from -r installer/requirements.txt (line 34))
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting termdown (from -r installer/requirements.txt (line 35))
Using cached termdown-1.18.0-py3-none-any.whl (21 kB)
Collecting opencv-python-headless (from -r installer/requirements.txt (line 36))
Using cached opencv_python_headless-4.9.0.80-cp37-abi3-macosx_11_0_arm64.whl.metadata (20 kB)
Collecting whois (from -r installer/requirements.txt (line 37))
Using cached whois-0.99.3-py3-none-any.whl.metadata (1.6 kB)
Collecting wikipedia (from -r installer/requirements.txt (line 38))
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 40))
Using cached gTTS-2.5.0-py3-none-any.whl.metadata (4.1 kB)
Collecting playsound (from -r installer/requirements.txt (line 41))
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 "/Users/celian/Documents/AI/Jarvis/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Users/celian/Documents/AI/Jarvis/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/celian/Documents/AI/Jarvis/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/85/m6h_lm1575j4q9npm5nsyxsr0000gn/T/pip-build-env-vlz88auh/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/85/m6h_lm1575j4q9npm5nsyxsr0000gn/T/pip-build-env-vlz88auh/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/85/m6h_lm1575j4q9npm5nsyxsr0000gn/T/pip-build-env-vlz88auh/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/private/var/folders/85/m6h_lm1575j4q9npm5nsyxsr0000gn/T/pip-build-env-vlz88auh/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 6, in
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/inspect.py", line 1282, in getsource
lines, lnum = getsourcelines(object)
^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/inspect.py", line 1264, in getsourcelines
lines, lnum = findsource(object)
^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/inspect.py", line 1093, in findsource
raise OSError('could not get source code')
OSError: could not get source code
[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.

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

[notice] A new release of pip is available: 23.3.1 -> 23.3.2
[notice] To update, run: /Users/celian/Documents/AI/Jarvis/env/bin/python -m pip install --upgrade pip

Shell: Exit FAIL Command 'env/bin/pip install -U -r installer/requirements.txt' returned non-zero exit status 1.

Installation failed

FATAL!

@Lyra126
Copy link

Lyra126 commented Jan 24, 2024

Hi! I’m a beginner open source contributor, so please excuse me if I am misunderstanding the situation. It doesn’t look like Jarvis itself is the issue, but instead your build environment doesn’t seem to be correct?


  1. Have you tried updating pip? Although it says that the “error originates from a subprocess, and is likely not a problem with pip” In one of the error messages, it says that a new release of pip is available.
  2. Try checking if your system’s build tools are up-to-date. Since you are on MacOS, try running “brew upgrade” in the terminal
     /Users/celian/Documents/AI/Jarvis/env/bin/python -m pip install --upgrade pip
  3. Also try checking to see if your MacOS is up-to-date or if the python version you are using (Python 3.12) is compatible with all of dependencies. Some packages may have specific version requirements. Check installer/requirements.txt for this. You may need to separately reinstall them.

@pnhofmann
Copy link
Collaborator

Hey @Lyra126

basically yes, you are right. Thanks for your response!

This dependencies are getting kind of annoying. The idea was, to only try only use pure-python requirements. But with different systems issues like this seems to keep popping up - like here with a dependency of a dependency.

I think, I'll probably introduce some fail-save mechanism at some point. Like, if one requirement does not install, disable that feature (in this case, the google text to speech), but allow the rest to work probably.

Sorry, I have quite some work to do right now, so this project is a bit of a mess right now. But let's see, I'll try to push some improvements soon.

@Celiian
Copy link
Author

Celiian commented Feb 8, 2024

Hey so i have tried again after updating pip, i also did brew upgrade and my mac is up to date. I tried to install the requirements before starting the installer but whatever i do i have this error now :

Capture d’écran 2024-02-08 à 13 50 10

I also tried to add setuptools_rust to the requirements.txt but nothing changed

@akhil3417
Copy link

facing this same issue

@KW28
Copy link

KW28 commented Feb 28, 2024

I'm also having this issue.

Update: I tried installing on my mac, but it seems to run endlessly when it hits "Downloading additional data (Dictionary)".

@Vishnu-ve56
Copy link

I am facing the same issue that was described initially. Can I get a fix for Mac?

[Beginner to open source]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants