minerllabs / minerl

MineRL Competition for Sample Efficient Reinforcement Learning - Python Package
http://minerl.io/docs/
Other
711 stars 153 forks source link

env = gym.make('MineRLNavigateDense-v0') ERROR #555

Closed Sparks123 closed 3 years ago

Sparks123 commented 3 years ago

when I run this command. An error happened(TypeError: can't pickle _thread.RLock objects ) I don't know how to fix it. Please Help

Sparks123 commented 3 years ago

maybe it is due to my minerl version which is 0.4.0?

Miffyli commented 3 years ago

Hey! Can you provide full code you try to run? Meanwhile see if this helps you: https://minerl.readthedocs.io/en/latest/notes/windows.html

shwang commented 3 years ago

Hi @Sparks123 -- this is a known error with MineRL v0.4.0 and Python 3.6, fixed by https://github.com/minerllabs/minerl/pull/550.

shwang commented 3 years ago

This should be automatically fixed in our next (upcoming) release, MineRL v0.4.1, but in the meantime you can do oone of the following:

(1) Upgrade to Python 3.7 or higher (2) Manually apply the patch in #550 (3) Install MineRL from source by downloading the repo and running pip install -e .

shwang commented 3 years ago

I'm closing this issue for now because it will be resolved by the next release.

Sparks123 commented 3 years ago

This should be automatically fixed in our next (upcoming) release, MineRL v0.4.1, but in the meantime you can do oone of the following:

(1) Upgrade to Python 3.7 or higher (2) Manually apply the patch in #550 (3) Install MineRL from source by downloading the repo and running pip install -e .

It works. Thanks a lot.