Hi all,
Now we used the environment of Ubuntu20.04+Vitis2020.2+Petalinux2020.2 to make the PYNQ2.7 version.
We successfully installed and ran Ubuntu20.04+Vitis2020.2+Petalinux2020.2. And download PYNQ-image_v2.7.zip from your system.
According to your mentioned of https://pynq.readthedocs.io/en/latest/pynq_sd_card.html procedure try to Install dependencies using the following script.
<PYNQ repository>/sdbuild/scripts/setup_host.sh
But it failed.
Details as below:
make[1]: 离开目录“/home/tds/PYNQ/tools/qemu-5.2.0/build”
+ cd /opt/qemu/bin
+ sudo rm -rf qemu-arm-static qemu-aarch64-static
+ sudo ln -s qemu-arm qemu-arm-static
+ sudo ln -s qemu-aarch64 qemu-aarch64-static
+ cd /home/tds
+ cd /usr/bin
+ which gmake
/usr/bin/gmake
+ '[' '!' -f /run/systemd/resolve/stub-resolv.conf ']'
+ sudo -H python3 -m pip install --upgrade 'setuptools>=24.2.0'
Collecting setuptools>=24.2.0
Downloading setuptools-68.2.2-py3-none-any.whl (807 kB)
>█▋ | 40 kB 41 kB/s eta 0:00:19ERROR: Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 425, in _error_catcher
yield
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 507, in read
data = self._fp.read(amt) if not fp_closed else b""
File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "/usr/lib/python3.8/http/client.py", line 459, in read
n = self.readinto(b)
File "/usr/lib/python3.8/http/client.py", line 503, in readinto
n = self.fp.readinto(b)
File "/usr/lib/python3.8/socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.8/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 357, in run
resolver.resolve(requirement_set)
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
local_path = unpack_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 282, in unpack_url
return unpack_http_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 158, in unpack_http_url
from_path, content_type = _download_http_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 303, in _download_http_url
for chunk in download.chunks:
File "/usr/lib/python3/dist-packages/pip/_internal/utils/ui.py", line 160, in iter
for x in it:
File "/usr/lib/python3/dist-packages/pip/_internal/network/utils.py", line 15, in response_chunks
for chunk in response.raw.stream(
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 564, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 529, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 430, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='[files.pythonhosted.org](http://files.pythonhosted.org)', port=443): Read timed out.
We try to desiable related line of setup_host.sh and one step to install related item, But for make section still error occur.
So would you please help to settle this case in order to pull up our project.
Best Regards,
Leon
Briansune via PYNQ <notifications@pynq1.discoursemail.com> 於 2023年11月1日 週三 上午10:51寫道: