Skip to content

ImportError after installing aidge_backend_opencv with PyPI

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_backend_opencv: 0.1.6

Problem description

When installing the aidge_backend_opencv package using pip install aidge-backend-opencv and attempting to import the package, I run into the following error:

Traceback (most recent call last):
  File "../aidge/examples/tutorials/Database_DataProvider_tutorial/import_backend_opencv.py", line 4, in <module>
    import aidge_backend_opencv
  File "/virtualenv/python3.10/site-packages/aidge_backend_opencv/__init__.py", line 3, in <module>
    from aidge_backend_opencv.aidge_backend_opencv import * # import so generated by PyBind
ImportError: generic_type: type "MNIST" referenced unknown base type "Aidge::Database"

Environment Details

Python Version: 3.10

Reproducible example code

import aidge_backend_opencv