You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Если запукать на винде локалраннер не из папки с локал ранером (например из таски в вижуал студио коде) ранер постоянно падает в ошибку. FileNotFoundError: [Errno 2] No such file or directory: 'sprites/flash.png'. видимо там нужно где-то указать пути не относительно рабочей директории , а относительно исполняемого питон файла
c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups>python c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\localrunner.py Traceback (most recent call last): File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\localrunner.py", line 76, in <module> pyglet.app.run() File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\__init__.py", line 138, in run event_loop.run() File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 142, in run self._run() File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 154, in _run timeout = self.idle() File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 275, in idle redraw_all = self.clock.call_scheduled_functions(dt) File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\clock.py", line 346, in call_scheduled_functions item.func(now - item.last_ts, *item.args, **item.kwargs) File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\localrunner.py", line 49, in game_loop_wrapper is_game_over = loop.run_until_complete(Runner.game.game_loop()) File "C:\Program Files (x86)\Python37-32\lib\asyncio\base_events.py", line 579, in run_until_complete return future.result() File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\game_objects\game.py", line 355, in game_loop self.draw() File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\game_objects\game.py", line 345, in draw self.draw_bonuses() File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\game_objects\game.py", line 325, in draw_bonuses bonus.draw() File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\game_objects\bonuses.py", line 39, in draw draw_square_with_image((self.x, self.y), self.color, self.image_path, self.active_ticks) File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\helpers.py", line 182, in draw_square_with_image img = load_image(image_path) File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\helpers.py", line 169, in load_image img = pyglet.image.load(path) File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\image\__init__.py", line 180, in load file = open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'sprites/flash.png'
The text was updated successfully, but these errors were encountered:
Если запукать на винде локалраннер не из папки с локал ранером (например из таски в вижуал студио коде) ранер постоянно падает в ошибку. FileNotFoundError: [Errno 2] No such file or directory: 'sprites/flash.png'. видимо там нужно где-то указать пути не относительно рабочей директории , а относительно исполняемого питон файла
c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups>python c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\localrunner.py Traceback (most recent call last): File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\localrunner.py", line 76, in <module> pyglet.app.run() File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\__init__.py", line 138, in run event_loop.run() File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 142, in run self._run() File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 154, in _run timeout = self.idle() File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 275, in idle redraw_all = self.clock.call_scheduled_functions(dt) File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\clock.py", line 346, in call_scheduled_functions item.func(now - item.last_ts, *item.args, **item.kwargs) File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\localrunner.py", line 49, in game_loop_wrapper is_game_over = loop.run_until_complete(Runner.game.game_loop()) File "C:\Program Files (x86)\Python37-32\lib\asyncio\base_events.py", line 579, in run_until_complete return future.result() File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\game_objects\game.py", line 355, in game_loop self.draw() File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\game_objects\game.py", line 345, in draw self.draw_bonuses() File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\game_objects\game.py", line 325, in draw_bonuses bonus.draw() File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\game_objects\bonuses.py", line 39, in draw draw_square_with_image((self.x, self.y), self.color, self.image_path, self.active_ticks) File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\helpers.py", line 182, in draw_square_with_image img = load_image(image_path) File "c:\Users\oooo\Desktop\quests\aicup_mimi_4\repoclone\miniaicups\paperio\local_runner\helpers.py", line 169, in load_image img = pyglet.image.load(path) File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\image\__init__.py", line 180, in load file = open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'sprites/flash.png'
The text was updated successfully, but these errors were encountered: