Skip to main content

Hi,

My goal is to try out a few tutorials with the latest SDK release. Looks like a python package is not found, any clues what I could try?

System: Axelere M.2 Card with Aetina Eval System

Voyager SDK v1.3.1 - a fresh install of the SDK this time

First installed the latest driver https://software.axelera.ai/artifactory/axelera-apt-source/metis-dkms/metis-dkms_1.0.2_all.deb

then I ran the installer with

./install.sh --all --media --user <email addr> --token <token>

I got a few suspicious warnings and hit ‘y’ a number of times. Then install of 186 packages completed.

p185/186] Install gstreamer1.0-rtsp
building operators
refreshing pcie and firmware
0000:01:00.0 : Device
Device 0: metis-0:1:0 1GiB m2 flver=1.2.0-rc2 bcver=1.0 clock=800MHz(0-3:800MHz) mvm=0-3:100%
Installation complete, but with unresolved issues (see above)

 

firefly@aetina:~/Documents/g2-testing/voyager-sdk$ source venv/bin/activate
 

I proceeded to try inference.py with one of the included videos as input

(venv) firefly@aetina:~/Documents/g2-testing/voyager-sdk$ ./inference.py yolov5s-v7-coco media/traffic1_1080p.mp4
Traceback (most recent call last):
  File "/home/firefly/Documents/g2-testing/voyager-sdk/./inference.py", line 13, in <module>
    from axelera.app import config, display, inf_tracers, logging_utils, pipe, statistics, yaml_parser
  File "/home/firefly/Documents/g2-testing/voyager-sdk/axelera/app/inf_tracers.py", line 25, in <module>
    from . import config, device_manager, logging_utils, torch_utils, utils
  File "/home/firefly/Documents/g2-testing/voyager-sdk/axelera/app/device_manager.py", line 13, in <module>
    from . import config, logging_utils, network, utils
  File "/home/firefly/Documents/g2-testing/voyager-sdk/axelera/app/network.py", line 19, in <module>
    from . import (
  File "/home/firefly/Documents/g2-testing/voyager-sdk/axelera/app/operators/__init__.py", line 4, in <module>
    from . import classical_cv, custom_preprocessing, inference, mega, postprocessing, preprocessing
  File "/home/firefly/Documents/g2-testing/voyager-sdk/axelera/app/operators/postprocessing.py", line 13, in <module>
    from .. import gst_builder, logging_utils, meta
  File "/home/firefly/Documents/g2-testing/voyager-sdk/axelera/app/meta/__init__.py", line 19, in <module>
    from .gst import GstDecoder, GstMetaInfo
  File "/home/firefly/Documents/g2-testing/voyager-sdk/axelera/app/meta/gst.py", line 11, in <module>
    from gi.repository import Gst
ModuleNotFoundError: No module named 'gi'
 


 

One of the warnings I got:
 

100/186]       Compiler for C supports arguments -Wswitch-default: YES

>100/186]       Compiler for C supports arguments -Wno-missing-field-initializers: YES

<100/186]       Compiler for C supports arguments -Wno-unused-parameter: YES

Y100/186]       Compiler for C supports arguments -fno-strict-aliasing: YES

g100/186]       Compiler for C supports arguments -fvisibility=hidden: YES

d100/186]       Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2

n100/186]       WARNING: Found CMake '/home/firefly/.cache/axelera/venvs/ac95b872/bin/cmake' but couldn't run it

c100/186]       Found CMake: NO

100/186]       Run-time dependency cairo found: NO (tried pkgconfig)

100/186]       ../cairo/meson.build:31:12: ERROR: Dependency "cairo" not found, tried pkgconfig

t100/186]       A full log can be found at /tmp/pip-install-gzwj6yu6/pycairo_a330082593284a8bba54f445951244fd/.mesonpy-58uhjhlw/meson-logs/meson-log.txt

l100/186]       send of output]

/100/186]   note: This error originates from a subprocess, and is likely not a problem with pip.

100/186] error: metadata-generation-failed

r100/186] × Encountered error while generating package metadata.

i100/186] ╰─> See above for output.

8100/186] note: This is an issue with the package mentioned above, not pip.

h100/186] hint: See above for details.

 

WARNING: Failed to install pycairo==1.28.0

 

e101/186] Preinstall pycocotools==2.0.10

0102/186] Preinstall pydantic==2.8.2

p103/186] Preinstall pydantic_core==2.20.1

/104/186] Preinstall pyglet==2.1.3

>105/186] Preinstall Pygments==2.19.1

>106/186] Preinstall PyGObject==3.50.0

[106/186] python3 -m pip --disable-pip-version-check install --no-deps "PyGObject==3.50.0"

106/186] Collecting PyGObject==3.50.0

[106/186]   Using cached pygobject-3.50.0.tar.gz (1.1 MB)

c106/186]   Installing build dependencies: started

 


Also, I am trying a. native install

 


SOLVED.

Hi! I didn’t have a “clean” system to start with so I tried this and install was successful without any warnings along the way.

rm -rf ~/.pyenv venv/* venv

install again.

Again for reference: native install on Aetina Eval System with Metis M.2 on Ubuntu 22.04 with SDK v1.3.1.

Leaving this here for anyone who runs into broken packages warnings.


Reply