yampelo / beagle

Beagle is an incident response and digital forensics tool which transforms security logs and data into graphs.
MIT License
1.27k stars 145 forks source link

ERROR: WARNING: Failed to import pybindgen. #35

Closed gakowalski closed 5 years ago

gakowalski commented 5 years ago

While building an image with the provided dockerfile:

ERROR: Complete output from command /usr/local/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-k659x2dw/fastchunking/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-_qadqzwb --python-tag cp36: ERROR: WARNING: Failed to import pybindgen. If you called setup.py egg_info,this is probably acceptable; otherwise, build will fail.You can resolve this problem by installing pybindgen beforehand. running bdist_wheel running build running build_py creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/fastchunking copying fastchunking/benchmark.py -> build/lib.linux-x86_64-3.6/fastchunking copying fastchunking/test.py -> build/lib.linux-x86_64-3.6/fastchunking copying fastchunking/init.py -> build/lib.linux-x86_64-3.6/fastchunking creating build/lib.linux-x86_64-3.6/lib copying lib/rabinkarpgen.py -> build/lib.linux-x86_64-3.6/lib copying lib/rabinkarp_gen.py -> build/lib.linux-x86_64-3.6/lib copying lib/init.py -> build/lib.linux-x86_64-3.6/lib running build_ext building 'fastchunking._rabinkarprh' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/tmp creating build/temp.linux-x86_64-3.6/tmp/pip-install-k659x2dw creating build/temp.linux-x86_64-3.6/tmp/pip-install-k659x2dw/fastchunking creating build/temp.linux-x86_64-3.6/tmp/pip-install-k659x2dw/fastchunking/build creating build/temp.linux-x86_64-3.6/lib gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilib -I/usr/local/include/python3.6m -c /tmp/pip-install-k659x2dw/fastchunking/build/rabinkarprh.cpp -o build/temp.linux-x86_64-3.6/tmp/pip-install-k659x2dw/fastchunking/build/rabinkarprh.o gcc: error: /tmp/pip-install-k659x2dw/fastchunking/build/rabinkarprh.cpp: No such file or directory gcc: fatal error: no input files compilation terminated. error: command 'gcc' failed with exit status 1 ERROR: Failed building wheel for fastchunking

gakowalski commented 5 years ago

Also other build errors:

ERROR: rekall-core 1.7.2rc1 has requirement python-dateutil==2.6.1, but you'll have python-dateutil 2.8.0 which is incompatible. ERROR: rekall-core 1.7.2rc1 has requirement pytz==2017.3, but you'll have pytz 2018.9 which is incompatible. ERROR: rekall-agent 1.7.1 has requirement requests==2.18.1, but you'll have requests 2.21.0 which is incompatible.

yampelo commented 5 years ago

Are you just using the Dockerfile in the repository or are you trying to add it to your own?

gakowalski commented 5 years ago

@yampelo Dockerfile in the repository.

yampelo commented 5 years ago

That is odd, do you need to build it? It successfully built from dockerhub two days ago on the last change. You can pull down the image using docker pull yampelo/beagle, at that point the same base image will be available and you can add anything else you want in a dockerfile like this

from yampelo/beagle

ADD hello /
CMD ["/hello"]

image

gakowalski commented 5 years ago

I don't neet to build it, but I wanted you to know that there are some problems. Apparently during those two days something must have changed among the libraries and components used in build process.

yampelo commented 5 years ago

I think it may be specific to your env, I triggered a build on dockerhub with the state the repo is in right now and it managed to build

image