question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on first execution

See original GitHub issue

I just installed how it is described in the readme and tried to execute $ himawaripy. It downloaded the first 3 chunks and then stops with the following error:

Updating...
Latest version: 2016/07/28 14:20:00 GMT
Offset version: 2016/07/28 06:20:00 GMT

Downloading tiles: 3/16 completedmultiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/lib64/python3.5/urllib/request.py", line 1240, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/lib64/python3.5/http/client.py", line 1083, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python3.5/http/client.py", line 1128, in _send_request
    self.endheaders(body)
  File "/usr/lib64/python3.5/http/client.py", line 1079, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python3.5/http/client.py", line 911, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.5/http/client.py", line 854, in send
    self.connect()
  File "/usr/lib64/python3.5/http/client.py", line 826, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.5/socket.py", line 693, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.5/socket.py", line 732, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -5] No address associated with hostname

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.5/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib64/python3.5/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "/usr/lib/python3.5/site-packages/himawaripy-1.1-py3.5.egg/himawaripy/himawaripy.py", line 53, in download_chunk
    with urlopen(url_format.format(level, width, strftime("%Y/%m/%d/%H%M%S", latest), x, y)) as tile_w:
  File "/usr/lib64/python3.5/urllib/request.py", line 162, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.5/urllib/request.py", line 465, in open
    response = self._open(req, data)
  File "/usr/lib64/python3.5/urllib/request.py", line 483, in _open
    '_open', req)
  File "/usr/lib64/python3.5/urllib/request.py", line 443, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 1268, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib64/python3.5/urllib/request.py", line 1242, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/himawaripy", line 9, in <module>
    load_entry_point('himawaripy==1.1', 'console_scripts', 'himawaripy')()
  File "/usr/lib/python3.5/site-packages/himawaripy-1.1-py3.5.egg/himawaripy/himawaripy.py", line 88, in main
  File "/usr/lib64/python3.5/multiprocessing/pool.py", line 260, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/lib64/python3.5/multiprocessing/pool.py", line 608, in get
    raise self._value
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>

I am using the following setup: Fedora 24 Gnome 3.20.2 Python 3.5.1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
boramalpercommented, Oct 13, 2016

Hello,

in v2 of himawaripy, the script retries for up to 3 times before giving up. I think it will solve your problem since (according to your last message) it was able to download like 13 tiles before it was aborted so it’s likely to be a temporary error that ruined the whole process.

can you please make a clean installation of v2 (https://github.com/boramalper/himawaripy/tree/v2) and let me know if it fixes your problem?

Thanks!

0reactions
boramalpercommented, Oct 14, 2016

You’re welcome! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax errors on first execution? - Forums - IBM Support
I've noticed that the first time it executes it has hundreds of syntax errors (it appears to be each time the DB variable...
Read more >
First execution of powershell in a batch script does not set ...
Error as expected 2. In each case, the batch script below executes a small bit of embedded powershell code from within itself. exit...
Read more >
DataServer Cache error 3631 on the first execution of the ...
DataServer Cache error 3631 on the first execution of the code when running ABL through MS SQL Server DataServer. The error disappears on ......
Read more >
SQL Script: Stop Execution on First Error
When running a MySQL script within DG, it continues to execute after errors are reported. How can I get it to stop execution...
Read more >
Getting a Script to stop execution on first error. — oracle-tech
I built a script that had 5 inserts. The first 3 should fail, 4 succeed and 5 fail. I'd like to stop execution...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found