Skip to content
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

No module named 'gym_chess.envs' #24

Open
PhilippWillms opened this issue Dec 20, 2021 · 2 comments
Open

No module named 'gym_chess.envs' #24

PhilippWillms opened this issue Dec 20, 2021 · 2 comments

Comments

@PhilippWillms
Copy link

PhilippWillms commented Dec 20, 2021

Hi everyone,
after intallation in my anaconda environment, I want to import full library into Jupyter notebook. However, the submodule gym_chess.envs cannot be identified, see full trace below. I am using Python 3.8.8.

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_3868/639769641.py in <module>
      4 import Queens
      5 import gym
----> 6 import gym_chess

C:\ProgramData\Anaconda3\lib\site-packages\gym_chess\__init__.py in <module>
      1 from gym_chess.gym_chess import ChessEngine  # rust module
----> 2 from gym_chess.envs import ChessEnvV0, ChessEnvV1, ChessEnvV2  # envs
      3 from gym.envs.registration import register  # to register envs
      4 
      5 

ModuleNotFoundError: No module named 'gym_chess.envs'
@PhilippWillms
Copy link
Author

PhilippWillms commented Dec 20, 2021

It seems that the installer does not include sub-folders of gym_chess, therefore subpackages cannot be found. The workaround is to copy&paste missing package folders into the anaconda library folder.

@eli-indigo-trinity
Copy link

I've run into the same issue. Which folder specifically should I copy&paste the missing package folders into? The /anaconda3/Library one? Or is there a folder with the main gym_chess folder that I should keep the missing folders with? I was trying to find the latter option in the anaconda terminal, but I couldn't find any promising options. Thanks for any help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants