sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

Python 3.10 Support

Open sunsoftdev opened this issue 2 years ago • 7 comments

This SDK won't work on python 3.10 which is the latest version released last year. This version has deprecated the collections need to update that so it can be used for the latest version. It is a core vulneabliity. Unless the code is updated for this change, this library cannot be used. I have posted a message to the authorize.net support also but no one responded. Does authorize.net still support python and Django or not.

sunsoftdev avatar Mar 15 '22 09:03 sunsoftdev

I'm using 3.10 and I got an error AttributeError: module 'collections' has no attribute 'MutableSequence' from the pyxb library at pyxb/binding/content.py. Googling that error led me to https://stackoverflow.com/questions/70284852/couldnt-run-the-py-file-attributeerror-module-collections-has-no-attribut I then opened the content.py file and found the import collections line and changed it to import collections.abc as collections and that got my script to run

ckanoab avatar Apr 19 '22 06:04 ckanoab

@ckanoab I just ran into this and can confirm that this worked for me as well!

smithaldon1 avatar Oct 30 '22 20:10 smithaldon1

@ckanoab same i ran through this issue and can confirm that this worked for me as well!

Rohith-sreedharan avatar Nov 17 '22 19:11 Rohith-sreedharan

Thanks @ckanoab ! Worked for me as well.

I hope this is fixed in the next release; it's a tiny, easy fix.

billalive avatar Nov 28 '22 20:11 billalive

Crazy behavior that they leave this open for years and do not care about their customers.

scottie avatar Nov 27 '23 07:11 scottie

Screenshot from 2024-01-16 17-55-20

Add these line at ../lib/python3.10/site-packages/pyxb/binding/content.py this location will fix your issue

developervick avatar Jan 16 '24 12:01 developervick

@developervick Instead of updating the package file try the below solution.

https://github.com/AuthorizeNet/sdk-python/issues/151#issuecomment-1943155246

dvlprb2 avatar Mar 07 '24 09:03 dvlprb2

The Python SDK has been tested successfully on v3.6 to v3.12. We have replaced the offending serialization library with a newer one, which will hopefully not cause more issues like this. Closing this issue based on that.

gnongsie avatar Sep 23 '24 05:09 gnongsie