Build TVM Runtime on Device Error

Hi,

Iam new to TVM and try to cross compile the darkness model to arm64 device as tutorial here : https://docs.tvm.ai/tutorials/cross_compilation_and_rpc.html , but i got this issue when setting up RPC server on device:

$ python3 -m tvm.exec.rpc_server --host 0.0.0.0 --port=9090
Traceback (most recent call last):

  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)

  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)

  File "/home/ubuntu/tvm/python/tvm/exec/rpc_server.py", line 27, in <module>
    from tvm import micro

  File "/home/ubuntu/tvm/python/tvm/micro/__init__.py", line 19, in <module>
    from ..contrib import binutil

  File "/home/ubuntu/tvm/python/tvm/contrib/binutil.py", line 93

    msg = f"error while running command \"{cmd_str}\":\n{output}"

                                                                ^

SyntaxError: invalid syntax

Is there anything that i forgot setting up to run this?

Thanks

Please use python3.6

1 Like

Thank tqchen very much … it works now