ge0rg / samsung-nx-emailservice

HTTP service replacement for Samsung NX cameras
18 stars 0 forks source link

compilation issue #2

Open rmoro-de opened 4 months ago

rmoro-de commented 4 months ago

compiled on armbian

running build_ext building '_cffi_backend' extension creating build/temp.linux-armv7l-cpython-311 creating build/temp.linux-armv7l-cpython-311/src creating build/temp.linux-armv7l-cpython-311/src/c arm-linux-gnueabihf-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/root/venv/include -I/usr/include/python3.11 -c src/c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-311/src/c/_cffi_backend.o src/c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directory 2 | #include | ^~~~~~ compilation terminated. error: command '/usr/bin/arm-linux-gnueabihf-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 cffi
  Failed to build cffi
  ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
  [end of output]

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

× pip subprocess to install build dependencies 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.

horazont commented 4 months ago

apt install python3-dev libpython3-dev

ge0rg commented 3 months ago

Were you able to move forward? I pushed a significant number of changes in the last days, including actual email sending and Mastodon support, and there was a missing Flask-Autoindex in the requirements. Furthermore, it looks like not all cameras are fully working with the now-stable Flask 3.x, so staying on Flask 2.x is recommended for now.