openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.81k stars 8.61k forks source link

AttributeError: partially initialized module 'gym' has no attribute 'Wrapper' (most likely due to a circular import) #3300

Open Lzfsir opened 4 hours ago

Lzfsir commented 4 hours ago

Hello, please allow me to ask where is my problem here? D:\Anaconda\envs\rlgym\python.exe E:\gym-master\test.py Traceback (most recent call last): File "E:\gym-master\test.py", line 1, in import gym File "E:\gym-master\gym__init__.py", line 3, in from gym.wrappers.atari_preprocessing import AtariPreprocessing File "E:\gym-master\gym\wrappers__init__.py", line 3, in from gym.wrappers.atari_preprocessing import AtariPreprocessing File "E:\gym-master\gym\wrappers\atari_preprocessing.py", line 13, in class AtariPreprocessing(gym.Wrapper): AttributeError: partially initialized module 'gym' has no attribute 'Wrapper' (most likely due to a circular import)

Process finished with exit code 1

pseudo-rnd-thoughts commented 2 hours ago

What version of gym are you using? Could you provide an example script?