ImportError: No module named tvm [Xilinx PYNQ-Z1]

I’m very new to tvm and as the first steps I followed the vta installatio guide specifed below to setup my Xilinx PYNQ-Z1 board with tvm to run an example first.
VTA Installation Guide

As per this guide I cloned tvm to the SD card of my Xilinx PYNQ board and followed each and every step precisely. Finally I started the RPC server with the line :sudo ./apps/vta_rpc/ and left that terminal where the RPC server is running aside and opened another terminal. In that terminal with “ssh xilinx@” I logged in to the board and followed the section in the guide named “Testing your PYNQ based hardware setup”.
There at the end when I ran the line : python vta/tests/python/pynq/
I end up with the ImportError: No module named tvm. Can anyone please help me with this problem?

This happens usually because you are missing an update to your PYTHONPATH

Set PYTHONPATH to $SRCDIR/tvm/vta/python or some such.

1 Like