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

Python 3.10 vs pyxb EoL

Open rbour opened this issue 3 years ago • 6 comments

Python 3.10 has moved abstract base classes from collections to collections.abc available since Python 3.3. This has broken pyxb and, therefore, imports for authorizenet/sdk-python.

There has been a pyxb pull request pending for nearly 3 years that would likely fix this specific problem, but the pyxb author has indicated that the project is at end-of-life without funding or transfer of ownership.

It seems the path to supporting Python 3.10 would involve either:

  1. Replace pyxb in the authorizenet/sdk-python project
  2. Work with the pyxb author to get that project up to date

Any chance of supporting Python 3.10 in the near future?

rbour avatar Dec 11 '21 22:12 rbour

Or any sort of timeline/road map would be valued.

rhimmelbauer avatar Jan 25 '22 19:01 rhimmelbauer

Any plans?

yashsamit avatar Feb 23 '22 05:02 yashsamit

any update for the support for Python 3.10. is this library still active?

sunsoftdev avatar Mar 15 '22 09:03 sunsoftdev

This has been open since 2021..... whats going on guys ??? Pretty disgusting actually.

scottie avatar Nov 27 '23 07:11 scottie

At this point using requests lib with direct URL makes more sense!

codeyash avatar Nov 28 '23 03:11 codeyash

Adding these two lines of code just before importing authorize.net resolves the error without requiring any modifications to the package's source files.

import collections
collections.MutableSequence = collections.abc.MutableSequence

Screenshot (1)

dvlprb2 avatar Feb 14 '24 06:02 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