I'm trying to use thanos, which creates an extension module at runtime. Thanos is constantly failing as it cannot import that said extension it created at runtime.
I am baffled as to why this is the case.
At runtime (after compilation) the "cutils_ext" dir contains cutils_ext.so
import cutils_ext
works, but import cutils_ext.cutils_ext
fails with
ImportError: No module named cutils_ext
I've tested with with imp directly. Say that cutils is the imported cutils_ext package. When I do:
imp.find_module('cutils_ext', cutils.__path__)
I again get the :
ImportError: No module named cutils_ext
I am completely baffled. Is there any way to debug this? I cannot run python in verbose mode due to my inability to start the python interpreter (using picloud), but if I could enable verbose at runtime, that would help (haven't figured out how to do that).