metaplex-foundation / python-api

136 stars 86 forks source link

Error with miting #36

Open mdergueche opened 2 years ago

mdergueche commented 2 years ago

Hi community,

So I'm trying to mint an NFT on Solana using your library but I'm getting an error at metada function. Here the stuck

File "/python-api/api/metaplex_api.py", line 77, in mint tx, signers = mint(api_endpoint, self.keypair, contract_key, dest_key, link, supply=supply) File "/python-api/metaplex/transactions.py", line 186, in mint metadata = get_metadata(client, mint_account) File "/python-api/metaplex/metadata.py", line 182, in get_metadata data = base64.b64decode(client.get_account_info(metadata_account)['result']['value']['data'][0]) TypeError: 'NoneType' object is not subscriptable

also how I know the fee on the network to mint the NFT? I check the library, there is no such function as such. It would be great to add it before deciding to mint the contract as such.

Your help will be really appreciated.

mdergueche commented 2 years ago

somehow I managed to mint one contract on the mainnet beta without changing anything from my end!

but today trying again, I'm facing the same error!!! please help.

nurav97 commented 2 years ago

8

andeskis commented 2 years ago

I also have an issue with the minting where its value is None

Deploy: {'jsonrpc': '2.0', 'result': '4PYzUAWcwDVEkryJn4XdXoj8JzSyN6yS14Tw3YM8oAaBZayqiKotP2a7XtyzaL2PBzpbrSn17emtJjPGrxF4QLVz', 'id': 2, 'contract': '8WpJDw7QPo9T8ZWsVK6wLjHypMRWN7tmKuvrth31ePLy', 'status': 200}

mint_key 8WpJDw7QPo9T8ZWsVK6wLjHypMRWN7tmKuvrth31ePLy

metadata_account HVZ9XjamjRhmQwqaaPgepy6FxoPFHFqts1NgbJgAe85C

acc_info {'jsonrpc': '2.0', 'result': {'context': {'slot': 108802316}, 'value': None}, 'id': 13}

Traceback (most recent call last): File "C:\Users\ander\Documents\code\solana\metapliex-example\python-api\api.py", line 161, in test() File "C:\Users\ander\Documents\code\solana\metapliex-example\python-api\api.py", line 127, in test print(get_metadata(client, contract)) File "C:\Users\ander\Documents\code\solana\metapliex-example\python-api\metaplex\metadata.py", line 192, in get_metadata acc_info_resp = acc_info['result']['value']['data'][0] TypeError: 'NoneType' object is not subscriptable

PixusMetaverse commented 2 years ago

Not working either - have the same issue since this week

mdergueche commented 2 years ago

it is a shame. No support at all. some of users have managed to make it work!

JeffryCA commented 2 years ago

+1 I have the same problem

soliblue commented 2 years ago

@jarry-xiao Can you please support?

JoseLuisDavila commented 1 year ago

any solution ???

nurav97 commented 1 year ago

They have stopped the development of this python API also no one supports in their discord we had to switch to their js SDK that might be the best bet