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
Get Error while import the module #12226
Comments
i also get this |
It can be ignored but ideally, it should be fixed in cloudpipe/cloudpickle#207 . |
@ogrisel I've read what you wrote in via the link you shared, but I could not understand the fix. |
I face the same issue. Just try to install cloudpickle library. It works for me. pip install cloudpickle |
with cloudpickle the issue is gone! |
This works!Thanks! |
It seems like the issue was fixed on |
I released cloudpickle 0.6.0. It will be part of scikit-learn 0.20.1 in a couple of days or 0.20.2 at most. |
I've just installed cloudpickle and am still getting the error. This is after a restart as well. I'm quite new at this and don't know how to troubleshoot it efficiently. Windows 10pro 64bit |
@nklein9 same here
Windows 10 x64 Any ideas? |
The only difference is my cloudpickle version is 0.5.6. Maybe you can try this version. Not sure whether it will help. |
btw this is a warning so really there is no issue to fix... |
@ivan-marroquin Thank you! I'll be working on it later today and will come back with results. @amueller my ide (komodo) stops completely. The error message says it's a warning but the ide treats it as an error and flags it as such. I tried running the code is vscode as well and got a similar result. |
@nklein9 Either you have an option set to treat all warnings as errors (which would be kinda weird), or the issue is unrelated. If the same happens in multiple IDEs, that probably means there's a crash unrelated to the warning. |
@amueller you are right, especially because the warning is printed to stderr, not stdout. |
The downgrade to cloudpickle 0.5.6 worked. Thanks everyone. |
Thanks,it also works for me. |
it works in my situation |
Seems like updating sklearn to 0.20.1 solves the issue! |
Solved By updating |
with
no more warning is generated |
pip install joblib |
This worked for me: |
Description
I get this error after importing the module
/usr/local/lib/python3.6/dist-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp
Can I ignore it?
How to solve it?
Steps/Code to Reproduce
import sklearn
Expected Results
NO ISSUE
Actual Results
/usr/local/lib/python3.6/dist-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp
Versions
PLATFORM=Linux-4.15.0-34-generic-x86_64-with-Ubuntu-18.04-bionic
PYTHON=Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0]
NUMPY=NumPy 1.15.2
SCIPY= SciPy 1.1.0
SKLEARN=Scikit-Learn 0.20rc1
The text was updated successfully, but these errors were encountered: