Open usccolumbia opened 1 year ago
I haven't had any issues with the latest version on conda for python 3.9. I recognise the error from when "import tqdm" is used instead of "from tqdm import tqdm".
What version are you using that gets this error? I can try to reproduce it. I'll post the details of my environment when I am able later today.
On my environment where things are working its python 3.8.12 and it is tqdm 4.62.3
tqdm was being overwritten by one of the other imports which had started importing tqdm as a module in its own preamble, it should work now if you pull the latest commit. Please don't hesitage to ask if there are further issues.
python create_mp_gap_hdf5.py --cubic_supercell -s 100 2022-11-08 22:15:37 INFO Initialized benchmark 'matbench_v0.1' with 13 tasks: ['matbench_dielectric', 'matbench_expt_gap', 'matbench_expt_is_metal', 'matbench_glass', 'matbench_jdft2d', 'matbench_log_gvrh', 'matbench_log_kvrh', 'matbench_mp_e_form', 'matbench_mp_gap', 'matbench_mp_is_metal', 'matbench_perovskites', 'matbench_phonons', 'matbench_steels'] 2022-11-08 22:15:37 INFO Loading dataset 'matbench_mp_gap'... 2022-11-08 22:17:10 INFO Dataset 'matbench_mp_gap loaded. Traceback (most recent call last): File "/home/xx/Site-Net-/create_mp_gap_hdf5.py", line 201, in
dataset_to_hdf5(train_inputs,train_outputs,h5_file_name + "_train",pool,fold_n,supercell,supercell_size)
File "/home/xx/Site-Net-/create_mp_gap_hdf5.py", line 160, in dataset_to_hdf5
i for i in tqdm(pool.imap(processor.process_structure, [i[1] for i in structure_list]))
TypeError: 'module' object is not callable