I trying to convert .h5 model to tflite on raspberry pi but get erro

Hello, can help me to solve this problem?
i trying convert the kersa .h5 model to tflite, i succes convert it on my laptop(windows)
but when i try convert using raspberry pi 5, it get some error .

WARNING:absl:Buffer deduplication procedure will be skipped when flatbuffer library is not properly loaded
Traceback (most recent call last):
File “/home/sam/Desktop/signlanguage/preprocess data.py”, line 81, in
tflite_model = converter.convert()
^^^^^^^^^^^^^^^^^^^
File “/home/sam/.local/lib/python3.11/site-packages/tensorflow/lite/python/lite.py”, line 962, in wrapper
return self._convert_and_export_metrics(convert_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/sam/.local/lib/python3.11/site-packages/tensorflow/lite/python/lite.py”, line 954, in _convert_and_export_metrics
return flatbuffer_utils.convert_object_to_bytearray(model_object)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/sam/.local/lib/python3.11/site-packages/tensorflow/lite/tools/flatbuffer_utils.py”, line 86, in convert_object_to_bytearray
model_offset = model_object.Pack(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/sam/.local/lib/python3.11/site-packages/tensorflow/lite/python/schema_py_generated.py”, line 12169, in Pack
operatorCodes = builder.EndVector()
^^^^^^^^^^^^^^^^^^^
TypeError: Builder.EndVector() missing 1 required positional argument: ‘vectorNumElems’

this is my code

Hi @Sam_Xian_Qi,

I am going through the backlog issues, hope you might have a solution for this issue. Trying to add more points if not solved. It seems the error, is specific to the environment on your raspberry pi setup. Now try to upgrade to TensorFlow version 2.16 and FlatBuffers.
pip install --upgrade tensorflow
pip install --upgrade flatbuffers.

If the problem is not yet resolved, please share the code and the environment setup OS, python and TF version used.
Thank You