Package Details: python-minerl 0.4.2-1

Git Clone URL: https://aur.archlinux.org/python-minerl.git (read-only, click to copy)
Package Base: python-minerl
Description: Environment for RL from human demonstration in Minecraft
Upstream URL: https://github.com/minerllabs/minerl
Licenses: custom:cc-by-nc-sa-4.0
Submitter: elanglois
Maintainer: elanglois
Last Packager: elanglois
Votes: 0
Popularity: 0.000000
First Submitted: 2021-08-16 21:10
Last Updated: 2021-09-09 20:00

Dependencies (24)

Required by (0)

Sources (2)

Latest Comments

elanglois commented on 2021-09-22 15:57

Thanks for the error report fl0r1an. I can confirm this package is currently broken.

I think the problem is the python-gym update to version 20 (https://github.com/minerllabs/minerl/commit/5045ec3f38a03972c9d350f0c4b21b651817c1c4). Ideally this needs to be fixed in the minerl upstream. I guess another option could be to make a python-gym-19 package and I'll depend on that. I'll look into this more when I have time but it might be broken for awhile.

fl0r1an commented on 2021-09-22 11:58

I was trying to build it in a chroot (other packages works fine) and I got a few errors from the test.

==> Starting check()...
============================= test session starts ==============================
platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
rootdir: /build/python-minerl/src/minerl-0.4.2
collected 13 items / 6 errors / 7 selected

==================================== ERRORS ====================================
_________ ERROR collecting minerl/data/pipeline/tests/test_pipeline.py _________
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:850: in exec_module
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
minerl/__init__.py:6: in <module>
    import minerl.data
minerl/data/__init__.py:1: in <module>
    from minerl.data.data_pipeline import DataPipeline
minerl/data/data_pipeline.py:16: in <module>
    from minerl.herobraine import envs
minerl/herobraine/envs.py:13: in <module>
    from minerl.herobraine.env_specs import basalt_specs
minerl/herobraine/env_specs/basalt_specs.py:68: in <module>
    obs_handler_equip = handlers.EquippedItemObservation(list(DEFAULT_EQUIP_ITEMS))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:56: in __init__
    _EquippedItemObservation(['mainhand'], self._items, _default=_default, _other=_other))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:101: in __init__
    _ItemIDObservation(self.keys, items, _default=_default, _other=_other),
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:129: in __init__
    spaces.Enum(*self._items, default=self._default)
minerl/herobraine/hero/spaces.py:250: in __init__
    super().__init__(len(values))
minerl/herobraine/hero/spaces.py:206: in __init__
    self.shape = ()
E   AttributeError: can't set attribute
___ ERROR collecting minerl/data/pipeline/tests/test_publish_vec_handler.py ____
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:972: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:850: in exec_module
    ???
<frozen importlib._bootstrap>:228: in _call_with_frames_removed
    ???
minerl/__init__.py:6: in <module>
    import minerl.data
minerl/data/__init__.py:1: in <module>
    from minerl.data.data_pipeline import DataPipeline
minerl/data/data_pipeline.py:16: in <module>
    from minerl.herobraine import envs
minerl/herobraine/envs.py:13: in <module>
    from minerl.herobraine.env_specs import basalt_specs
minerl/herobraine/env_specs/basalt_specs.py:68: in <module>
    obs_handler_equip = handlers.EquippedItemObservation(list(DEFAULT_EQUIP_ITEMS))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:56: in __init__
    _EquippedItemObservation(['mainhand'], self._items, _default=_default, _other=_other))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:101: in __init__
    _ItemIDObservation(self.keys, items, _default=_default, _other=_other),
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:129: in __init__
    spaces.Enum(*self._items, default=self._default)
minerl/herobraine/hero/spaces.py:250: in __init__
    super().__init__(len(values))
minerl/herobraine/hero/spaces.py:206: in __init__
    self.shape = ()
E   AttributeError: can't set attribute
_____________ ERROR collecting minerl/herobraine/test_env_spec.py ______________
minerl/herobraine/test_env_spec.py:5: in <module>
    import minerl.herobraine.hero.handlers as handlers
minerl/__init__.py:6: in <module>
    import minerl.data
minerl/data/__init__.py:1: in <module>
    from minerl.data.data_pipeline import DataPipeline
minerl/data/data_pipeline.py:16: in <module>
    from minerl.herobraine import envs
minerl/herobraine/envs.py:13: in <module>
    from minerl.herobraine.env_specs import basalt_specs
minerl/herobraine/env_specs/basalt_specs.py:68: in <module>
    obs_handler_equip = handlers.EquippedItemObservation(list(DEFAULT_EQUIP_ITEMS))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:56: in __init__
    _EquippedItemObservation(['mainhand'], self._items, _default=_default, _other=_other))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:101: in __init__
    _ItemIDObservation(self.keys, items, _default=_default, _other=_other),
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:129: in __init__
    spaces.Enum(*self._items, default=self._default)
minerl/herobraine/hero/spaces.py:250: in __init__
    super().__init__(len(values))
minerl/herobraine/hero/spaces.py:206: in __init__
    self.shape = ()
E   AttributeError: can't set attribute
_____ ERROR collecting minerl/herobraine/env_specs/test_env_regressions.py _____
minerl/herobraine/env_specs/test_env_regressions.py:24: in <module>
    "forward": spaces.Discrete(2),
minerl/herobraine/hero/spaces.py:206: in __init__
    self.shape = ()
E   AttributeError: can't set attribute
___________ ERROR collecting minerl/herobraine/wrappers/test_util.py ___________
minerl/herobraine/wrappers/test_util.py:4: in <module>
    import minerl.herobraine.envs as envs
minerl/herobraine/envs.py:13: in <module>
    from minerl.herobraine.env_specs import basalt_specs
minerl/herobraine/env_specs/basalt_specs.py:68: in <module>
    obs_handler_equip = handlers.EquippedItemObservation(list(DEFAULT_EQUIP_ITEMS))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:56: in __init__
    _EquippedItemObservation(['mainhand'], self._items, _default=_default, _other=_other))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:101: in __init__
    _ItemIDObservation(self.keys, items, _default=_default, _other=_other),
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:129: in __init__
    spaces.Enum(*self._items, default=self._default)
minerl/herobraine/hero/spaces.py:250: in __init__
    super().__init__(len(values))
minerl/herobraine/hero/spaces.py:206: in __init__
    self.shape = ()
E   AttributeError: can't set attribute
_________ ERROR collecting minerl/herobraine/wrappers/test_wrappers.py _________
minerl/herobraine/wrappers/test_wrappers.py:14: in <module>
    import minerl.herobraine.wrappers as wrappers
minerl/__init__.py:6: in <module>
    import minerl.data
minerl/data/__init__.py:1: in <module>
    from minerl.data.data_pipeline import DataPipeline
minerl/data/data_pipeline.py:16: in <module>
    from minerl.herobraine import envs
minerl/herobraine/envs.py:13: in <module>
    from minerl.herobraine.env_specs import basalt_specs
minerl/herobraine/env_specs/basalt_specs.py:68: in <module>
    obs_handler_equip = handlers.EquippedItemObservation(list(DEFAULT_EQUIP_ITEMS))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:56: in __init__
    _EquippedItemObservation(['mainhand'], self._items, _default=_default, _other=_other))
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:101: in __init__
    _ItemIDObservation(self.keys, items, _default=_default, _other=_other),
minerl/herobraine/hero/handlers/agent/observations/equipped_item.py:129: in __init__
    spaces.Enum(*self._items, default=self._default)
minerl/herobraine/hero/spaces.py:250: in __init__
    super().__init__(len(values))
minerl/herobraine/hero/spaces.py:206: in __init__
    self.shape = ()
E   AttributeError: can't set attribute
=============================== warnings summary ===============================
minerl/herobraine/env_specs/test_env_regressions.py:80
  /build/python-minerl/src/minerl-0.4.2/minerl/herobraine/env_specs/test_env_regressions.py:80: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if top is "normal":

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
ERROR minerl/data/pipeline/tests/test_pipeline.py - AttributeError: can't set...
ERROR minerl/data/pipeline/tests/test_publish_vec_handler.py - AttributeError...
ERROR minerl/herobraine/test_env_spec.py - AttributeError: can't set attribute
ERROR minerl/herobraine/env_specs/test_env_regressions.py - AttributeError: c...
ERROR minerl/herobraine/wrappers/test_util.py - AttributeError: can't set att...
ERROR minerl/herobraine/wrappers/test_wrappers.py - AttributeError: can't set...
!!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 6 errors in 2.80s =========================

Does anybody see, whats the problem? Thanks :)