shap icon indicating copy to clipboard operation
shap copied to clipboard

No module tqdm.auto found here

Open Anu-kriti opened this issue 5 years ago • 10 comments

I believe this is the query being used with in shap package and it gave me this error

I installed tqdm package but that didn't help

Anu-kriti avatar Jul 24 '19 07:07 Anu-kriti

What tqdm version do you have? I wonder if we need to specify a specific version dependency

slundberg avatar Jul 27 '19 04:07 slundberg

Is this the way seems right to you From tqdm.auto import tqdm Or it should be other way round

Sent from my iPhone

On 27-Jul-2019, at 9:48 AM, Scott Lundberg [email protected] wrote:

What tqdm version do you have? I wonder if we need to specify a specific version dependency

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Anu-kriti avatar Jul 27 '19 05:07 Anu-kriti

That form matches the tqdm docs

On Fri, Jul 26, 2019 at 10:42 PM Anukriti Gupta [email protected] wrote:

Is this the way seems right to you From tqdm.auto import tqdm Or it should be other way round

Sent from my iPhone

On 27-Jul-2019, at 9:48 AM, Scott Lundberg [email protected] wrote:

What tqdm version do you have? I wonder if we need to specify a specific version dependency

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/slundberg/shap/issues/714?email_source=notifications&email_token=AA4RHRLSS2MF2P5U6XYIUHLQBPN4FA5CNFSM4IGNCBZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD26EH2Y#issuecomment-515654635, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4RHRL3QKMZK3EMVMELVX3QBPN4FANCNFSM4IGNCBZQ .

slundberg avatar Jul 27 '19 07:07 slundberg

I am experiencing the same issue, using shap 0.29.3 and tqdm 4.26.0

Edit: downgrading to 0.29.1 fixed this for me.

johnmccain avatar Jul 29 '19 18:07 johnmccain

@johnmccain that's because the use of auto was added in 0.29.2. https://github.com/tqdm/tqdm has that option documented. But if it is breaking for people perhaps we should not be using it. Just to be clear from tqdm.auto import tqdm fails in a blank notebook for your install? How about from tqdm.autonotebook import tqdm?

slundberg avatar Jul 29 '19 19:07 slundberg

Same issue here...

peiyaoli avatar Aug 13 '19 01:08 peiyaoli

I had the same issue, upgrading tqdm fixed it. pip install tqdm --upgrade

pyaf avatar Aug 19 '19 19:08 pyaf

I still have the same issue with shap 0.35 and tqdm4.43.0 when i run the test script, got an error:

from tqdm.auto import tqdm ModuleNotFoundError: No module named 'tqdm.auto'

pretty sure that shap 0.35 has been successfully install along with tqdm 4.43.0 under: /Library/Python/3.7/lib/python/site-packages/

please help

dorcatty avatar Mar 18 '20 23:03 dorcatty

I had the same issue, upgrading tqdm fixed it. pip install tqdm --upgrade

Fit for me, thank you!

feynmanma7 avatar Aug 18 '20 10:08 feynmanma7

Can someone find which exact version of tqdm is needed to have this fixed?

But even if not, a fix is available. So I believe this issue can be closed. CC @slundberg

jonnor avatar Aug 09 '22 08:08 jonnor