awarebayes/RecNN

ModuleNotFoundError: No module named 'tqdm.auto'

Closed this issue · 3 comments

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'

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

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.

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