nihal111 / J.A.R.V.I.S

A personal assistant with simple, rudimentary AI
319 stars 213 forks source link

I am getting an error while installing requirements.txt #43

Open Mmesoboy opened 2 years ago

Mmesoboy commented 2 years ago

pip install -r requirements.t Collecting argparse Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB) Collecting aiml Using cached aiml-0.9.2-py2.py3-none-any.whl (2.1 MB) Requirement already satisfied: SpeechRecognition in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (3.8.1) Collecting pyalsaaudio Using cached pyalsaaudio-0.9.2.tar.gz (599 kB) Preparing metadata (setup.py) ... done Collecting pyttsx Using cached pyttsx-1.1.tar.gz (23 kB) Preparing metadata (setup.py) ... done Collecting pyaudio Using cached PyAudio-0.2.11.tar.gz (37 kB) Preparing metadata (setup.py) ... done Collecting gTTS Using cached gTTS-2.2.4-py3-none-any.whl (26 kB) Collecting pygame Using cached pygame-2.1.2.tar.gz (10.1 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [30 lines of output]

  WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
  Using UNIX configuration...

  /data/data/com.termux/files/usr/bin/sh: 1: sdl2-config: not found
  /data/data/com.termux/files/usr/bin/sh: 1: sdl2-config: not found
  /data/data/com.termux/files/usr/bin/sh: 1: sdl2-config: not found
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/data/data/com.termux/files/usr/tmp/pip-install-etkpfwud/pygame_c2dd7e1b52f8451d90abcd9bf859c363/setup.py", line 359, in <module>
      buildconfig.config.main(AUTO_CONFIG)
    File "/data/data/com.termux/files/usr/tmp/pip-install-etkpfwud/pygame_c2dd7e1b52f8451d90abcd9bf859c363/buildconfig/config.py", line 225, in main
      deps = CFG.main(**kwds)
    File "/data/data/com.termux/files/usr/tmp/pip-install-etkpfwud/pygame_c2dd7e1b52f8451d90abcd9bf859c363/buildconfig/config_unix.py", line 188, in main
      DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl']),
    File "/data/data/com.termux/files/usr/tmp/pip-install-etkpfwud/pygame_c2dd7e1b52f8451d90abcd9bf859c363/buildconfig/config_unix.py", line 39, in __init__
      self.ver = config[0].strip()
  IndexError: list index out of range

  Hunting dependencies...

  ---
  For help with compilation see:
      https://www.pygame.org/wiki/Compilation
  To contribute to pygame development see:
      https://www.pygame.org/contribute.html
  ---

  [end of output]

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

× Encountered error while generating package metadata. ╰─> See above for output.

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

Please help me!!!!