minerl icon indicating copy to clipboard operation
minerl copied to clipboard

Error when running minerl test

Open turtlemaster890 opened this issue 2 years ago • 1 comments

PS C:\Users###\github\minerl> python minerl.py C:\Users###\github\minerl\minerl\herobraine\hero\handlers\agent\observations\lifestats.py:62: FutureWarning: In the future np.bool will be defined as the corresponding NumPy scalar. (This may have returned Python scalars in past versions. space=spaces.Box(low=False, high=True, shape=(), dtype=np.bool), Traceback (most recent call last): File "C:\Users###\github\minerl\minerl.py", line 2, in import minerl File "C:\Users###\github\minerl\minerl_init_.py", line 6, in import minerl.herobraine.envs File "C:\Users###\github\minerl\minerl\herobraine\envs.py", line 30, in MINERL_HUMAN_SURVIVAL_V0 = HumanSurvival() File "C:\Users###\github\minerl\minerl\herobraine\env_specs\human_survival_specs.py", line 17, in init super().init( File "C:\Users###\github\minerl\minerl\herobraine\env_specs\human_controls.py", line 54, in init super().init(name, *args, **kwargs) File "C:\Users###\github\minerl\minerl\herobraine\env_spec.py", line 38, in init self.reset() File "C:\Users###\github\minerl\minerl\herobraine\env_spec.py", line 43, in reset self.observables = self.create_observables() File "C:\Users###\github\minerl\minerl\herobraine\env_specs\human_survival_specs.py", line 31, in create_observables handlers.ObservationFromLifeStats(), File "C:\Users###\github\minerl\minerl\herobraine\hero\handlers\agent\observations\lifestats.py", line 22, in init IsAliveObservation(), File "C:\Users###\github\minerl\minerl\herobraine\hero\handlers\agent\observations\lifestats.py", line 62, in init space=spaces.Box(low=False, high=True, shape=(), dtype=np.bool), File "C:\Users###\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy_init.py", line 284, in getattr raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'bool'. Did you mean: 'bool_'?

That's the error, I get it when I try running the program.

turtlemaster890 avatar Jan 19 '23 17:01 turtlemaster890

Try pip install numpy<1.24 . Newest numpy is broken in MineRL (should fix that one day...)

Miffyli avatar Jan 21 '23 12:01 Miffyli