Skip to content

ImportError: cannot import name 'joblib'#22

Open
reed-sandberg wants to merge 1 commit intovzhou842:masterfrom
reed-sandberg:patch-1
Open

ImportError: cannot import name 'joblib'#22
reed-sandberg wants to merge 1 commit intovzhou842:masterfrom
reed-sandberg:patch-1

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