jalagar / animated-art-engine

A generative engine that takes various png layers on a sprite sheet format, combines them and then converts them into a .gif file
MIT License
166 stars 64 forks source link

Error with PIL_image #179

Closed boconik closed 1 year ago

boconik commented 1 year ago

File "C:\Users\bezce\OneDrive\Desktop\animated-art-engine-main\step1_layers_to_spritesheet\build.py", line 290, in main() File "C:\Users\bezce\OneDrive\Desktop\animated-art-engine-main\step1_layers_to_spritesheet\build.py", line 284, in main process_layer_folder( File "C:\Users\bezce\OneDrive\Desktop\animated-art-engine-main\step1_layers_to_spritesheet\build.py", line 236, in process_layer_folder parse_attribute_folders( File "C:\Users\bezce\OneDrive\Desktop\animated-art-engine-main\step1_layers_to_spritesheet\build.py", line 149, in parse_attribute_folders images, contains_sub_folder = parse_attributes_into_images( File "C:\Users\bezce\OneDrive\Desktop\animated-art-engine-main\step1_layers_to_spritesheet\build.py", line 107, in parse_attributes_into_images img = PIL_Image.open(file_path) NameError: name 'PIL_Image' is not defined

This appears when I use python step1_layers_to_spritesheet/build.py command. What should I do?

jalagar commented 1 year ago

Hmm can you check that file and see if PIL_Image is defined at the top of the file? Try the latest code. Also try make first_time_setup too

boconik commented 1 year ago

The error with PIL was caused by two versions of python installed on PC and different versions of PIL/Pillow were not compatible with respective Python versions. Problem solved by removing all folders associated with Python after uninstallation of Python. Then I downloaded Python 3.8.1 and installed Pillow with command from makefile

jalagar commented 1 year ago

Great glad you figured it out!