trigger
trigger copied to clipboard
Installing trigger on raspbian
I'm getting a lot of errors when trying to install trigger on a raspberry pi with raspbian.
Version = Jessie 8
Linux version 4.4.21-v7+
I continually see the install trying to reference a file ('Python.h") that I apparently do not have. Below is a snippet of the errors I'm seeing.
In file included from /tmp/easy_install-TznDVO/SimpleParse-2.2.0/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c:18:0: /tmp/easy_install-TznDVO/SimpleParse-2.2.0/simpleparse/stt/TextTools/mxTextTools/mx.h:60:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
In file included from /tmp/easy_install-GvFxEz/SimpleParse-2.2.0/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c:18:0: /tmp/easy_install-GvFxEz/SimpleParse-2.2.0/simpleparse/stt/TextTools/mxTextTools/mx.h:60:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated.
raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-MIychA/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-xoGd_P-record/install-record.txt --single-version-externally-managed --compile: Package libffi was not found in the pkg-config search path.
distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
"Sudo apt-get install python-dev" may solve your python.h issue.
Will
On Wednesday, October 19, 2016, thecableguy11492 [email protected] wrote:
I'm getting a lot of errors when trying to install trigger on a raspberry pi with raspbian.
Version = Jessie 8 Linux version 4.4.21-v7+ I continually see the install trying to reference a file ('Python.h") that I apparently do not have. Below is a snippet of the errors I'm seeing.
In file included from /tmp/easy_install-TznDVO/ SimpleParse-2.2.0/simpleparse/stt/TextTools/mxTextTools/ mxTextTools.c:18:0: /tmp/easy_install-TznDVO/SimpleParse-2.2.0/simpleparse/ stt/TextTools/mxTextTools/mx.h:60:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
In file included from /tmp/easy_install-GvFxEz/ SimpleParse-2.2.0/simpleparse/stt/TextTools/mxTextTools/ mxTextTools.c:18:0: /tmp/easy_install-GvFxEz/SimpleParse-2.2.0/simpleparse/ stt/TextTools/mxTextTools/mx.h:60:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory #include ^ compilation terminated.
raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-MIychA/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-xoGd_P-record/install-record.txt --single-version-externally-managed --compile: Package libffi was not found in the pkg-config search path.
distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trigger/trigger/issues/304, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFakMGRfrNqlto590ZIz37ngjaQCAlZks5q1hm3gaJpZM4Ka9r9 .
@Willramses2 Thank you for the comment it helped! I have another error now though. Any suggestions?
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory #include <ffi.h> ^ compilation terminated.
distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-TXRBMm/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-wj9InC-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-TXRBMm/cryptography Storing debug log for failure in /root/.pip/pip.log
What's the output of sudo dpkg -l | grep libffi-dev ?
If there is nothing there maybe try installing it sudo apt-get install libffi-dev
Regards,
Thomas Cuthbert
On Thu, Oct 20, 2016 at 10:32 AM, thecableguy11492 <[email protected]
wrote:
@Willramses2 https://github.com/Willramses2 Thank you for the comment it helped! I have another error now though. Any suggestions?
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory #include ^ compilation terminated.
distutils.errors.DistutilsError: Setup script exited with error: command
'arm-linux-gnueabihf-gcc' failed with exit status 1
Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;file ='/tmp/pip-build-TXRBMm/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-wj9InC-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-TXRBMm/cryptography Storing debug log for failure in /root/.pip/pip.log
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trigger/trigger/issues/304#issuecomment-254993563, or mute the thread https://github.com/notifications/unsubscribe-auth/AD64L-2cwoAWb_SSG1ZYVSxpkWUdq1Yjks5q1tLagaJpZM4Ka9r9 .
The ffi.h i believe is installed from libffi-dev (sudo apt-get install libffi-dev). If it is already installed then you can use CFLAGS to reference it.
Will
On Wednesday, October 19, 2016, thecableguy11492 [email protected] wrote:
@Willramses2 https://github.com/Willramses2 Thank you for the comment it helped! I have another error now though. Any suggestions?
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory #include ^ compilation terminated.
distutils.errors.DistutilsError: Setup script exited with error: command
'arm-linux-gnueabihf-gcc' failed with exit status 1
Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;file ='/tmp/pip-build-TXRBMm/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-wj9InC-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-TXRBMm/cryptography Storing debug log for failure in /root/.pip/pip.log
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/trigger/trigger/issues/304#issuecomment-254993563, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFakNwES-taMKABkImfS6bTNEI4pb_0ks5q1tLZgaJpZM4Ka9r9 .
Methinks we could use this as an excuse to improve the install docs a little! Add some OS-specific instructions for things like this?