Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: HTTP Error 403: Forbidden when attempting to load yamnet/1 model #922

Open
Dizzzmas opened this issue Sep 29, 2024 · 0 comments
Open
Labels

Comments

@Dizzzmas
Copy link

Dizzzmas commented Sep 29, 2024

What happened?

Basic attempt at loading yamnet model results in 403 error

Relevant code

import tensorflow_hub as hub

yamnet_model = hub.load("https://tfhub.dev/google/yamnet/1")

Relevant log output

File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/site-packages/tensorflow_hub/module_v2.py", line 100, in load
    module_path = resolve(handle)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/site-packages/tensorflow_hub/module_v2.py", line 55, in resolve
    return registry.resolver(handle)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/site-packages/tensorflow_hub/registry.py", line 49, in __call__
    return impl(*args, **kwargs)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/site-packages/tensorflow_hub/compressed_module_resolver.py", line 81, in __call__
    return resolver.atomic_download(handle, download, module_dir,
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/site-packages/tensorflow_hub/resolver.py", line 421, in atomic_download
    download_fn(handle, tmp_dir)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/site-packages/tensorflow_hub/compressed_module_resolver.py", line 77, in download
    response = self._call_urlopen(request)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/site-packages/tensorflow_hub/resolver.py", line 528, in _call_urlopen
    return urllib.request.urlopen(request, context=self._context)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 749, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/home/ubuntu/.pyenv/versions/3.10.15/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

tensorflow_hub Version

other (please specify)

TensorFlow Version

other (please specify)

Other libraries

tensorflow-hub==0.16.1
tensorflow==2.10.0
tensorflow-estimator==2.10.0
tensorflow-io-gcs-filesystem==0.37.1
tf_keras==2.17.0

Python Version

3.x

OS

Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant