Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoneType' object is not subscriptable #23

Open
ykeremekinci opened this issue Mar 12, 2022 · 1 comment
Open

NoneType' object is not subscriptable #23

ykeremekinci opened this issue Mar 12, 2022 · 1 comment

Comments

@ykeremekinci
Copy link

Starting task...
Traceback (most recent call last):
File "D:\Google Indirilenler\generative-art-nft-099c93f6cd918a124e9f6e7e044a157eee9b49bd\nft.py", line 259, in
main()
File "D:\Google Indirilenler\generative-art-nft-099c93f6cd918a124e9f6e7e044a157eee9b49bd\nft.py", line 250, in main
rt = generate_images(edition_name, num_avatars)
File "D:\Google Indirilenler\generative-art-nft-099c93f6cd918a124e9f6e7e044a157eee9b49bd\nft.py", line 186, in generate_images
if is_duplicated(rarity_dict, trait_sets, image_index):
File "D:\Google Indirilenler\generative-art-nft-099c93f6cd918a124e9f6e7e044a157eee9b49bd\nft.py", line 151, in is_duplicated
if rarity_dict[CONFIG[idx]['name']][index] != trait[: -1 * len('.png')]:
TypeError: 'NoneType' object is not subscriptable

I got this error. Can anybody help me?

@levintech
Copy link

Hi, @ykeremekinci Thanks for sharing your script.
I found what the issue and fixed them. I missed checking None traits mechanism on the script. I had already fixed that issue and test them on my side. You can see the updated code now. If you have any other problem, please kindly share me.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants