knochenhans / pyuade

Retro music player using UADE (Unix Amiga Delitracker Emulator) as its back end
2 stars 0 forks source link

Problem installing requirements #1

Closed amigaosz closed 1 year ago

amigaosz commented 1 year ago

Hello,

first of all thank you for your work and this project. Unfortunately I have a problem installing all dependencies from the requirements.txt.

This is how I've configured uade123:

./configure --with-text-scope

UADE and frontends is installed to      : /usr/local/bin
Data directory                          : /usr/local/share/uade
Uadecore directory                      : /usr/local/lib/uade
Man (documentation) directory           : /usr/local/share/man/man1
Installer                               : /usr/bin/install
Make                                    : /usr/bin/gmake
Target CC                               : gcc
libuade                                 : yes
uadecore                                : yes
uade123                                 : yes
uadefs                                  : no
write audio                             : yes
Text scope support                      : yes
bencode-tools prefix                    : /usr/local
libzakalwe prefix                       : /usr/local
vasm (to compile score)                 : /snap/bin/vasm.vasmm68k-mot

After cloning your repository and changing the directory I've set Python to version 3.10.8 with pyenv and than tried pip install -r requirements.txt but unfortunately this leads to the following error:

Building wheels for collected packages: PyAudio
  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
  ╰─> [16 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      copying src/pyaudio.py -> build/lib.linux-x86_64-cpython-310
      running build_ext
      building '_portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -I/usr/include -I/home/osz/.pyenv/versions/3.10.8/include/python3.10 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-cpython-310/src/_portaudiomodule.o
      src/_portaudiomodule.c:31:10: fatal error: portaudio.h: Datei oder Verzeichnis nicht gefunden
         31 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/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
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects

Now I'm stuck and don't know how to solve this problem. Is there something I've forgotten?

amigaosz commented 1 year ago

Sorry, this was a stupid question. I was looking for a long time what's wrong but just after posting my question I've seen I haven't installed portaudio19-dev. Problem solved. :)

knochenhans commented 1 year ago

Still, thanks for writing, I wasn’t expecting anyone to find and try this anytime soon tbh :sweat_smile: There are still plenty of bugs and unimplemented basic features, but I’m always open for reports and suggestions.

I’ll have to try installing and running this on different distros and update the readme, if I find some time. So far, this has only been tested my Arch dev machine (with all requirements already in place, of course).