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

Can the authorizenet package be made to support Python 3.12?

Open nectario opened this issue 1 year ago • 3 comments

I need to use Python 3.12 but I cannot use the authorizenet package. It just won't install. Can you please make it support Python 3.12? Thank you! Nektarios

nectario avatar Apr 29 '24 01:04 nectario

I'm looking for the same; support for latest python version 3.12. I even tried 3.9.13 version but their sdk didn't work as PyXb library is outdated. Please upgrade this sdk to use Pyxb-X or provide Rest APIs so we can easily use it. Thank you.

faizan-official avatar May 21 '24 19:05 faizan-official

Is this repo even active anymore at this point? I feel like with Auth.net being under so many companies now, they have no idea what is what anymore.

mike6626 avatar May 28 '24 21:05 mike6626

A little old, but to fix this, you need to edit the following file:

site-packages/pyxb/binding/content.py

On line 799, (import collections), change it to the following:

import collections
try:
    from collections import abc
    collections.MutableMapping = abc.MutableMapping
except:
    pass
On line 811 (class _PluralBinding (collections.MutableSequence):), change it as follows:

class _PluralBinding (collections.abc.MutableSequence):

This will allow the authorizenet module to run again.

RemmyLee avatar Jun 17 '24 15:06 RemmyLee

The Python SDK has been tested successfully on v3.6 to v3.12. Closing this issue based on that.

gnongsie avatar Sep 23 '24 05:09 gnongsie