gbartyzel / gym-vrep

Open-AI Gym extension for robotics based on V-REP
Apache License 2.0
36 stars 13 forks source link

No module named gym.envs.registration #1

Closed mayuce closed 4 years ago

mayuce commented 5 years ago

Hello, first thanks for this repo. I'm trying to install gym-vrep everything is OK untill I try run ipython init.py on terminal it show me an error about Importing gym error. How does this library works ? When I try it on pycharm it shows no error but nothing happens. Help me please.

Here is the error:


ImportError Traceback (most recent call last) /home/supreme/gym-vrep/gym_vrep/init.py in () 1 import logging ----> 2 from gym.envs.registration import register 3 4 logger = logging.getLogger(name) 5 register(

ImportError: No module named gym.envs.registration

gbartyzel commented 5 years ago

Hello! I have never encountered with such error. But it seems that your python env cannot find gym library. Try this:

  1. open ipython
  2. import gym
  3. import gym_vrep

If this didn't work, you should check if gym is installed in pip.

gbartyzel commented 5 years ago

Also, you could check this repo https://github.com/Souphis/mobile_robot_rl. In this project I used gym-vrep.

mayuce commented 5 years ago

Okay, I'll try it as soon as possible, thanks.

YuanBoXie commented 2 years ago

Hello, I have the same problem, but I don't use gym_ vrep library, so this problem may not be related to the library, but to the gym version or something others. The gym version on my computer is 0.10.5, but the project I use is multi-agent particle environment which has dependency on the gym version is also 0.10.5.

gbartyzel commented 2 years ago

@hexbo Ok, thanks for pointing this, I will update the requirements and maybe this will solve this