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

I still face Issues with all the requirements satisfied. #1193

Open
Carlos1729 opened this issue Jun 17, 2021 · 2 comments
Open

I still face Issues with all the requirements satisfied. #1193

Carlos1729 opened this issue Jun 17, 2021 · 2 comments

Comments

@Carlos1729
Copy link

I still face Issues with all the requirements satisfied.

Traceback (most recent call last):
File "/anaconda3/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/anaconda3/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/anaconda3/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Projectfolder/predict_risk/views.py", line 31, in PredictRisk
standard_scalar = GetStandardScalarForHeart()
File "/Projectfolder/predict_risk/data_provider.py", line 32, in GetStandardScalarForHeart
return GetPickleFile(config['heart']['scalar_file'])
File "/projectfolder/predict_risk/data_provider.py", line 27, in GetPickleFile
return pickle.load(open(os.path.join(dir, filepath), "rb"))
File "/anaconda3/lib/python3.8/site-packages/sklearn/init.py", line 65, in
from .utils._show_versions import show_versions
File "/anaconda3/lib/python3.8/site-packages/sklearn/utils/init.py", line 13, in
from .validation import (as_float_array,
File "/anaconda3/lib/python3.8/site-packages/sklearn/utils/validation.py", line 27, in
from ..utils._joblib import Memory
File "/anaconda3/lib/python3.8/site-packages/sklearn/utils/_joblib.py", line 18, in
from ..externals.joblib import all # noqa
File "/anaconda3/lib/python3.8/site-packages/sklearn/externals/joblib/init.py", line 119, in
from .parallel import Parallel
File "/anaconda3/lib/python3.8/site-packages/sklearn/externals/joblib/parallel.py", line 32, in
from .externals.cloudpickle import dumps, loads
File "/anaconda3/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/init.py", line 3, in
from .cloudpickle import *
File "/anaconda3/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 150, in
_cell_set_template_code = _make_cell_set_template_code()
File "/anaconda3/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 131, in _make_cell_set_template_code
return types.CodeType(
TypeError: an integer is required (got type bytes)

@ogrisel

Originally posted by @Carlos1729 in #917 (comment)

@Carlos1729
Copy link
Author

Resolved

@Carlos1729 Carlos1729 reopened this Jun 18, 2021
@Carlos1729
Copy link
Author

Carlos1729 commented Jun 18, 2021

It still doesn't work @ogrisel

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