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

ImportError: cannot import name 'joblib' #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

reed-sandberg
Copy link

The following error occurs when:

from profanity_check import predict, predict_prob

from sklearn.externals import joblib ImportError: cannot import name 'joblib'

The latest sklearn package doesn't export this symbol. Also a minor or patch version upgrade of scikit-learn gives the following warning, so this should be locked at scikit-learn-0.20.2:

sklearn/base.py:253: UserWarning: Trying to unpickle estimator CountVectorizer from version 0.20.2 when using version 0.20.3. This might lead to breaking code or invalid results. Use at your own risk.
  UserWarning)

The following error occurs when:

`from profanity_check import predict, predict_prob`

from sklearn.externals import joblib ImportError: cannot import name 'joblib'

The latest sklearn package doesn't export this symbol. Also a minor or patch version upgrade of scikit-learn gives the following warning, so this should be locked at `scikit-learn-0.20.2`:

```
sklearn/base.py:253: UserWarning: Trying to unpickle estimator CountVectorizer from version 0.20.2 when using version 0.20.3. This might lead to breaking code or invalid results. Use at your own risk.
  UserWarning)
```
@kennell
Copy link

kennell commented Nov 16, 2021

There is a somewhat actively maintained fork that fixes this issue, along with some other improvements and updates.

https://gitlab.com/dimitrios/alt-profanity-check

@JoshuaMathias
Copy link

I see that GitHub is now used for the fork: https://github.com/dimitrismistriotis/alt-profanity-check

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

Successfully merging this pull request may close these issues.

3 participants