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
167 stars 62 forks source link

Build/output folder missing #122

Closed trying-my-best closed 2 years ago

trying-my-best commented 2 years ago

I tried downloading the code and it runs the first step correctly but gets hung up on step two. I noticed in your tutorial that you have a build folder that I cannot find in this or other versions of the commit. I am not an avid coder and don't know how to remedy this.

The error message I am receiving:

cd ./step2_spritesheet_to_generative_sheet; npm run generate The system cannot find the path specified. make[1]: [Makefile:11: step2] Error 1 make[1]: Leaving directory 'C:/Users/Sean/Desktop/Generative_Gif_Engine-main make: [Makefile:24: all] Error 2

jalagar commented 2 years ago

@trying-my-best yea the build folder will be created in step 3.

Looks like an issue with make step2. Did you make any changes? What operating system are you on and specs of your computer?

trying-my-best commented 2 years ago

Re-downloaded the git because I tried to manually add the build folder thinking that might work 😅

It is still hung up on step 2. I'm on Windows 11, Surface pro 8 32gb ram.

jalagar commented 2 years ago

Hmm can you copy and paste the entire terminal output?

trying-my-best commented 2 years ago

Certainly! Should I run make all or make step2? It produces different error codes

trying-my-best commented 2 years ago

so performing make all produces this PS C:\Users\Sean\Desktop\Generative_Gif_Engine-main> make all make step1 make[1]: Entering directory 'C:/Users/Sean/Desktop/Generative_Gif_Engine-main' python3 ./step1_layers_to_spritesheet/build.py ****Starting step 1: Converting pngs to spritesheets**** Parsing layer folder Background Parsing attributes in folder: Dark Blue#20 Parsing attributes in folder: Green#20 Parsing attributes in folder: Grey#20 Parsing attributes in folder: Light Blue#20 Parsing attributes in folder: Multicolor#1 Parsing attributes in folder: Orange#20 Parsing attributes in folder: Pink#20 Parsing attributes in folder: Yellow#20 Parsing layer folder Ball Parsing attributes in folder: Blue#20 Parsing attributes in folder: Green#20 Parsing attributes in folder: Multicolor#1 Parsing attributes in folder: Orange#20 Parsing attributes in folder: Pink#20 Parsing attributes in folder: Purple#20 Parsing attributes in folder: Red#20 Parsing attributes in folder: Yellow#20 Parsing layer folder Hat Parsing attributes in folder: Birthday#20 Parsing attributes in folder: Cowboy#20 Parsing attributes in folder: Green Square#5 Parsing attributes in folder: Mini Ball#1 Parsing attributes in folder: None#50 Parsing attributes in folder: Top Hat#20 Parsing attributes in folder: White Cap#20 Parsing attributes in folder: Wizard#1 Parsing layer folder Landscape Parsing attributes in folder: Cupcake#10 Parsing attributes in folder: Face#20 Parsing attributes in folder: Goldfish#20 Parsing attributes in folder: Green Tower#30 Parsing attributes in folder: Mountain#20 Parsing attributes in folder: None#20 Parsing attributes in folder: Red Tower#30 make[1]: Leaving directory 'C:/Users/Sean/Desktop/Generative_Gif_Engine-main' make step2 make[1]: Entering directory 'C:/Users/Sean/Desktop/Generative_Gif_Engine-main' cd ./step2_spritesheet_to_generative_sheet; npm run generate The system cannot find the path specified. make[1]: [Makefile:10: step2] Error 1 make[1]: Leaving directory 'C:/Users/Sean/Desktop/Generative_Gif_Engine-main' make: [Makefile:23: all] Error 2

trying-my-best commented 2 years ago

make step 2 produces this PS C:\Users\Sean\Desktop\Generative_Gif_Engine-main> make step2 cd ./step2_spritesheet_to_generative_sheet; npm run generate The system cannot find the path specified. make: *** [Makefile:10: step2] Error 1

trying-my-best commented 2 years ago

make step3 produces PS C:\Users\Sean\Desktop\Generative_Gif_Engine-main> make step3 python3 ./step3_generative_sheet_to_gif/build.py Traceback (most recent call last): File "C:\Users\Sean\Desktop\Generative_Gif_Engine-main\step3_generative_sheet_to_gif\build.py", line 4, in import imageio ModuleNotFoundError: No module named 'imageio' make: *** [Makefile:19: step3] Error 1 PS C:\Users\Sean\Desktop\Generative_Gif_Engine-main>

jalagar commented 2 years ago

Very strange, did you run make first_time_setup what does that show?

trying-my-best commented 2 years ago

Yes, this is the output when I run it again

PS C:\Users\Sean\Desktop\Generative_Gif_Engine-main> make first_time_setup python3 -m pip install --upgrade Pillow Requirement already satisfied: Pillow in c:\users\sean\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (9.2.0) pip3 install -r requirements.txt Requirement already satisfied: Pillow==9.0.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 1)) (9.0.1) Requirement already satisfied: pre-commit==2.17.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 2)) (2.17.0) Requirement already satisfied: black==22.3.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 3)) (22.3.0) Requirement already satisfied: imageio==2.16.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 4)) (2.16.1) Requirement already satisfied: cfgv>=2.0.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (3.3.1) Requirement already satisfied: virtualenv>=20.0.8 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (20.16.4) Requirement already satisfied: pyyaml>=5.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (6.0) Requirement already satisfied: identify>=1.0.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (2.5.3) Requirement already satisfied: nodeenv>=0.11.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (1.7.0) Requirement already satisfied: toml in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (0.10.2) Requirement already satisfied: platformdirs>=2 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (2.5.2) Requirement already satisfied: pathspec>=0.9.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (0.10.1) Requirement already satisfied: mypy-extensions>=0.4.3 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (0.4.3) Requirement already satisfied: click>=8.0.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (8.1.3) Requirement already satisfied: tomli>=1.1.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (2.0.1) Requirement already satisfied: numpy>=1.20.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from imageio==2.16.1->-r requirements.txt (line 4)) (1.23.2) Requirement already satisfied: colorama in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from click>=8.0.0->black==22.3.0->-r requirements.txt (line 3)) (0.4.5) Requirement already satisfied: setuptools in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from nodeenv>=0.11.1->pre-commit==2.17.0->-r requirements.txt (line 2)) (63.2.0) Requirement already satisfied: distlib<1,>=0.3.5 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from virtualenv>=20.0.8->pre-commit==2.17.0->-r requirements.txt (line 2)) (0.3.6) Requirement already satisfied: filelock<4,>=3.4.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from virtualenv>=20.0.8->pre-commit==2.17.0->-r requirements.txt (line 2)) (3.8.0) cd step2_spritesheet_to_generative_sheet; npm i The system cannot find the path specified. make: [Makefile:4: first_time_setup] Error 1 PS C:\Users\Sean\Desktop\Generative_Gif_Engine-main> make first_time_setup python3 -m pip install --upgrade Pillow Requirement already satisfied: Pillow in c:\users\sean\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (9.2.0) pip3 install -r requirements.txt Requirement already satisfied: Pillow==9.0.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 1)) (9.0.1) Requirement already satisfied: pre-commit==2.17.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 2)) (2.17.0) Requirement already satisfied: black==22.3.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 3)) (22.3.0) Requirement already satisfied: imageio==2.16.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 4)) (2.16.1) Requirement already satisfied: nodeenv>=0.11.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (1.7.0) Requirement already satisfied: identify>=1.0.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (2.5.3) Requirement already satisfied: toml in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (0.10.2) Requirement already satisfied: virtualenv>=20.0.8 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (20.16.4) Requirement already satisfied: pyyaml>=5.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (6.0) Requirement already satisfied: cfgv>=2.0.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from pre-commit==2.17.0->-r requirements.txt (line 2)) (3.3.1) Requirement already satisfied: tomli>=1.1.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (2.0.1) Requirement already satisfied: platformdirs>=2 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (2.5.2) Requirement already satisfied: mypy-extensions>=0.4.3 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (0.4.3) Requirement already satisfied: pathspec>=0.9.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (0.10.1) Requirement already satisfied: click>=8.0.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from black==22.3.0->-r requirements.txt (line 3)) (8.1.3) Requirement already satisfied: numpy>=1.20.0 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from imageio==2.16.1->-r requirements.txt (line 4)) (1.23.2) Requirement already satisfied: colorama in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from click>=8.0.0->black==22.3.0->-r requirements.txt (line 3)) (0.4.5) Requirement already satisfied: setuptools in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from nodeenv>=0.11.1->pre-commit==2.17.0->-r requirements.txt (line 2)) (63.2.0) Requirement already satisfied: filelock<4,>=3.4.1 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from virtualenv>=20.0.8->pre-commit==2.17.0->-r requirements.txt (line 2)) (3.8.0) Requirement already satisfied: distlib<1,>=0.3.5 in c:\users\sean\appdata\local\programs\python\python310\lib\site-packages (from virtualenv>=20.0.8->pre-commit==2.17.0->-r requirements.txt (line 2)) (0.3.6) cd step2_spritesheet_to_generative_sheet; npm i The system cannot find the path specified. make: [Makefile:4: first_time_setup] Error 1 PS C:\Users\Sean\Desktop\Generative_Gif_Engine-main>

jalagar commented 2 years ago

Are you running the commands in VSCode or through another terminal shell? It looks like it doesn't like cd, I think Windows has separate commands for cd so you might have to update the Makefile and use the corresponding Windows command instead of cd. make just aliases commands to be something else, and the underlying command is failing which makes me think it's a cd issue.

trying-my-best commented 2 years ago

I'm running them the commands in Visual Studio. What is CD? How should I update the make file?

Mizvi commented 2 years ago

i had a issue running vs code as admin solved it

trying-my-best commented 2 years ago

@Mizvi I tried that and still hade the same problem. Not sure how to update makefile or use cd commands

jalagar commented 2 years ago

@trying-my-best so to update Makefile it's a file in the repository, you can ctrl-f find replace cd to use the corresponding command for windows (you may have to google it)

jalagar commented 2 years ago

If you keep getting blocked, message me on Twitter https://twitter.com/jalagar_eth and we can maybe arrange something where I can help you generate your collection

jalagar commented 2 years ago

Going to close this issue for now feel free to message me on Twitter @trying-my-best

trying-my-best commented 2 years ago

Would I be able to contact you on discord?

trying-my-best commented 2 years ago

I can't really explain it but I don't go on Twitter these days.

amkyn commented 2 years ago

Try installing Linux WSL2 for Windows and do it from there.

jalagar commented 2 years ago

@trying-my-best @amkyn come join the Hashlips' discord channel https://discord.gg/Wg9SJkYWnD and ask any questions in the animated-art-engine channel!

trying-my-best commented 2 years ago

I'm also a member of the fitness friends discord if that helps any!

jalagar commented 2 years ago

Ah yea @trying-my-best we're shutting that down, but join the Hashlip one and I'll help you there. You can post more information and more people will be there to help rather than the Fit Friends one