Elastalertのインストール時のエラーについて

elastalertのインストールに関してご教授ください。


を見ながらelastalertのインストールをしています。
OSはubuntu14.04 python のバージョンは2.7.6です。
elastalert-create-indexの実行の際に、以下のように出てしまいます。

Traceback (most recent call last):
File "/usr/local/bin/elastalert-create-index", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master
ws.require(requires)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: cffi>=1.11.5

事前のpython setup.py installを打った直後で関係のありそうな表示を見てみると以下のような表示があります。

Installed /usr/local/lib/python2.7/dist-packages/elastalert-0.1.39-py2.7.egg
Processing dependencies for elastalert==0.1.39
Searching for cffi>=1.11.5
Reading https://pypi.python.org/simple/cffi/
Best match: cffi 1.12.3
Downloading https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz#sha256=041c81822e9f84b1d9c401182e174996f0bae9991f33725d059b771744290774
Processing cffi-1.12.3.tar.gz
Writing /tmp/easy_install-RHjA_n/cffi-1.12.3/setup.cfg
Running cffi-1.12.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-RHjA_n/cffi-1.12.3/egg-dist-tmp-J63jTI
compiling '_configtest.c':
__thread int some_threadlocal_variable_42;

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
compiling '_configtest.c':
int main(void) { __sync_synchronize(); return 0; }

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
x86_64-linux-gnu-gcc -pthread _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
c/_cffi_backend.c:2:20: fatal error: Python.h: そのようなファイルやディレクトリ はありません
#include <Python.h>
^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

全く内容が理解できてないのですが、cffi-1.12.3.tar.gzというのをダウンロードできているようにも見えるのですが、どなたか原因についてわかりますでしょうか?
よろしくお願い致します。

Elastalertに関しては開発元に直接問い合わせていただくのが良いかと思います。

ありがとうございます。
そうしてみます。

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.