Start a new topic

Loading module from subdirectory not working on SH

 Hi everyone,

I have the following code, importing a Loader from `project_name/loaders/` into a spider:


from project_name.loaders.my_loader import MyLoader

# Spider code invoking the loader

It works perfectly locally however I get a deployment error on SH `ModuleNotFoundError: No module named 'project_name.loaders'`

What am I doing wrong ?

Thanks for your help

1 person has this question
Login to post a comment