I am trying to run this Semantic Similarity with TF-Hub Universal Encoder
But in the module initialization, downloading is failed with
URLError: <urlopen error [Errno -5] No address associated with hostname>
Also tried in my local machine and a remote machine that is in another network, both hits the same error.
Seems the downloading server is down?
Full log is attached in here:
INFO:tensorflow:Using /tmp/tfhub_modules to cache modules.
INFO:tensorflow:Downloading TF-Hub Module 'https://tfhub.dev/google/universal-sentence-encoder-large/3'.
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/usr/lib/python3.6/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
1317 h.request(req.get_method(), req.selector, req.data, headers,
-> 1318 encode_chunked=req.has_header('Transfer-encoding'))
1319 except OSError as err: # timeout error
/usr/lib/python3.6/http/client.py in request(self, method, url, body, headers, encode_chunked)
1238 """Send a complete request to the server."""
-> 1239 self._send_request(method, url, body, headers, encode_chunked)
1240
/usr/lib/python3.6/http/client.py in _send_request(self, method, url, body, headers, encode_chunked)
1284 body = _encode(body, 'body')
-> 1285 self.endheaders(body, encode_chunked=encode_chunked)
1286
/usr/lib/python3.6/http/client.py in endheaders(self, message_body, encode_chunked)
1233 raise CannotSendHeader()
-> 1234 self._send_output(message_body, encode_chunked=encode_chunked)
1235
/usr/lib/python3.6/http/client.py in _send_output(self, message_body, encode_chunked)
1025 del self._buffer[:]
-> 1026 self.send(msg)
1027
/usr/lib/python3.6/http/client.py in send(self, data)
963 if self.auto_open:
--> 964 self.connect()
965 else:
/usr/lib/python3.6/http/client.py in connect(self)
1391
-> 1392 super().connect()
1393
/usr/lib/python3.6/http/client.py in connect(self)
935 self.sock = self._create_connection(
--> 936 (self.host,self.port), self.timeout, self.source_address)
937 self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
/usr/lib/python3.6/socket.py in create_connection(address, timeout, source_address)
703 err = None
--> 704 for res in getaddrinfo(host, port, 0, SOCK_STREAM):
705 af, socktype, proto, canonname, sa = res
/usr/lib/python3.6/socket.py in getaddrinfo(host, port, family, type, proto, flags)
744 addrlist = []
--> 745 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
746 af, socktype, proto, canonname, sa = res
gaierror: [Errno -5] No address associated with hostname
During handling of the above exception, another exception occurred:
URLError Traceback (most recent call last)
<ipython-input-4-b76b84710602> in <module>()
----> 1 embed = hub.Module(module_url)
2
3 # Compute a representation for each message, showing various lengths supported.
4 word = "Elephant"
5 sentence = "I am a sentence for which I would like to get its embedding."
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/module.py in __init__(self, spec, trainable, name, tags)
103 """
104 self._graph = tf.get_default_graph()
--> 105 self._spec = as_module_spec(spec)
106 self._trainable = trainable
107
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/module.py in as_module_spec(spec)
29 return spec
30 elif isinstance(spec, str):
---> 31 return native_module.load_module_spec(spec)
32 else:
33 raise ValueError("Unknown module spec type: %r" % type(spec))
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/native_module.py in load_module_spec(path)
97 tf.OpError: on file handling exceptions.
98 """
---> 99 path = compressed_module_resolver.get_default().get_module_path(path)
100 module_def_path = _get_module_proto_path(path)
101 module_def_proto = module_def_pb2.ModuleDef()
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/resolver.py in get_module_path(self, handle)
383 """
384 if self.is_supported(handle):
--> 385 return self._get_module_path(handle)
386 else:
387 raise UnsupportedHandleError(
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/resolver.py in _get_module_path(self, handle)
465 raise UnsupportedHandleError(
466 self._create_unsupported_handle_error_msg(handle))
--> 467 return resolver.get_module_path(handle)
468
469 def _create_unsupported_handle_error_msg(self, handle):
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/resolver.py in get_module_path(self, handle)
383 """
384 if self.is_supported(handle):
--> 385 return self._get_module_path(handle)
386 else:
387 raise UnsupportedHandleError(
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/compressed_module_resolver.py in _get_module_path(self, handle)
103
104 return resolver.atomic_download(handle, download, module_dir,
--> 105 self._lock_file_timeout_sec())
106
107 def _lock_file_timeout_sec(self):
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/resolver.py in atomic_download(handle, download_fn, module_dir, lock_file_timeout_sec)
311 tf.logging.info("Downloading TF-Hub Module '%s'.", handle)
312 tf.gfile.MakeDirs(tmp_dir)
--> 313 download_fn(handle, tmp_dir)
314 # Write module descriptor to capture information about which module was
315 # downloaded by whom and when. The file stored at the same level as a
/usr/local/lib/python3.6/dist-packages/tensorflow_hub/compressed_module_resolver.py in download(handle, tmp_dir)
99
100 url_opener = url.build_opener(LoggingHTTPRedirectHandler)
--> 101 response = url_opener.open(request)
102 return resolver.download_and_uncompress(cur_url, response, tmp_dir)
103
/usr/lib/python3.6/urllib/request.py in open(self, fullurl, data, timeout)
524 req = meth(req)
525
--> 526 response = self._open(req, data)
527
528 # post-process response
/usr/lib/python3.6/urllib/request.py in _open(self, req, data)
542 protocol = req.type
543 result = self._call_chain(self.handle_open, protocol, protocol +
--> 544 '_open', req)
545 if result:
546 return result
/usr/lib/python3.6/urllib/request.py in _call_chain(self, chain, kind, meth_name, *args)
502 for handler in handlers:
503 func = getattr(handler, meth_name)
--> 504 result = func(*args)
505 if result is not None:
506 return result
/usr/lib/python3.6/urllib/request.py in https_open(self, req)
1359 def https_open(self, req):
1360 return self.do_open(http.client.HTTPSConnection, req,
-> 1361 context=self._context, check_hostname=self._check_hostname)
1362
1363 https_request = AbstractHTTPHandler.do_request_
/usr/lib/python3.6/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
1318 encode_chunked=req.has_header('Transfer-encoding'))
1319 except OSError as err: # timeout error
-> 1320 raise URLError(err)
1321 r = h.getresponse()
1322 except:
URLError: <urlopen error [Errno -5] No address associated with hostname>
UPDATE
Also tried
wget 'https://tfhub.dev/google/universal-sentence-encoder-large/3?tf-hub-format=compressed' -O /tmp/module.tar.gz
in my local and it is not working either.
resec@mpc:~$ wget 'https://tfhub.dev/google/universal-sentence-encoder-large/3?tf-hub-format=compressed' -O /tmp/module.tar.gz
--2018-08-15 01:57:33-- https://tfhub.dev/google/universal-sentence-encoder-large/3?tf-hub-format=compressed
Resolving tfhub.dev (tfhub.dev)... failed: No address associated with hostname.
wget: unable to resolve host address ‘tfhub.dev’
Same here.
Same here
TF Hub team is aware of tfhub.dev name resolution issue and is working on
addressing it. We will update this thread once the issue is fully
resolved. Apologies
for any inconvenience.
On Wed, Aug 15, 2018 at 7:47 AM bombdiggity notifications@github.com
wrote:
Same here
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/hub/issues/136#issuecomment-413100218, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AbunTAWN91qXYpk5irlK7uaab6UM1vDMks5uQ7XlgaJpZM4V9bar
.
tfhub.dev name resolution is back up. If you see any issues, please let us
know.
Apologies for any inconvenience.
On Wed, Aug 15, 2018 at 8:15 AM Andrey Khorlin akhorlin@google.com wrote:
TF Hub team is aware of tfhub.dev name resolution issue and is working on
addressing it. We will update this thread once the issue is fully resolved. Apologies
for any inconvenience.On Wed, Aug 15, 2018 at 7:47 AM bombdiggity notifications@github.com
wrote:Same here
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/hub/issues/136#issuecomment-413100218,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AbunTAWN91qXYpk5irlK7uaab6UM1vDMks5uQ7XlgaJpZM4V9bar
.
Thank you. This issue seems to be resolved.
Thank you. Confirmed!
thanks!
hmmm, sorry, I just checked on colab, my local, and remote machine on aws, seems the tfhub.dev name resolution is still down, the errors are the same as above, did I missed something?
oh , it is still down . @akhorlin
Yeah. Just checked. It's down again.
it's not working, today i tried using but get same error
Yes, worked once and then down again.
We are investing again. We will update the thread once we know more.
On Wed, Aug 15, 2018 at 9:51 AM Hao Xi notifications@github.com wrote:
Yes, worked once and then down again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/hub/issues/136#issuecomment-413121718, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AbunTBLBpxNo2mGxcbvVFYX5gEPVWRUlks5uQ9MXgaJpZM4V9bar
.
tfhub.dev should be back up and functioning as of 10:30 GMT+2. Please
report any further issues.
On Wed, Aug 15, 2018 at 10:49 AM Andrey Khorlin akhorlin@google.com wrote:
We are investing again. We will update the thread once we know more.
On Wed, Aug 15, 2018 at 9:51 AM Hao Xi notifications@github.com wrote:
Yes, worked once and then down again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/hub/issues/136#issuecomment-413121718,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AbunTBLBpxNo2mGxcbvVFYX5gEPVWRUlks5uQ9MXgaJpZM4V9bar
.
thanks! seems it is working stably again, closing this.
One reason could also be that Pow is installed. Uninstalling helps in this case.
I have this problem right now. I'm trying to download it from China via VPN (tfhub.dev is blocked in China). Is it down at this moment? Or am I having trouble because of VPN?
@ThiagoSousa No, it is accessible.
$ curl -L "https://tfhub.dev/google/imagenet/inception_v3/feature_vector/1?tf-hub-format=compressed" | tar -zxvC /tmp/model
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (6) Could not resolve host: tfhub.dev
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
$ ping www.google.com
PING www.google.com (172.217.194.147) 56(84) bytes of data.
64 bytes from 172.217.194.147: icmp_seq=1 ttl=44 time=59.2 ms
64 bytes from 172.217.194.147: icmp_seq=2 ttl=44 time=58.8 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 58.841/59.061/59.282/0.328 ms
$ ping https://tfhub.dev
ping: unknown host https://tfhub.dev
hi,@akhorlin can not download any model again,I have same problem like @santle
You might having some local (or ISP) mis-configuration issues. The download
seems to work as expected (at least from the EU):
curl -L "
https://tfhub.dev/google/imagenet/inception_v3/feature_vector/1?tf-hub-format=compressed"
| tar -zxvC /tmp/model123
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
./
./saved_model.pb
0 77.3M 0 89972 0 0 178k 0 0:07:23 --:--:-- 0:07:23
178k./variables/
./variables/variables.index
./variables/variables.data-00000-of-00001
100 77.3M 100 77.3M 0 0 60.1M 0 0:00:01 0:00:01 --:--:--
97.5M
./assets/
./tfhub_module.pb
On Mon, Nov 19, 2018 at 10:29 AM fengzhi09 notifications@github.com wrote:
hi,@akhorlin https://github.com/akhorlin can not download any model
again,I have same problem like @santle https://github.com/santle—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/hub/issues/136#issuecomment-439826996, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AbunTNUSPr73IL-jWGDuEuNEgrt5_53zks5uwnoTgaJpZM4V9bar
.
I have same installation fail to connect and to tensorflow wheel file , I'm using Ubuntu on Oracle VM box. Python 3.5, any help?
the file I'm trying to access is (tensorflow/linux/tensorflow-1.12.0-py3-none-any.whl) , I tried, /mac/tensorflow-1.12.0-py3-none-any.whl , /Linux/tensorflow-1.8.0-py3-none-any.whl as well
Most helpful comment
TF Hub team is aware of tfhub.dev name resolution issue and is working on
addressing it. We will update this thread once the issue is fully
resolved. Apologies
for any inconvenience.
On Wed, Aug 15, 2018 at 7:47 AM bombdiggity notifications@github.com
wrote: