Skip to content

[export_arm_cortexm] Error while importing aidge_export_arm_cortexm in python

Required prerequisites

  • Make sure you've read the documentation. Your issue may be addressed there.
  • Search the issue tracker and discussions to verify that this hasn't already been reported. +1 or comment there if it has.

What commit version of aidge do you use

  • aidge_core: 0.5.1
  • aidge_export_arm_cortexm: 0.1.1

Problem description

When creating a new python virtual environment and installing aidge_core and aidge_export_arm_cortexm, the command import aidge_export_arm_cortexm results in the following error :

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "</path/to/venv>/lib/python3.12/site-packages/aidge_export_arm_cortexm/__init__.py", line 11, in <module>
    from .export import *
  File "</path/to/venv>/lib/python3.12/site-packages/aidge_export_arm_cortexm/export.py", line 5, in <module>
    from aidge_export_arm_cortexm.export_registry import ExportLibAidgeARM
  File "</path/to/venv>/lib/python3.12/site-packages/aidge_export_arm_cortexm/export_registry.py", line 2, in <module>
    from aidge_export_arm_cortexm.utils import ROOT
ImportError: cannot import name 'ROOT' from 'aidge_export_arm_cortexm.utils' (</path/to/venv>/lib/python3.12/site-packages/aidge_export_arm_cortexm/utils.py)
Edited by Jerome Hue