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

error when create data #99

Closed
sandhunter66 opened this issue May 1, 2022 · 9 comments
Closed

error when create data #99

sandhunter66 opened this issue May 1, 2022 · 9 comments

Comments

@sandhunter66
Copy link

hi.. thank you for the addon.. but im facing a problem when trying to create data and generate nft.. This is the problem

Error: Python: Traceback (most recent call last):
File "C:\Users\RYZEN 5\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Blend_My_NFTs-main_init_.py", line 352, in execute
DNA_Generator.send_To_Record_JSON(collectionSize, nftsPerBatch, save_path, enableRarity, enableLogic, logicFile, Blend_My_NFTs_Output)
File "C:\Users\RYZEN 5\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Blend_My_NFTs-main\main\DNA_Generator.py", line 278, in send_To_Record_JSON
create_nft_data()
File "C:\Users\RYZEN 5\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Blend_My_NFTs-main\main\DNA_Generator.py", line 235, in create_nft_data
DataDictionary = generateNFT_DNA(collectionSize, logicFile, enableRarity, enableLogic)
File "C:\Users\RYZEN 5\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Blend_My_NFTs-main\main\DNA_Generator.py", line 192, in generateNFT_DNA
DNAList = create_DNAList()
File "C:\Users\RYZEN 5\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Blend_My_NFTs-main\main\DNA_Generator.py", line 186, in create_DNAList
DNASetReturn |= {''.join([dnaPushToList()]) for _ in range(collectionSize - len(DNASetReturn))}
File "C:\Users\RYZEN 5\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Blend_My_NFTs-main\main\DNA_Generator.py", line 186, in
DNASetReturn |= {''.join([dnaPushToList()]) for _ in range(collectionSize - len(DNASetReturn))}
File "C:\Users\RYZEN 5\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Blend_My_NFTs-main\main\DNA_Generator.py", line 167, in singleCompleteDNA
singleDNA = createDNArandom()
File "C:\Users\RYZEN 5\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Blend_My_NFTs-main\main\DNA_Generator.py", line 151, in createDNArandom
randomVariantNum = random.choices(i, k=1)
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\python\lib\random.py", line 486, in choices
return [population[floor(random() * n)] for i in _repeat(None, k)]
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\python\lib\random.py", line 486, in
return [population[floor(random() * n)] for i in _repeat(None, k)]
IndexError: list index out of range

location: :-1

@xReapex
Copy link

xReapex commented May 2, 2022

Same problem here

@sandhunter66
Copy link
Author

any workaround?

@mirkhayot1998
Copy link

Same problem

@torrinworx
Copy link
Owner

@mirkhayot1998, @xReapex @sandhunter66 can you provide anymore information about your setup? What version of BMNFTs are you using? Have you uninstalled all previous versions and tried a fresh download? What is the recommended limit for your collection?

Is this the first time you've seen this error?

@sandhunter66
Copy link
Author

im using blender 3.0 using fresh installation.

@sandhunter66
Copy link
Author

recommended limit of my collection is 46000

@sandhunter66
Copy link
Author

yes it is the first time i see this error.. i really hope this plugin works because i can see it is very useful for many people

@jcruzfff
Copy link

jcruzfff commented May 8, 2022

I'm getting the same problem trying now.. I opened my own issues comment prior to seeing this sorry. I have screen shots I feel like I've still done something wrong...

@torrinworx
Copy link
Owner

It looks like this might be an issue with the naming of an Attribute or Variant collection. I would recommend reading https://github.com/torrinworx/Blend_My_NFTs#blender-file-organization-and-structure and check over your scene one more time.

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

5 participants