Skip to content

'NamedDict' object has no attribute 'feature_units' #13

@ai2010

Description

@ai2010

I'm trying to run the final zerg bot (zerg_agent_step7.py) through the command:

python3 -m pysc2.bin.agent --map Simple64 --agent zergbot.ZergAgent

and I got the error:

zerglings = self.get_units_by_type(obs, units.Zerg.Zergling) File "/Users/xx/Desktop/xx/xx/pysc2-tutorial/zergbot.py", line 25, in get_units_by_type return [unit for unit in obs.observation.feature_units AttributeError: 'NamedDict' object has no attribute 'feature_units'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions