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 “”, line 28, in import tvm File “D:\tvm_dec\python\”, line 27, in from . import tensor File “D:\tvm_dec\python\tvm\”, line 23, in from . import expr as expr File “D:\tvm_dec\python\tvm\”, line 265, in class Var(Expr): File “D:\tvm_dec\python\tvm_ffi\”, line 79, in register check_call(LIB.TVMObjectTypeKey2Index( File "C:\Users\yl2304\AppData\Local\Programs\Python\Python36\lib\", line 361, in getattr func = self.getitem(name) File "C:\Users\yl2304\AppData\Local\Programs\Python\Python36\lib\", 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!