Closed LessThanCorey closed 3 years ago
same problem here with raspberry pi 2
pip is trying to compile the cffi module from source and is unable to find one of the dependencies. This is less surprising for the CHIP than for the Raspberry Pi since most folks running on a Raspberry Pi are running from the OctoPi image and those libraries are either already there or not needed since the requisite module is already available.
On the command line try:
sudo apt-get install libffi-dev
And then:
source /home/chip/OctoPrint/venv/bin/activate pip install cffi
Note for @WHAAAT: the path up there to the venv is most likely different for you. Are you running on an OctoPi image? If so, do you know what version?
If that gives the same error, you may want to figure out where on your system libffi-dev dropped the ffi.h. I think it is supposed to land here: /usr/include/libffi/include in which case, this might do the trick:
CFLAGS=-I/usr/include/libffi/include pip install cffi
Unfortunately that may give you a newer version of cffi than pip is trying to install as a dependency of the version of pyOpenSSL that you already have. And you may either want to go backwards and remove the cffi and try to figure out the version to install or move forward and try to bring pyOpenSSL up to date. Let me know where you're at after the above.
Hi, I´m running from an octopi image. putty tells me: Linux octopi with kernel 3.18.11-v7+ the current octoprint version is: OctoPrint: 1.3.4
sudo apt-get install libffi-dev
It was already installed
source /home/chip/OctoPrint/venv/bin/activate pip install cffi
sudo apt-get install build-essential libssl-dev libffi-dev python-dev I needed these updated to install cryptography
pip install cryptography
sudo apt-get install libtiff5-dev libjpeg62-turbo-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev tcl8.6-dev tk8.6-dev python-tk I needed some of these to install Pillow
pip install Pillow
Attempted to install PolarCloud again and was successful!! I'm restarting the octoprint service right now. Thank You for the help and leading me in the right direction.
EDIT: I am up and running on Polar3d.com!!!!
@markwal Same problem on Orange Pi Zero. I tried this sudo apt-get install libffi-dev
And then: source /home/chip/OctoPrint/venv/bin/activate pip install cffi
and looks like it works. Thanks
Should have been fixed in more recent releases.
I have OctoPrint installed on a NTC C.H.I.P., it runs great, but I'm having some issues installing this. I installed it once before, uninstalled it but now I'm unable to re-install it.
I have tried to remove the python-cffi and then re-install with no help.