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

Run python sherloq.py get TypeError #37

Open
apanasis opened this issue Mar 16, 2021 · 1 comment
Open

Run python sherloq.py get TypeError #37

apanasis opened this issue Mar 16, 2021 · 1 comment

Comments

@apanasis
Copy link

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)

@GuidoBartoli
Copy link
Owner

GuidoBartoli commented Mar 16, 2021

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?

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

2 participants