Skip to main content

When trying to run the application.py example, I get this error. The vent is activated. 

Per this thread I thought I could solve with a removal of the venv and reinstall but it’s being persistent now. 

Has anybody else found and overcome this?

I’m using the Aetina Eval Board that came with the Project challenge kit.

@llrds can you report the full error message you are seeing? 
Also, did the venv install without any warnings or errors?


how are you running the application file ?
I had some issues that when doing something like `sudo python application.py` the system python was shadowed over the venv python. You can try using the venv python like `venv/bin/python application.py` and see if that solves the issue.


@Jonas Here is the full error message, yes the install worked fine - the last message from the installer was to activate the venv and try the examples. HOWEVER, I ran the installer once more today just to be certain, and now I can run examples. It had a fresh restart before I started today, however it was not working because I collected the logs in this post. Was only after deleting venv running the installer again that it worked, the same process that did not work last night.

For completeness and maybe to learn more about preventing it from happening I'll still post the things you requested.

 

@skroedel you can see here how I run the file, I also tried your method with the same result.

aetina@aetina:~$ source voyager-sdk/venv/bin/activate

(venv) aetina@aetina:~$ ll-tests/basic-pose.py

Traceback (most recent call last):

File "/home/aetina/ll-tests/basic-pose.py", line 2, in <module>

from axelera.app import config, display

ModuleNotFoundError: No module named 'axelera.app'

(venv) aetina@aetina:~$ voyager-sdk/examples/application.py

Traceback (most recent call last):

File "/home/aetina/voyager-sdk/examples/application.py", line 2, in <module>

from axelera.app import config, display

 

The first few lines of the file for reference, it’s unchanged from the 

(venv) aetina@aetina:~/voyager-sdk$ cat examples/application.py

#!/usr/bin/env python

from axelera.app import config, display

from axelera.app.stream import create_inference_stream

 

stream = create_inference_stream(

network="yolov5m-v7-coco-tracker",

sources=/

str(config.env.framework / "media/traffic1_1080p.mp4"),

 

 

Some further context, I think I originally started to see these errors when running the examples from ssh vs native, I'm just running everything native for now.

for reinstall I’m using

./install.sh --all --YES --media --user email --token token


I suddenly started getting this error today while trying out some examples. I had to reboot the board to get it resolved.


@llrds , axelera.app is not a wheel, so you must either run under the voyager-sdk root or add the voyager-sdk path to your PYTHONPATH. We suggest you always:

 

```

aetina@aetina:~$ cd voyager-sdk && source venv/bin/activate

```

 

instead of source it from anywhere else like `aetina@aetina:~$ source voyager-sdk/venv/bin/activate`

 

In this case, you can check 

```

(venv) ubuntu@atang-axelera:~/voyager-sdk$ printenv | grep AX
AXELERA_RUNTIME_DIR=/opt/axelera/runtime-1.4.0-rc3-1
AXELERA_RISCV_TOOLCHAIN_DIR=/opt/axelera/riscv-gnu-newlib-toolchain-409b951ba662-7
AXELERA_FRAMEWORK=/home/ubuntu/voyager-sdk
AXELERA_DEVICE_DIR=/opt/axelera/device-1.4.0-rc3-1/omega

```

This AXELERA_FRAMEWORK will point to the voyager-sdk correctly, as libraries and tools in the SDK mostly rely on this path.  I hope you enjoy the Metis 😀 We will continue improving our SDK and making the error messages clearer and easier for your usage.

 

 

 


Reply