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

New manual_buy.py (solders) - 'solders.transaction.Transaction' object has no attribute #11

Open
creosmart opened this issue Nov 8, 2024 · 5 comments

Comments

@creosmart
Copy link

@smypmsa, I'm getting the following error using the new manual_buy.py. Could you please check what might be the cause? Any help would be greatly appreciated.
Attempt 1 to create associated token account failed: Unable to confirm transaction 4DQJpmBAt9kmReMQ8gpeUpdok5YPTcmmbPRNC13XeRX4fVeBpGvV27xFQsNn5ddXUNRiap6QbZgRDnJbge3cxcUt

@smypmsa
Copy link
Contributor

smypmsa commented Nov 8, 2024

Please debug the code, run it against different tokens. You can enhance the logic and handle more exceptional cases. From what I experienced, this issue happens to some of tokens not all.

@creosmart
Copy link
Author

Ok, silly me 😁 It was the Solana version again. I downgraded to solana>=0.34.3 and checked that all the other versions are as specified in the requirements.txt. Now I'm getting:
Attempt 1 to create associated token account failed: 'solders.transaction.Transaction' object has no attribute 'recent_blockhash' and no dict for setting new attributes

@creosmart creosmart changed the title New manual_buy.py (solders) - create associated token account failed: Unable to confirm transaction New manual_buy.py (solders) - 'solders.transaction.Transaction' object has no attribute Nov 10, 2024
@creosmart
Copy link
Author

@smypmsa, could you please suggest any direction on how to solve this issue?

@creosmart
Copy link
Author

Hey everyone, if someone encountered this error, I reinstalled Python and the error disappeared.

@DiesLorte
Copy link

Reinstalling python didnt worked but using Solana.py 35.1 worked for me.

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

3 participants