Hi NXP,
I am using the i.MX 93 11x11 with kernel 6.1.36 and running eIQ Demos, but currently, it fails to execute.
Referencing (9.1 TensorFlow Lite Demos for i.MX 93),
the following error occurs.
root@imx93-11x11-lpddr4x-evk:/usr/bin/eiq-examples-git# python3 download_models.py
Download file from https://drive.google.com/uc?export=download&&id=1yjWyXsac5CbGWYuHWYhhnr_9cAwg3uNI
Traceback (most recent call last):
File "/usr/lib/python3.11/tarfile.py", line 1705, in gzopen
t = cls.taropen(name, mode, fileobj, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tarfile.py", line 1682, in taropen
return cls(name, mode, fileobj, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tarfile.py", line 1542, in __init__
self.firstmember = self.next()
^^^^^^^^^^^
File "/usr/lib/python3.11/tarfile.py", line 2379, in next
raise e
File "/usr/lib/python3.11/tarfile.py", line 2352, in next
tarinfo = self.tarinfo.fromtarfile(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tarfile.py", line 1122, in fromtarfile
buf = tarfile.fileobj.read(BLOCKSIZE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/gzip.py", line 301, in read
return self._buffer.read(size)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/_compression.py", line 68, in readinto
data = self.read(len(byte_view))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/gzip.py", line 499, in read
if not self._read_gzip_header():
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/gzip.py", line 468, in _read_gzip_header
last_mtime = _read_gzip_header(self._fp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/gzip.py", line 428, in _read_gzip_header
raise BadGzipFile('Not a gzipped file (%r)' % magic)
gzip.BadGzipFile: Not a gzipped file (b'<h')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/eiq-examples-git/download_models.py", line 98, in <module>
download_all_models(model_dir, vela_dir)
File "/usr/bin/eiq-examples-git/download_models.py", line 43, in download_all_models
decompress(path, model_dir)
File "/usr/bin/eiq-examples-git/download_models.py", line 28, in decompress
tar = tarfile.open(path, "r:gz")
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tarfile.py", line 1652, in open
return func(name, filemode, fileobj, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tarfile.py", line 1709, in gzopen
raise ReadError("not a gzip file") from e
tarfile.ReadError: not a gzip file