MrRobb / gym-rs

OpenAI Gym bindings for Rust
MIT License
61 stars 4 forks source link

Unable to call 'render' #14

Closed benmyles closed 4 years ago

benmyles commented 4 years ago

Getting the following error:

$ cargo run --example basic
thread 'main' panicked at 'Unable to call 'render': PyErr { ptype: <class 'TypeError'>, pvalue: Some(TypeError('item 1 in _argtypes_ passes a union by value, which is unsupported.')), ptraceback: Some(<traceback object at 0x7f9d9ff248c0>) }', src/libcore/result.rs:1165:5

This only happens when render is true: with rendering disabled everything works correctly.

My python gym version is 0.12.5 and python itself is Python 3.7.6. Is there a known combination of gym/python versions that work?

benmyles commented 4 years ago

Turns out ~this is an issue with python 3.8 -- cpython was not picking up my pyenv version and instead using my system python install.

Update: I got cypthon to use python 3.7.6 but same error.

MrRobb commented 4 years ago

The issue might be with the version of the gym module. I have version 0.15.4 and it renders correctly.

benmyles commented 4 years ago

Looks like it's working fine on my Ubuntu box with gym 0.15.4 and Python 3.7.5. Can probably close this. Thanks!