Traceback (most recent call last):
File "/tmp/codalab/tmpvsjuqF/run/ingestion_program/ingestion.py", line 277, in <module>
if not hasattr(M, attr):
NameError: name 'M' is not defined
Hi upwind_flys,
This error is raised if some mistakes happen in the import phase(from model import Model) or initialization phase(M = Model()). The following reasons may cause this situation.
1. Your code is failed during the import phase or initialization phase;
2. The execution time exceeds the 20min time budget for importing and initializing.
The above error may make your code fail to generate the variable M and cause the error you posted.
There should be errors in the log, telling you which reason caused this situation. Please check the full log of output error.
If you still have problems with this error, please attach your full ingestion output log and error log to this thread and we will help you to debug.
Best regards,
Wenhao Li
Thanks a lot,I found the problem.
Posted by: upwind_flys @ Aug. 13, 2019, 3:03 a.m.