Open casey opened 3 years ago
I just ran into the same problem on macOS:
umbrel-dev: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.7/c/_cffi_backend.o
umbrel-dev: c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
umbrel-dev: #include <ffi.h>
umbrel-dev: ^~~~~~~
umbrel-dev: compilation terminated.
umbrel-dev: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
umbrel-dev:
umbrel-dev: ----------------------------------------
umbrel-dev: Running setup.py clean for cffi
umbrel-dev: Failed building wheel for cffi
umbrel-dev: Successfully built dockerpty docopt
Is there a known workaround already?
I have run into this on macOS 10.15.7 and Ubuntu 20.04.3. Is this a version issue? umbrel-dev
has worked previously.
In umbrel-dev/Vagrantfile
try editing the following section to add some more build tools:
# Update package lists
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y build-essential libssl-dev libffi-dev python-dev
SHELL
Seemed to do the trick for me.
Looks like this commit now solves the issue: https://github.com/getumbrel/umbrel-dev/commit/874d4d801f1bb04ded5155e303be31fe20a17e63
I ran into something similar and latest version (1.3.0) did not fix it:
...
umbrel-dev:
umbrel-dev: ----------------------------------------
umbrel-dev: Running setup.py clean for bcrypt
umbrel-dev: Failed building wheel for bcrypt
umbrel-dev: Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bmecv7k5/bcrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
umbrel-dev: running clean
umbrel-dev: removing 'build/lib.linux-x
...
umbrel-dev: Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bmecv7k5/bcrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-v5x2l52y/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-bmecv7k5/bcrypt/
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Found this comment and added
pip3 install -U "bcrypt<4.0.0"
right before line 78. That got it working!
I'm trying to get
umbrel-dev
working on macOS, but got an error when runningumbrel-dev boot
:Full log: