Categories
Misc

Python issues with not finding a package

def find_class(self, mod_name, name): 

if type(name) is str and ‘Storage’ in name: try: return StorageType(name) except KeyError: pass mod_name = load_module_mapping.get(mod_name, mod_name) print(mod_name) return super().find_class(mod_name, name)

when trying to find the class ldm.models.autoencoder is throwing an error in my code:

`ModuleNotFoundError: No module named 'ldm.models'; 'ldm' is not a package` I have tried the ldm (0.1.1 and 0.1.3) package installed but I have no idea where .models is from. Ideas? 

submitted by /u/AwardPsychological38
[visit reddit] [comments]

Leave a Reply

Your email address will not be published.