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 in creating the Candy Machine #63

Open
ghost opened this issue Jan 29, 2023 · 2 comments
Open

Error in creating the Candy Machine #63

ghost opened this issue Jan 29, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 29, 2023

=== Creating Candy Machine ===
Traceback (most recent call last):
File "C:\work\Aptos-NFT-Mint-public\script\src\cli.py", line 19, in
candy_machine.create()
File "C:\work\Aptos-NFT-Mint-public\script\src\candy_machine.py", line 119, in create
self.createCandyMachine()
File "C:\work\Aptos-NFT-Mint-public\script\src\candy_machine.py", line 140, in createCandyMachine
txn_hash = self.rest_client.create_candy_machine(self.account)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\work\Aptos-NFT-Mint-public\script\src\client.py", line 56, in create_candy_machine
signed_transaction = self.create_single_signer_bcs_transaction(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\work\Aptos-NFT-Mint-public\script\src\client.py", line 42, in create_single_signer_bcs_transaction
signature = sender.sign(raw_transaction.keyed())
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\aptos_sdk\transactions.py", line 89, in keyed
self.serialize(ser)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\aptos_sdk\transactions.py", line 115, in serialize
self.payload.serialize(serializer)
File "C:\work\Aptos-NFT-Mint-public\script\src\transactions.py", line 105, in serialize
self.value.serialize(serializer)
File "C:\work\Aptos-NFT-Mint-public\script\src\transactions.py", line 62, in serialize
serializer.sequence(self.args, Serializer.bytes)
^^^^^^^^^^^^^^^^
AttributeError: type object 'Serializer' has no attribute 'bytes'

@bishthub
Copy link

bishthub commented Jun 4, 2023

any help till now? Still facing this issue

@CryptoAutistic80
Copy link

=== Creating Candy Machine ===
Traceback (most recent call last):
File "C:\work\Aptos-NFT-Mint-public\script\src\cli.py", line 19, in
candy_machine.create()
File "C:\work\Aptos-NFT-Mint-public\script\src\candy_machine.py", line 119, in create
self.createCandyMachine()
File "C:\work\Aptos-NFT-Mint-public\script\src\candy_machine.py", line 140, in createCandyMachine
txn_hash = self.rest_client.create_candy_machine(self.account)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\work\Aptos-NFT-Mint-public\script\src\client.py", line 56, in create_candy_machine
signed_transaction = self.create_single_signer_bcs_transaction(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\work\Aptos-NFT-Mint-public\script\src\client.py", line 42, in create_single_signer_bcs_transaction
signature = sender.sign(raw_transaction.keyed())
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\aptos_sdk\transactions.py", line 89, in keyed
self.serialize(ser)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\aptos_sdk\transactions.py", line 115, in serialize
self.payload.serialize(serializer)
File "C:\work\Aptos-NFT-Mint-public\script\src\transactions.py", line 105, in serialize
self.value.serialize(serializer)
File "C:\work\Aptos-NFT-Mint-public\script\src\transactions.py", line 62, in serialize
serializer.sequence(self.args, Serializer.bytes)
^^^^^^^^^^^^^^^^
AttributeError: type object 'Serializer' has no attribute 'bytes'

I recommend using WSL rather than windows, usually solves most issues. Just search for Ubuntu on Microsoft store.

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