-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description
OS:
Windows 10/64-bit
mbed-os:
41ecde9 Merge pull request #9371 from 0xc0170/test_travis_master
python
3.7.2
mbed-cli
1.8.3
Following the doc, I run the below command under mbed-os directory to update cmsis pack index.json
:
mbed export -i uvision --update-packs
It fails with:
Exception in thread Thread-4:
Traceback (most recent call last):
File "c:\program files\python37\lib\urllib\request.py", line 1317, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "c:\program files\python37\lib\http\client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "c:\program files\python37\lib\http\client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "c:\program files\python37\lib\http\client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "c:\program files\python37\lib\http\client.py", line 1016, in _send_output
self.send(msg)
File "c:\program files\python37\lib\http\client.py", line 956, in send
self.connect()
File "c:\program files\python37\lib\http\client.py", line 928, in connect
(self.host,self.port), self.timeout, self.source_address)
File "c:\program files\python37\lib\socket.py", line 707, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "c:\program files\python37\lib\socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\CCLi8\IoT\mbed\mbed-examples\nu-psa\mbed-os\tools\arm_pack_manager\__init__.py", line 108, in cache_file
fd.write(urlopen(url).read())
File "c:\program files\python37\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "c:\program files\python37\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "c:\program files\python37\lib\urllib\request.py", line 543, in _open
'_open', req)
File "c:\program files\python37\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "c:\program files\python37\lib\urllib\request.py", line 1345, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "c:\program files\python37\lib\urllib\request.py", line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\program files\python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\CCLi8\IoT\mbed\mbed-examples\nu-psa\mbed-os\tools\arm_pack_manager\__init__.py", line 63, in run
self.func(url)
File "C:\CCLi8\IoT\mbed\mbed-examples\nu-psa\mbed-os\tools\arm_pack_manager\__init__.py", line 133, in cache_pdsc_and_pack
self.cache_file(url)
File "C:\CCLi8\IoT\mbed\mbed-examples\nu-psa\mbed-os\tools\arm_pack_manager\__init__.py", line 110, in cache_file
stderr.write(e.reason)
TypeError: write() argument must be str, not gaierror
Issue request type
[ ] Question
[ ] Enhancement
[x] Bug