I import tqdm as this:
Traceback (most recent call last):
File "process.py", line 15, in <module>
for dir in tqdm(os.listdir(path), desc = 'dirs'):
TypeError: 'module' object is not callable
path = '../dialogs'
dirs = os.listdir(path)
for dir in tqdm(dirs, desc = 'dirs'):
The error is telling you are trying to call the module. You can't do this.
To call you just have to do
tqdm.tqdm(dirs, desc = 'dirs')
to solve your problem. Or simply change your import to
from tqdm import tqdm
But, the important thing here is to review the documentation for what you are using and ensure you are using it properly.