Octolapse installation fails on mac os: "error: legacy-install-failure"

Hi folks,
I have tried hours and hours but cannot install octolapse on my mac with Big Sur.

When I try
pip3 install "https://github.com/FormerLurker/Octolapse/archive/master.zip"
in my virtual environment, I just got the error below. What can I do ?

octoprint_octolapse/data/lib/c/extruder.h:7:10: fatal error: 'Python.h' file not found
#include <Python.h>
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

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

Γ— Encountered error while trying to install package.
╰─> Octolapse

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



Today I have found a solution by myself. I am using now venv instead of the virtualenv package:

python3 -m venv venv
source venv/bin/activate
venv/bin/python3 -m pip install --upgrade pip
pip3 install -U pyobjc
pip3 install OctoPrint
pip3 install "https://github.com/FormerLurker/Octolapse/archive/master.zip"


1 Like