HobbitLong / PyContrast

PyTorch implementation of Contrastive Learning methods
1.94k stars 186 forks source link

module '__main__' has no attribute '__spec__' #19

Closed ciaobladoo closed 4 years ago

ciaobladoo commented 4 years ago

When trying to run main_contrast.py, I got the following error: File "/home/someguy/anaconda2/envs/contrast/lib/python3.8/multiprocessing/spawn.py", line 183, in get_preparation_data main_mod_name = getattr(main_module.spec, "name", None) AttributeError: module 'main' has no attribute 'spec'

ciaobladoo commented 4 years ago

I think it's because I am using pdb.