Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
16.98k stars 4.14k forks source link

Registry URL Permission Denied #6105

Closed rahulaggarwal965 closed 5 months ago

rahulaggarwal965 commented 5 months ago

Describe the bug I am seeing both an HTTP error corresponding to the registry which also leads to an attribute error down the line. Not sure if they are related. Just wanted to make this post to ask about the status of the registry and when we can expect it to be up again.

Console logs / stack traces

Traceback (most recent call last):
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/site-packages/mlagents_envs/registry/binary_utils.py", line 218, in load_remote_manifest
    request = urllib.request.urlopen(url, timeout=30)
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Code/eval_model.py", line 6, in <module>
    from common import make_unity_env
  File "/home/infinity/repos/deepdriftingicra22/Code/common.py", line 5, in <module>
    from mlagents_envs.envs.unity_gym_env import UnityToGymWrapper
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/site-packages/mlagents_envs/envs/__init__.py", line 5, in <module>
    for key in default_registry:
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/site-packages/mlagents_envs/registry/unity_env_registry.py", line 118, in __iter__
    self._load_all_manifests()
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/site-packages/mlagents_envs/registry/unity_env_registry.py", line 83, in _load_all_manifests
    manifest = load_remote_manifest(path_to_yaml)
  File "/home/infinity/mambaforge/envs/deepdrifting/lib/python3.8/site-packages/mlagents_envs/registry/binary_utils.py", line 220, in load_remote_manifest
    e.reason = f"{e.reason} {url}"
AttributeError: can't set attribute

Environment (please complete the following information):

alhasacademy96 commented 5 months ago

I'm as well as my team are also getting this from today.

Unity Version: [e.g. Unity 2021.3.18f1] OS + version: Windows 11 ML-Agents version: v0.30.0 Torch version: 1.11.0 Environment: Custom

miguelalonsojr commented 5 months ago

https://github.com/Unity-Technologies/ml-agents/issues/6104#issuecomment-2091174608

alhasacademy96 commented 5 months ago

Why is this being closed?

miguelalonsojr commented 5 months ago

It's fixed on develop. https://github.com/Unity-Technologies/ml-agents/issues/6104#issuecomment-2091174608