sdk-python
sdk-python copied to clipboard
Python 3.10 Support
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.
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 I just ran into this and can confirm that this worked for me as well!
@ckanoab same i ran through this issue and can confirm that this worked for me as well!
Thanks @ckanoab ! Worked for me as well.
I hope this is fixed in the next release; it's a tiny, easy fix.
Crazy behavior that they leave this open for years and do not care about their customers.
Add these line at ../lib/python3.10/site-packages/pyxb/binding/content.py this location will fix your issue
@developervick Instead of updating the package file try the below solution.
https://github.com/AuthorizeNet/sdk-python/issues/151#issuecomment-1943155246
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.