Jon-Becker / nft-generator-py

This tool allows users to generate sets of unique images and metadata using weighted layer collections.
MIT License
301 stars 127 forks source link

Cant Generate #32

Closed PetreEP closed 2 years ago

PetreEP commented 2 years ago

Hello, First of all thank you for amazing work.

I'm very noobie, first time trying to do something in .py.

I just wanted to check if your generator engine is work. I didn't change anything, but all the time have same error

Exception has occurred: ModuleNotFoundError No module named 'PIL' File "[/Users/petre/Desktop/NFT-PY/index.py]()", line 2, in from PIL import Image

Could you help me?

Jon-Becker commented 2 years ago

Hey!

You need to install the requirements. You can do this by running pip install requirements.txt

PetreEP commented 2 years ago

Will try, thank you very much!

On 18 Mar 2022, at 19:19, Jonathan Becker @.***> wrote:

Reopened #32 https://github.com/Jon-Becker/nft-generator-py/issues/32.

— Reply to this email directly, view it on GitHub https://github.com/Jon-Becker/nft-generator-py/issues/32#event-6266935721, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYJJZJ2Q2LE6LLXU5VE6Z6TVASNJNANCNFSM5RCD4GCA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

Jon-Becker commented 2 years ago

Howd it work?

PetreEP commented 2 years ago

Didn’t find yesterday how to run pip install requirements on mac. It’s my second time with programing :)) I tried hashlips engine it works fine but in your generator i like that i can use if statement in layers/traits. Will try tomorrow to find any guide how to install pip. Thank for your attention!

Sent from my iPhone

On Mar 19, 2022, at 22:57, Jonathan Becker @.***> wrote:

 Howd it work?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.

PetreEP commented 2 years ago

Sorry for disturbing, one more question i got error at line 67

/usr/bin/python2.7 /Users/petre/Desktop/nft-generator-py-1.0.2/index.py File "/Users/petre/Desktop/nft-generator-py-1.0.2/index.py", line 67 layers[index] = Image.open (f'{config["layers"][index]["trait_path"]}/{trait_files[attr][item[attr]]}.png').convert('RGBA') ^ SyntaxError: invalid syntax

Could you help me?

PetreEP commented 2 years ago

Hey mate, i sat up all the Libraries and everything is working perfect. Thank you!

On 19 Mar 2022, at 22:57, Jonathan Becker @.***> wrote:

Howd it work?

— Reply to this email directly, view it on GitHub https://github.com/Jon-Becker/nft-generator-py/issues/32#issuecomment-1073063536, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYJJZJ4SZAEGC3GSC7OCIY3VAYPTBANCNFSM5RCD4GCA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

PetreEP commented 2 years ago

Hey Joh, I was using your nft for test collection and everything worked perfectly, but when I have started generating of full collection suddenly i have this issue

TERM environment variable not set. Traceback (most recent call last): File "/Users/petre/Desktop/Mutual Friends Generator/index.py", line 102, in generate_unique_images(5, { File "/Users/petre/Desktop/Mutual Friends Generator/index.py", line 66, in generate_unique_images layers[index] = Image.open(f'{config["layers"][index]["trait_path"]}/{trait_files[attr][item[attr]]}.png').convert('RGBA') KeyError: ‘trait_path'

I checked all size of all pictures and seems it’s similar 3000 X 3000 I also checked all image & layer names and they are correct.

Could you help me ?

Best Regards,

Petre