AttributeError: function 'TVMObjectTypeKey2Index' not found on Windows

when I tried to generate the .dll on windows using the log file from autotvm on Ubuntu, the following error happened

File “retrain_so_224_384_intel.py”, line 28, in import tvm File “D:\tvm_dec\python\tvm_init_.py”, line 27, in from . import tensor File “D:\tvm_dec\python\tvm\tensor.py”, line 23, in from . import expr as expr File “D:\tvm_dec\python\tvm\expr.py”, line 265, in class Var(Expr): File “D:\tvm_dec\python\tvm_ffi\object.py”, line 79, in register check_call(LIB.TVMObjectTypeKey2Index( File "C:\Users\yl2304\AppData\Local\Programs\Python\Python36\lib\ctypes_init.py", line 361, in getattr func = self.getitem(name) File "C:\Users\yl2304\AppData\Local\Programs\Python\Python36\lib\ctypes_init.py", line 366, in getitem func = self._FuncPtr((name_or_ordinal, self)) AttributeError: function ‘TVMObjectTypeKey2Index’ not found

Thanks a lot!

Maybe @jmorrill @jonso could have experience.

it is related to the python version which I used python3.6 not the python3.5 on windows?

@tqchen I met this error too when trying using TVM on Windows. It happened when Import tvm. Could you help take a look at it? Thanks a lot!