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 'code_generator' #100

Open
tracyyy19 opened this issue Mar 26, 2024 · 1 comment
Open

No module named 'code_generator' #100

tracyyy19 opened this issue Mar 26, 2024 · 1 comment

Comments

@tracyyy19
Copy link

So, I tried following the instructions of this tutorial, https://github.com/mit-han-lab/tinyengine/tree/main/tutorial/inference but I still get the same error

(tinyengine) C:\Users\USER\Downloads\tinyengine-main\tinyengine-main\examples>python vww.py
Traceback (most recent call last):
File "vww.py", line 19, in
from code_generator.CodegenUtilTFlite import GenerateSourceFilesFromTFlite
ModuleNotFoundError: No module named 'code_generator'

@jin3qin
Copy link

jin3qin commented May 16, 2024

So, I tried following the instructions of this tutorial, https://github.com/mit-han-lab/tinyengine/tree/main/tutorial/inference but I still get the same error

(tinyengine) C:\Users\USER\Downloads\tinyengine-main\tinyengine-main\examples>python vww.py Traceback (most recent call last): File "vww.py", line 19, in from code_generator.CodegenUtilTFlite import GenerateSourceFilesFromTFlite ModuleNotFoundError: No module named 'code_generator'

Before running the Python script, you need to ensure that it runs in a conda environment with the configuration name tinyengine. If the "code_generator" module is missing, you need to run export PYTHONPATH=${PYTHONPATH}: $(tinyengine's path) first.

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