Chrispresso / SnakeAI

MIT License
246 stars 75 forks source link

How can i solve this problems? #12

Closed Melmet1 closed 1 year ago

Melmet1 commented 1 year ago

When I tried to run this program, this phrase followed by 'loading the generation : indv439'.

Traceback (most recent call last): File "C:\Snake\SnakeAI-master\mysnake.py", line 791, in main() File "C:\Python_installer_3.10\lib\site-packages\click\core.py", line 1130, in call return self.main(args, kwargs) File "C:\Python_installer_3.10\lib\site-packages\click\core.py", line 1055, in main rv = self.invoke(ctx) File "C:\Python_installer_3.10\lib\site-packages\click\core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "C:\Python_installer_3.10\lib\site-packages\click\core.py", line 760, in invoke return __callback(args, **kwargs) File "C:\Snake\SnakeAI-master\mysnake.py", line 787, in main window = MainWindow(settings, show, fps) File "C:\Snake\SnakeAI-master\mysnake.py", line 95, in init individual = load_snake(f'./{data_folder}', indv, None) File "C:\Snake\SnakeAI-master\snake.py", line 476, in load_snake params[param] = np.load(os.path.join(population_folder, individual_name, fname)) File "C:\Python_installer_3.10\lib\site-packages\numpy\lib\npyio.py", line 418, in load raise ValueError("Cannot load file containing pickled data " ValueError: Cannot load file containing pickled data when allow_pickle=False

Melmet1 commented 1 year ago

I solve this problems. I delete .npy files in 'indv440' forder.