-
Notifications
You must be signed in to change notification settings - Fork 118
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
Issue with joblib #15
Comments
Fix for anyone wondering: Downgrade your scikit-learn to 0.20.2 to fix this issue. |
scikit-learn |
Whenever I try to use scikit-learn 0.20.2, it gets stuck at building when running the setup.py |
How can I run it on my local to fix the issue? |
Assuming you're using
|
Not working for python3.8. py3.8 requires sklearn >= 0.22 . |
joblib==0.14.1
While loading model KeyError pops. What version of joblib is required to load the model ?? |
Running Python 3.8.5 (OSX) >>> from profanity_check import predict
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/profanity_check/__init__.py", line 1, in <module>
from .profanity_check import predict, predict_prob
File "/usr/local/lib/python3.8/site-packages/profanity_check/profanity_check.py", line 3, in <module>
from sklearn.externals import joblib
File "/usr/local/lib/python3.8/site-packages/sklearn/__init__.py", line 64, in <module>
from .base import clone
File "/usr/local/lib/python3.8/site-packages/sklearn/base.py", line 13, in <module>
from .utils.fixes import signature
File "/usr/local/lib/python3.8/site-packages/sklearn/utils/__init__.py", line 14, in <module>
from . import _joblib
File "/usr/local/lib/python3.8/site-packages/sklearn/utils/_joblib.py", line 22, in <module>
from ..externals import joblib
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/__init__.py", line 119, in <module>
from .parallel import Parallel
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/parallel.py", line 28, in <module>
from ._parallel_backends import (FallbackToBackend, MultiprocessingBackend,
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/_parallel_backends.py", line 22, in <module>
from .executor import get_memmapping_executor
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/executor.py", line 14, in <module>
from .externals.loky.reusable_executor import get_reusable_executor
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/loky/__init__.py", line 12, in <module>
from .backend.reduction import set_loky_pickler
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/loky/backend/reduction.py", line 125, in <module>
from sklearn.externals.joblib.externals import cloudpickle # noqa: F401
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/__init__.py", line 3, in <module>
from .cloudpickle import *
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 167, in <module>
_cell_set_template_code = _make_cell_set_template_code()
File "/usr/local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 148, in _make_cell_set_template_code
return types.CodeType(
TypeError: an integer is required (got type bytes) |
Getting same error as @Echooff3 on python37 and scikit-learn==0.20.2 |
I dont think the downgrade helps. Getting the same error |
A few months ago, I had this all working, but now I get the same error. Ubuntu 20.04
The problem is compatibility with Python 3.8. I tried Ubuntu 20.04's Python 2.7, but another module I need requires Python 3. Then I used a PPA to install Python 3.7, and it all works. Here's a script
|
it worked for me too, many thanks |
The solution to downgrade (@az0 ) worked for me, too. Using [tool.poetry.dependencies]
python = "3.7.9"
profanity-check = "1.0.3"
scikit-learn = "0.20.2" However, I set this up using |
Found this as an alternative: https://pypi.org/project/alt-profanity-check/ Worked for me with Python 3.8 |
I've been trying to fix this error for a bit now, tried up & downgrading. Probably a case of dependency hell, has anyone else experienced this before?
The text was updated successfully, but these errors were encountered: