Skip to content

AttributeError: 'dict' object has no attribute 'iteritems' #6

@WhyNotHugo

Description

@WhyNotHugo

After running

git clone git@github.com:tancredi/python-console-snake.git
cd python-console-snake
python snake

I got:

Traceback (most recent call last):
                                    File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
                                                                                                            "__main__", mod_spec)
                                                                                                                                   File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
                   exec(code, run_globals)
                                            File "snake/__main__.py", line 26, in <module>
                                                                                              run()
                                                                                                     File "snake/__main__.py", line 19, in run
                                                                                                                                                  theme.init()
                                                                                                                                                                File "snake/theme.py", line 14, in init
                              colors_map = get_colors_map()
                                                             File "snake/theme.py", line 30, in get_colors_map
                                                                                                                  for col in theme['colors'].iteritems():
                                                                                                                                                         AttributeError: 'dict' object has no attribute 'iteritems'
                                      %                                                                                                                                      

Yes, with all that whitespace in between.

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