sergei-mironov / nixtvm

11 stars 1 forks source link

Cannot import tvm #1

Open jinjinhong opened 5 years ago

jinjinhong commented 5 years ago

I have look your answer in github,I Meet the same problem as you, I have tried a lot of methods, but it not work ,I only try to seek advice from you , if you feel inconvenient in here,can you can email me? I really need help,thank you. File "", line 1, in File "/home/jinjinhong/deeplearning/tvminstall/nnvm/tvm/python/tvm/init.py", line 5, in from . import tensor File "/home/jinjinhong/deeplearning/tvminstall/nnvm/tvm/python/tvm/tensor.py", line 4, in from ._ffi.node import NodeBase, NodeGeneric, register_node, convert_to_node File "/home/jinjinhong/deeplearning/tvminstall/nnvm/tvm/python/tvm/_ffi/node.py", line 8, in from .node_generic import NodeGeneric, convert_to_node, const File "/home/jinjinhong/deeplearning/tvminstall/nnvm/tvm/python/tvm/_ffi/node_generic.py", line 7, in from .base import string_types File "/home/jinjinhong/deeplearning/tvminstall/nnvm/tvm/python/tvm/_ffi/base.py", line 43, in _LIB, _LIB_NAME = _load_lib() File "/home/jinjinhong/deeplearning/tvminstall/nnvm/tvm/python/tvm/_ffi/base.py", line 35, in _load_lib lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL) File "/usr/lib/python2.7/ctypes/init.py", line 362, in init self._handle = _dlopen(self._name, mode) OSError: /home/jinjinhong/deeplearning/tvminstall/nnvm/tvm/build/libtvm.so: undefined symbol: _ZTIN3tvm4NodeE

sergei-mironov commented 5 years ago

I'd suggest to open a topic on a http://discuss.tvm.ai instead. Regarding your problem, i'd suggest that tvm::Node symbol is defined by another *so lib and your system couldn't find it due to e.g. wrong LD_LIBRARY_PATH variable. Could you check your build dir is listed in this var?