Closed juancarlospaco closed 3 years ago
I found the problem in the end, it is the .cfg
that makes that line fail randomly, sometimes it works, sometimes it fails,
if I comment the line of --gc:
it always work, but the error messages are not very helpful,
for some reason using --gc:
with the .nim
makes it flaky on import.
This is good information! The badly-worded index error you're getting was also fixed here very recently :) https://github.com/Pebaz/nimporter/blob/6fc127b86055bc93f3b52d79da78c2994e765359/nimporter.py#L47
This line explodes very frequently, without useful debug information:
Full traceback
It is possible to add some defensive programing just on that line ?, something like a
try except
andprint
a useful message, manually checking likeif not len(nim_module) > 0: print("ERROR: File not found, Nimporter can not find the nim files")
or something.