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

ModuleNotFoundError: No module named 'tqdm.auto' #5

Closed
miladfa7 opened this issue Sep 25, 2019 · 3 comments
Closed

ModuleNotFoundError: No module named 'tqdm.auto' #5

miladfa7 opened this issue Sep 25, 2019 · 3 comments

Comments

@miladfa7
Copy link

I Run this code :

import numpy as np
import pandas as pd
from tqdm.auto import tqdm
import pickle
import gc
import json
import h5py

from IPython.display import clear_output
import matplotlib.pyplot as plt
%matplotlib inline


# == recnn ==
import sys
sys.path.append("../../")
import recnn

device = torch.device('cuda')
# ---
frame_size = 10
batch_size = 10
embed_dim  = 128
# --- 

tqdm.pandas()

Result:

ModuleNotFoundError Traceback (most recent call last)
in
1 import numpy as np
2 import pandas as pd
----> 3 from tqdm.auto import tqdm
4 import pickle
5 import gc

ModuleNotFoundError: No module named 'tqdm.auto'

@awarebayes
Copy link
Owner

awarebayes commented Sep 25, 2019

I think this problem has nothing to do with my repo. What is your version of tqdm?

Check this issue: nteract/papermill#287
And this issue: tqdm/tqdm#234

Thanks. I was having trouble with Import error: auto can not found in tqdm. But the command solves the issue.

pip install -U tqdm

Appendix:

This thing is needed for df.progress_apply in the data module

Are you using the latest version of Anaconda? I am working with conda because it just has all the packages pre-installed.

Also, google colab just works with tqdm auto

maxresdefault

@awarebayes
Copy link
Owner

Alternatively you can go to recnn.data.utils module and manually replace the progress_apply with apply.
In this case tqdm.auto will not be needed. Although there will be no log of data loading.

@miladfa7
Copy link
Author

Alternatively you can go to recnn.data.utils module and manually replace the progress_apply with apply.
In this case tqdm.auto will not be needed. Although there will be no log of data loading.

Thank you very much

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

No branches or pull requests

2 participants