AuthorizeNet / sdk-python

Python SDK for the Authorize.Net API
Other
53 stars 82 forks source link

Can the authorizenet package be made to support Python 3.12? #159

Closed nectario closed 2 months ago

nectario commented 6 months ago

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

faizan-official commented 6 months ago

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.

mike6626 commented 5 months ago

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.

RemmyLee commented 5 months ago

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.

gnongsie commented 2 months ago

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