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
Not able to install custom environments #1818
Comments
I've had a similar problem (also on third-party environment) and solved it by following instructions from Issue 626 - How to make environment. Basically, the solution is to import the package where the environment is located. Do not forget to read the note at the end about PYTHONPATH! |
You need to either |
Hello, I am getting the same error message and I don't understand what I am doing wrong as everything seems to be as described here, at #626 , and at creating-environments.md I have a private github repo called From the terminal I cloned the repo into a project folder on my laptop, From there (so still within gym-gridworld directory) I call python, I'm on Linux Ubuntu Any idea what is amiss? Thanks, |
Just to give more info, when I'm within the
However when I
and the
|
Doesn't matter my two init.py files had single underscores instead of double so they weren't even running. No words. |
Dear all,
I am having a problem when trying to use custom environments. I first tried to create mine and got the problem. Then I tried to use existing custom environments and got the same problem.
I am running python3 over a virtual environment.
I am using this as an example and as a reference for the error: https://github.com/nczempin/gym-tic-tac-toe
The custom environment installed without an error:
Installing collected packages: gym-tic-tac-toe
Running setup.py develop for gym-tic-tac-toe
Successfully installed gym-tic-tac-toe
but when I try to create it, I get the message it is not found:
gym.error.UnregisteredEnv: No registered env with id: tic_tac_toe-v1
Also running through the installed environments, I get nothing:
python3 -c "import gym; print(sorted([env.id for env in gym.envs.registry.all() if 'tictac' in env.id])); print(gym.file)"
[]
/home/pablo/Documents/VirtualEnv/EmotionRecognition/lib/python3.6/site-packages/gym/init.py
Would any of you have experienced this before? Does anyone have any idea of what the problem can be?
thanks in advance!
Pablo
The text was updated successfully, but these errors were encountered: