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

TypeError: an integer is required (got type bytes) #9

Open
Adesoji1 opened this issue Feb 1, 2022 · 0 comments
Open

TypeError: an integer is required (got type bytes) #9

Adesoji1 opened this issue Feb 1, 2022 · 0 comments

Comments

@Adesoji1
Copy link

Adesoji1 commented Feb 1, 2022

using these libraries below and their versions in python 3.8
imutils==0.5.4
joblib==1.1.0
numpy==1.22.1
opencv-python==4.5.5.62
scikit-learn==0.20.4
scipy==1.7.3
threadpoolctl==3.1.0
i got the error below

Loading Face Detector...
Loading Face Recognizer...
Traceback (most recent call last):
File "recognize_video.py", line 22, in
recognizer = pickle.loads(open("output/recognizer.pickle", "rb").read())
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/init.py", line 64, in
from .base import clone
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/base.py", line 14, in
from .utils.fixes import signature
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/utils/init.py", line 14, in
from . import _joblib
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/utils/_joblib.py", line 22, in
from ..externals import joblib
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/init.py", line 119, in
from .parallel import Parallel
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/parallel.py", line 28, in
from ._parallel_backends import (FallbackToBackend, MultiprocessingBackend,
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/_parallel_backends.py", line 22, in
from .executor import get_memmapping_executor
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/executor.py", line 14, in
from .externals.loky.reusable_executor import get_reusable_executor
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/externals/loky/init.py", line 12, in
from .backend.reduction import set_loky_pickler
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/externals/loky/backend/reduction.py", line 125, in
from sklearn.externals.joblib.externals import cloudpickle # noqa: F401
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/init.py", line 3, in
from .cloudpickle import *
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 152, in
_cell_set_template_code = _make_cell_set_template_code()
File "/home/adesoji/sojiface/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 133, in _make_cell_set_template_code
return types.CodeType(
TypeError: an integer is required (got type bytes)

How do i rectify this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant