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

Python 3.10 Support #154

Open
sunsoftdev opened this issue Mar 15, 2022 · 7 comments
Open

Python 3.10 Support #154

sunsoftdev opened this issue Mar 15, 2022 · 7 comments

Comments

@sunsoftdev
Copy link

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.

@ckanoab
Copy link

ckanoab commented Apr 19, 2022

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

@smithaldon1
Copy link

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

@Rohith-sreedharan
Copy link

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

@billalive
Copy link

Thanks @ckanoab ! Worked for me as well.

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

@scottie
Copy link

scottie commented Nov 27, 2023

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

@developervick
Copy link

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

@dvlprb2
Copy link

dvlprb2 commented Mar 7, 2024

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

#151 (comment)

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

8 participants