You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Reacted by Charlotte Weaver, Dror Atariah, Melissa R Dale, Mr Tarsa, Jaideep Murkute, Ivan Boyko, Arka Sadhu, Oleksandr Shchur, Gregory Gundersen, Zahra Majabadi and 8 more
I face the same issue. Just try to install cloudpickle library. It works for me.
pip install cloudpickle
Reacted by yyb1995, NAVNEET VAIRAGADE, Emir Muñoz, Robert, Karamnuy, Kleyton Matos Ramos, Jaideep Murkute, Luke Halley, Prayson Wilfred Daniel, Molly and 1 more
Reacted by satsch, Daniil Korbut, Jakob Drachmann Havtorn, Hussein Al-Olimat, 大元, ThinklabCMB, Tuhin Sharma, Salma Nasr, mc0ps, Rida BENBOUZIANE and 3 more
Reacted by NAVNEET VAIRAGADE, Theis Jendal, Karamnuy and Rida BENBOUZIANE
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
Python version 3.7.0
numpy version 1.15.1
scipy version 1.1.0
sklearn version 0.20.0
cloudpickle version 0.6.0
Reacted by Vincent Brubaker-Gianakos, Melissa R Dale, Erlend Faxvaag, Pavel Haluza, Tim Helfensdörfer, Daniyar Kussainov, Elizabeth Santorella, Mohamed Ali Mimouni, Alexander Juda, noname and 1 more
The only difference is my cloudpickle version is 0.5.6. Maybe you can try this version. Not sure whether it will help.
Reacted by Martin Li, Filippo Cremonese, xingyuezhiji, RodolpheChazal, Nikita Titov, freeneuro, Alexander Seifert, limorigu, charlie, Eric Yates and 1 more
I had the same installation version as the one listed by @nklein9 in the previous post on an Ubuntu 18.04 machine. So, I removed cloudpickle 0.6.0 and installed version 0.5.6 - following suggestion from @yyb1995. Changing the version fixed the problem!
Thanks,
Ivan
Reacted by brunoparodi, Mr Tarsa, Filippo Cremonese, Nikita Titov, Zhenhan Li, Eugene Ilyushin, Azmi Can Özgen, limorigu, brodderickrodriguez, 신동협(Donghyeop Shin) and 1 more
@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.
Using cloudpickle 0.5.6 eliminated the warning.
Reacted by Yerzhan Torgayev, Adam Morrow, Nikita Titov, Alexander Seifert, 寒山, Dwarak Govind Parthiban, Azmi Can Özgen, limorigu, Eric Yates, Vaibhav Dangra and 2 more
The downgrade to cloudpickle 0.5.6 worked. Thanks everyone.
Reacted by Dror Atariah, Iman Mirzadeh, Pratik Bhavsar, Chriskuei, Hubert Gabryś, 寒山, limorigu, Dimitrios Vitsios, Anastasios Zouzias, Eric Yates and 3 more
Seems like updating sklearn to 0.20.1 solves the issue!
Reacted by Rob, Martin Schrimpf, Morwenn, Charlotte Weaver, Shantanu Karnwal, Rex Low, alliedtoasters, Felix Hildén, Ivan Zhang, Takekazu Omi and 4 more
Reacted by adoxography, Charlotte Weaver, alliedtoasters, Ivan Zhang and Emi Tran
Activity
zxhralf commentedon Oct 1, 2018
i also get this
on macOs 10.12.6
python 3.7
numpy 1.15.2
scipy 1.1.0
scikit-learn 0.20.0
ogrisel commentedon Oct 1, 2018
It can be ignored but ideally, it should be fixed in cloudpipe/cloudpickle#207 .
digital-mine commentedon Oct 3, 2018
@ogrisel
did you have the same issue, and you solved?
I've read what you wrote in via the link you shared, but I could not understand the fix.
Pardon my ignorance
mohak2312 commentedon Oct 5, 2018
I face the same issue. Just try to install cloudpickle library. It works for me.
pip install cloudpickle
digital-mine commentedon Oct 5, 2018
with cloudpickle the issue is gone!
yyb1995 commentedon Oct 6, 2018
This works!Thanks!
drorata commentedon Oct 8, 2018
It seems like the issue was fixed on
cloudpipe's side (see cloudpipe/cloudpickle#208). When will it become part ofsklearn?ogrisel commentedon Oct 8, 2018
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.
nklein9 commentedon Oct 9, 2018
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
Python version 3.7.0
numpy version 1.15.1
scipy version 1.1.0
sklearn version 0.20.0
cloudpickle version 0.6.0
Apelsin commentedon Oct 10, 2018
@nklein9 same here
Windows 10 x64
Any ideas?
yyb1995 commentedon Oct 10, 2018
The only difference is my cloudpickle version is 0.5.6. Maybe you can try this version. Not sure whether it will help.
ivan-marroquin commentedon Oct 11, 2018
Hi all,
I had the same installation version as the one listed by @nklein9 in the previous post on an Ubuntu 18.04 machine. So, I removed cloudpickle 0.6.0 and installed version 0.5.6 - following suggestion from @yyb1995. Changing the version fixed the problem!
Thanks,
Ivan
amueller commentedon Oct 11, 2018
btw this is a warning so really there is no issue to fix...
nklein9 commentedon Oct 12, 2018
@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.
amueller commentedon Oct 12, 2018
@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.
Apelsin commentedon Oct 12, 2018
@amueller you are right, especially because the warning is printed to stderr, not stdout.
Using cloudpickle 0.5.6 eliminated the warning.
nklein9 commentedon Oct 12, 2018
The downgrade to cloudpickle 0.5.6 worked. Thanks everyone.
dreamlovesft commentedon Oct 29, 2018
Thanks,it also works for me.
winterwindwang commentedon Nov 19, 2018
it works in my situation
drorata commentedon Nov 23, 2018
Seems like updating sklearn to 0.20.1 solves the issue!
KHALED-gtf commentedon Dec 31, 2018
Solved By updating
Thanks everybody
removing sklearn warning by forcinf clouldpicke 0.5.6 scikit-learn/sc…
sanjita-suresh commentedon Jun 28, 2019
with
no more warning is generated
PortalMeJohn commentedon Jan 30, 2020
pip install joblib
tomasborrella commentedon May 2, 2020
This worked for me:
pip install scikit-learn=0.20.2