GuidoBartoli / sherloq

An open-source digital image forensic toolset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run python sherloq.py get TypeError

apanasis opened this issue · comments

python sherloq.py
Traceback (most recent call last):
File "/home/alex/PycharmProjects/sherloq/gui/sherloq.py", line 23, in
from median import MedianWidget
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/home/alex/PycharmProjects/sherloq/gui/median.py", line 15, in
from joblib import load
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/joblib/init.py", line 119, in
from .parallel import Parallel
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/joblib/parallel.py", line 28, in
from ._parallel_backends import (FallbackToBackend, MultiprocessingBackend,
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/joblib/_parallel_backends.py", line 22, in
from .executor import get_memmapping_executor
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/joblib/executor.py", line 14, in
from .externals.loky.reusable_executor import get_reusable_executor
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/joblib/externals/loky/init.py", line 12, in
from .backend.reduction import set_loky_pickler
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/joblib/externals/loky/backend/reduction.py", line 125, in
from joblib.externals import cloudpickle # noqa: F401
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/joblib/externals/cloudpickle/init.py", line 3, in
from .cloudpickle import *
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/joblib/externals/cloudpickle/cloudpickle.py", line 152, in
_cell_set_template_code = _make_cell_set_template_code()
File "/usr/lib/python3.9/site-packages/joblib/externals/cloudpickle/cloudpickle.py", line 133, in _make_cell_set_template_code
return types.CodeType(
TypeError: an integer is required (got type bytes)

Sorry, I was unable to reproduce this: I checked out the project from scratch and installed all the required packages, the Median Filtering module runs without problems. However, the software is tested with Python 3.8, but I noticed you have Python 3.9; can you try to create a virtual environment with 3.8 and try again?