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

Need update #75

Open
Charele opened this issue May 22, 2019 · 1 comment
Open

Need update #75

Charele opened this issue May 22, 2019 · 1 comment

Comments

@Charele
Copy link

Charele commented May 22, 2019

Can someone update this project for non-Python coder?
For example, support Python3.x, support newer gym version?

python gym_http_client.py

Traceback (most recent call last):
File "gym_http_client.py", line 22, in parse_server_error_or_raise_for_status
j = resp.json()
File "C:\Miniconda3\lib\site-packages\requests\models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Miniconda3\lib\json_init
.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Miniconda3\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Miniconda3\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "gym_http_client.py", line 154, in
obs_info = client.env_observation_space_info(instance_id)
File "gym_http_client.py", line 95, in env_observation_space_info
resp = self._get_request(route)
File "gym_http_client.py", line 44, in _get_request
return self._parse_server_error_or_raise_for_status(resp)
File "gym_http_client.py", line 27, in _parse_server_error_or_raise_for_status
resp.raise_for_status()
File "C:\Miniconda3\lib\site-packages\requests\models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://127.0.0.1:5000/v1/envs/da42e4bc/observation_space/

@cagneymoreau
Copy link

Here is an update I made for myself for dl4j and python 3
https://github.com/cagneymoreau/gym-http-api

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

No branches or pull requests

2 participants