GuidoBartoli / sherloq

An open-source digital image forensic toolset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FAILED TO RUN THE PROGRAM

fayezslim opened this issue · comments

(sq) ┌──(kali㉿kali)-[~/Desktop/sherloq/gui]
└─$ python sherloq.py
Traceback (most recent call last):
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.9/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.9/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: /home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: invalid ELF header

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/kali/Desktop/sherloq/gui/sherloq.py", line 34, in
from splicing import SplicingWidget
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/kali/Desktop/sherloq/gui/splicing.py", line 12, in
from noiseprint.noiseprint import genNoiseprint
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/kali/Desktop/sherloq/gui/noiseprint/noiseprint.py", line 16, in
import tensorflow.compat.v1 as tf
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.9/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.9/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: /home/kali/.virtualenvs/sq/lib/python3.9/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: invalid ELF header

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

Are you sure you installed the correct tensorflow for your platform?

https://stackoverflow.com/questions/38579190/invalid-elf-header-tensorflow

──(kali㉿kali)-[~]
└─$ pip show tensorflow

Name: tensorflow
Version: 1.8.0
Summary: TensorFlow helps the tensors flow
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /home/kali/.local/lib/python3.9/site-packages
Requires: wheel, grpcio, astor, absl-py, six, termcolor, gast, numpy, protobuf, tensorboard
Required-by:

Can you show the output of the command uname -a launched on the terminal?

┌──(kali㉿kali)-[~]
└─$ uname -a
Linux kali 5.10.0-kali2-amd64 #1 SMP Debian 5.10.9-1kali1 (2021-01-22) x86_64 GNU/Linux

Mmmh actually I've only tested Sherloq on Linux Mint (based on Ubuntu). Kali is based on Debian, which in turn is the base of Ubuntu, but maybe there is some compatibility problem with Tensorflow on that platform, I don't know how to help you, sorry...

PS: you have a very nice shell prompt! 😉

Thanks man! 😄