Skip to content

Internal import error on Ubuntu when creating an Interpreter #4167

@laclouis5

Description

@laclouis5

LiteRT fails on Ubuntu while creating an Interpreter with the following error:

  File ".../inference.py", line 42, in _load_once
    self._interpreter = Interpreter(str(self._model_path))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../ai_edge_litert/interpreter.py", line 490, in __init__
    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
                        ^^^^^^^^^^^^^^^^^^^^
NameError: name '_interpreter_wrapper' is not defined

Environment:

  • OS: Ubuntu 24
  • Instruction set: x86_64
  • Python: 3.11
  • LiteRT version: v2.0.2

I installed LiteRT with uv: uv add ai-edge-litert.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions