Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing trigger on raspbian #304

Open
ghost opened this issue Oct 19, 2016 · 5 comments
Open

Installing trigger on raspbian #304

ghost opened this issue Oct 19, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 19, 2016

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

@Willramses2
Copy link

"Sudo apt-get install python-dev" may solve your python.h issue.

Will

On Wednesday, October 19, 2016, thecableguy11492 notifications@github.com
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
#304, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFakMGRfrNqlto590ZIz37ngjaQCAlZks5q1hm3gaJpZM4Ka9r9
.

@ghost
Copy link
Author

ghost commented Oct 20, 2016

@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

@tcuthbert
Copy link
Contributor

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 <notifications@github.com

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
#304 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD64L-2cwoAWb_SSG1ZYVSxpkWUdq1Yjks5q1tLagaJpZM4Ka9r9
.

@Willramses2
Copy link

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 notifications@github.com
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
#304 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFakNwES-taMKABkImfS6bTNEI4pb_0ks5q1tLZgaJpZM4Ka9r9
.

@jathanism
Copy link
Member

Methinks we could use this as an excuse to improve the install docs a little! Add some OS-specific instructions for things like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants