Loading module from subdirectory not working on SH

Posted over 4 years ago by Vincent Rolea

Post a topic
Un Answered
V
Vincent Rolea

 Hi everyone,


I have the following code, importing a Loader from `project_name/loaders/my_loader.py` 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 Votes


0 Comments

Login to post a comment