-
-
Save encukou/08eff341fc8b26100c4db435ae80a7a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "main.py", line 1751, in <module> | |
game.run() | |
File "/home/pviktori/dev/pyweek-entry/024-others/the-rule/__venv__/lib64/python3.6/site-packages/kivy/app.py", line 828, in run | |
runTouchApp() | |
File "/home/pviktori/dev/pyweek-entry/024-others/the-rule/__venv__/lib64/python3.6/site-packages/kivy/base.py", line 504, in runTouchApp | |
EventLoop.window.mainloop() | |
File "/home/pviktori/dev/pyweek-entry/024-others/the-rule/__venv__/lib64/python3.6/site-packages/kivy/core/window/window_sdl2.py", line 663, in mainloop | |
self._mainloop() | |
File "/home/pviktori/dev/pyweek-entry/024-others/the-rule/__venv__/lib64/python3.6/site-packages/kivy/core/window/window_sdl2.py", line 405, in _mainloop | |
EventLoop.idle() | |
File "/home/pviktori/dev/pyweek-entry/024-others/the-rule/__venv__/lib64/python3.6/site-packages/kivy/base.py", line 339, in idle | |
Clock.tick() | |
File "/home/pviktori/dev/pyweek-entry/024-others/the-rule/__venv__/lib64/python3.6/site-packages/kivy/clock.py", line 581, in tick | |
self._process_events() | |
File "kivy/_clock.pyx", line 367, in kivy._clock.CyClockBase._process_events (/tmp/pip-build-_mdcnh_v/kivy/kivy/_clock.c:7700) | |
File "kivy/_clock.pyx", line 397, in kivy._clock.CyClockBase._process_events (/tmp/pip-build-_mdcnh_v/kivy/kivy/_clock.c:7577) | |
File "kivy/_clock.pyx", line 395, in kivy._clock.CyClockBase._process_events (/tmp/pip-build-_mdcnh_v/kivy/kivy/_clock.c:7498) | |
File "kivy/_clock.pyx", line 167, in kivy._clock.ClockEvent.tick (/tmp/pip-build-_mdcnh_v/kivy/kivy/_clock.c:3483) | |
File "main.py", line 1539, in <lambda> | |
append(Clock.schedule_once(lambda *a: self.add_enemy(CarRed(self, 0, 10)), i * 4 + 1)) | |
File "main.py", line 1607, in add_enemy | |
self.tile_map.add_widget(enemy) | |
File "/home/pviktori/dev/pyweek-entry/024-others/the-rule/__venv__/lib64/python3.6/site-packages/kivy/uix/widget.py", line 533, in add_widget | |
widget.parent = parent = self | |
File "kivy/properties.pyx", line 478, in kivy.properties.Property.__set__ (/tmp/pip-build-_mdcnh_v/kivy/kivy/properties.c:5572) | |
File "kivy/properties.pyx", line 516, in kivy.properties.Property.set (/tmp/pip-build-_mdcnh_v/kivy/kivy/properties.c:6405) | |
File "kivy/properties.pyx", line 571, in kivy.properties.Property.dispatch (/tmp/pip-build-_mdcnh_v/kivy/kivy/properties.c:7105) | |
File "kivy/_event.pyx", line 1225, in kivy._event.EventObservers.dispatch (/tmp/pip-build-_mdcnh_v/kivy/kivy/_event.c:14035) | |
File "kivy/_event.pyx", line 1131, in kivy._event.EventObservers._dispatch (/tmp/pip-build-_mdcnh_v/kivy/kivy/_event.c:13193) | |
File "main.py", line 1273, in on_parent | |
p = self.game.tile_map.get_path((self.co_x, self.co_y), (16, self.co_y - 1)) | |
File "main.py", line 934, in get_path | |
distances.sort(lambda x, y: cmp(x.h_distance(self.tiles[target]), y.h_distance(self.tiles[target]))) | |
TypeError: must use keyword argument for key function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment