I keep getting:
TAPPAS_POST_PROC_DIR environment variable is not set. Please set it to by sourcing setup_env.sh
when I try to debug in vscode. I have launch.json and tasks.json sett up as follows:
“version”: “0.2.0”,
“configurations”: [
{
“preLaunchTask”: “tappas”,
“args”: [
“–input”,
“${workspaceFolder}/resources/detection0.mp4”,
“–network”,
“yolov8s”
],
“name”: “Python Debugger: Current File”,
“type”: “debugpy”,
“request”: “launch”,
“program”: “${file}”,
“console”: “integratedTerminal”
}
]
}
{
“version”: “2.0.0”,
“tasks”: [
{
“label”: “tappas”,
“command”: “source”, // Could be any other shell command
“args”: [“${workspaceFolder}/setup_env.sh”],
“type”: “shell”
}
]
}
Hi @andy.froncioni,
Is this after running the command below?
source ./setup_env.sh
Please ensure you follow all the installation steps. Let us know if you still face issues.
I can run it in a seperate shell. But I was hoping to use the python debugger for the python code segments. Setting the environment within vscode is the issue.
@andy.froncioni Now I understand the issue, thanks for clarifying.
Have you tried selecting the venv interpreter with Cntrl+Shift+P → Python: Select Interpreter? The venv name should be either venv_hailo_rpi5_examples or hailo_tappas_venv.
Thank you.
Although I was not able to get it working this way, your answer made me try to run the setup_env.sh and look at the value of TAPPAS_POST_PROC_DIR. I then added an env entry in launch.json configurations:
“env”:{
“TAPPAS_POST_PROC_DIR”:“/usr/lib/aarch64-linux-gnu/hailo/tappas//post-process/”
}
And then it worked.
Great! Thanks for sharing the solution
1 Like