tmdt-buw/schlably

ModuleNotFoundError: No module named 'src'

Closed this issue · 1 comments

Hi @TechManDigTrans and @cwaubert,

I get the following error when trying to generate the data.

path-to-config/config %  python3.10 -m src.data_generator.instance_factory -fp data_generation/fjssp/config_job3_task4_tools0.yaml
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10: Error while finding module specification for 'src.data_generator.instance_factory' (ModuleNotFoundError: No module named 'src')

The only module I changed from the requirements.txt is Pytorch, because there is no Cuda installed on my macOS. Now, I have torch==1.12.1.

Do you have any idea how to solve this?

Thanks,
Roxana

SOLVED: I had to run the command from the main folder, not config.