ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I solve this. If I install gym by " pip install gym " . the gym code is for python3 .

First Solution is to install gym by code level .
git clone https://github.com/openai/gym.git cd gym pip install -e .

Sencond Solution is the change code like below.
~/.local/lib/python2.7/site-packages/gym/spaces/discrete.py

super().__init__((), np.int64)

-> super(Discrete,self).__init__((), np.int64)