ILikeAI / AlwaysReddy

AlwaysReddy is a LLM voice assistant that is always just a hotkey away.
MIT License
621 stars 61 forks source link

Python Error installing first round of requirements on Pop_OS 24.04 LTS #35

Closed IntrovertedFL closed 4 months ago

IntrovertedFL commented 4 months ago
Building wheel for PyAudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyAudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/local/include -I/usr/include -I/home/aaron/Documents/GitHub/AlwaysReddy/venv/include -I/usr/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyAudio
  Building wheel for evdev (pyproject.toml) ... done
  Created wheel for evdev: filename=evdev-1.7.1-cp310-cp310-linux_x86_64.whl size=93451 sha256=97aa33365d98c7963b5854a0ce5857b1e22eb3abf6ee4bfda69efc749cdbc794
  Stored in directory: /home/aaron/.cache/pip/wheels/97/dc/9f/d5066d7977e11ec038fb217f420e1b4e4fb401133594bb0b33
Successfully built evdev
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
ILikeAI commented 4 months ago

hmmm thats not idea. Are you in a venv?

IntrovertedFL commented 4 months ago

Yes, I followed the instructions exactly for Linux install.

zheroz00 commented 4 months ago

Do you have portaudio19-dev installed?

sudo apt-get install portaudio19-dev

IntrovertedFL commented 4 months ago

At work now, I'll give it a go later this evening and report back :)

ILikeAI commented 4 months ago

Let me know if this works, If so ill add that step to the read me :)

IntrovertedFL commented 4 months ago

So sorry just now getting back to this, I installed the package suggested by @zheroz00 and was able to successfully run the software!! Thank you for such an awesome software. @ILikeAI :)

ILikeAI commented 4 months ago

Oh awesome im really glad you go it working! No worries, its been a lot of fun to make!