Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'dnnc' - vai_c_tensorflow #10

Closed
markokuzner opened this issue Dec 6, 2019 · 2 comments
Closed

No module named 'dnnc' - vai_c_tensorflow #10

markokuzner opened this issue Dec 6, 2019 · 2 comments

Comments

@markokuzner
Copy link

When I try to run script 6_tf_compile.sh from Vitis-AI/mpsoc/vitis-ai-tool-example/ (with conda environment vitis-ai-tensorflow) the following problem occurs:

**************************************************
* VITIS_AI Compilation - Xilinx Inc.
**************************************************
/opt/vitis_ai/compiler/arch/dpuv2/ZCU104/ZCU104.json
Traceback (most recent call last):
  File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/bin/vai_c_tensorflow", line 154, in <module>
    compiler = VAI_TensorFlow_Frontend(args)
  File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/bin/vai_c_tensorflow", line 101, in __init__
    from dnnc.dnnc_compiler_interface import DNNCFrontend
ModuleNotFoundError: No module named 'dnnc'

I am using docker image xilinx/vitis-ai:tools-1.0.0-cpu.

@markokuzner
Copy link
Author

Found the solution. Copy dnnc folder to bin folder of tensorflow environment.
cp -r /opt/vitis_ai/compiler/dnnc /opt/vitis_ai/conda/envs/vitis-ai-tensorflow/bin/

Then new error occurs that variable VAI_ROOT does not exists. You fix it with this:
export VAI_ROOT=/opt/vitis_ai/

@wilderfield
Copy link
Contributor

wilderfield commented Dec 6, 2019 via email

hanxue pushed a commit that referenced this issue Jul 8, 2020
added docker user setup and zynq setup
andyluo7 pushed a commit that referenced this issue Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants