Closed
Description
System information
- Have I written custom code (as opposed to using a stock example script
provided in TensorFlow): No - OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
python:3.10-slim-bullseye
container image on ARM64 - Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue
happens on a mobile device: N/A - TensorFlow installed from (source or binary): Binary
- TensorFlow version (use command below):
tflite-runtime-nightly
2.13.0.dev20230207
- Python version: 3.10.10
- Bazel version (if compiling from source): N/A
- GCC/Compiler version (if compiling from source): N/A
- CUDA/cuDNN version: N/A
- GPU model and memory: N/A
- Exact command to reproduce:
Describe the problem
- Create a new
python:3.10-slim-bullseye
container - Install
tflite-runtime-nightly
2.13.0.dev20230207
- Build and run the container on ARM64 (such as from an ARM Macbook using Docker Desktop)
- Run
>>> import tflite_runtime.interpreter as tflite
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/venv/lib/python3.10/site-packages/tflite_runtime/interpreter.py", line 33, in <module>
from tflite_runtime import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper
ImportError: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /opt/venv/lib/python3.10/site-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.so)
There are not yet any Debian bookworm-based python
official images yet, so it's not possible to bump up to a newer Debian version with a newer GLIBC.
Other background
This worked fine in a python:3.10-slim-bullseye
x86 container, so perhaps the GLIBC version requirements are different due to how the ARM64 wheels were built?
Here are the GLIBC versions of various Linux platforms:
Debian Buster: 2.28
Bullseye: 2.31
Bookworm: 2.36
Ubuntu 20.04: 2.31
22.04: 2.35
RHEL 8: 2.28
9: 2.34
Related to: