Hi NXP.
I'm trying to run a machine learning demo.(i.MX Machine Learning User's Guide 11.2 TensorFlow Lite Demos for i.MX 93)
When I run $ python3 download_models.py, an error occurs and I cannot run it.
I think the cause is that one of the URLs is 404 and cannot be connected.
(The python file says this: url = "https://drive.google.com/uc?export=download&confirm=yTib&id=1VHM41B8bSr07loNtHlTbXr89670w3H9W")
This phenomenon occurs in my Linux 6.1.22_2.0.0 environment.
And since the contents of download_models.py have not changed on Linux 6.1.36_2.1.0, the same problem should occur.
I would like the link to be restored or the python file to be modified.
Attached is the log when running the python file.
Download file from https://drive.google.com/uc?export=download&confirm=yTib&id=1VHM41B8bSr07loNtHlTbXr89670w3H9W
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 86, 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
Hi @Ryo_Aoki,