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.

Fail to run 'HandManipulateBlock-v0'

See original GitHub issue

Thanks for the nice api. I managed to run CartPole-v0 using python example_agent.py command. Now I need to run HandManipulateBlock-v0. But this environment is not available in gym 0.7.4 (specified in requirements.txt). So I changed the versions of numpy, gym and requests in requirements.txt to the following: numpy==1.15.0, gym==0.10.5, requests==2.19.1 Now gym-http-api recognizes HandManipulateBlock-v0 environment. But when I try to run the environment using python example_agent.py, the execution halts with the followint exception:

Traceback (most recent call last): File “/home/navid/gym-http-api/gym_http_client.py”, line 22, in _parse_server_error_or_raise_for_status j = resp.json() File “/home/navid/my-gym-http-api/lib/python3.5/site-packages/requests/models.py”, line 896, in json return complexjson.loads(self.text, **kwargs) File “/usr/lib/python3.5/json/init.py”, line 319, in loads return _default_decoder.decode(s) File “/usr/lib/python3.5/json/decoder.py”, line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File “/usr/lib/python3.5/json/decoder.py”, line 357, in raw_decode raise JSONDecodeError(“Expecting value”, s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Could anyone give me some hint about how to fix this? Thanks. Best regards, Navid

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
machinautcommented, Oct 18, 2018

It would be useful to have, but maybe not in the primary gym repo. External bindings could be a separate package instead.

0reactions
BoltzmannBraincommented, Oct 4, 2018

Okay, not a problem, but I would suggest adding a note to the README:

This repo is not actively supported beyond commit ___. Proceed at your own risk if using package version greater than those defined in requirements.txt, as some gym/mujoco functions and environments may not be useable.

And yes I’m familiar with the C extension API, having used it with Boost.Python and pybind. If I end up implementing the bindings, would this be desired functionality for the gym repo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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