PyPlcnextRsc Compatibility Issues

The Python module PyPlcnextRsc is no longer compatible with current releases of Python, as it calls _decompose from the enum module, which was removed in Python 3.11. See this exception traceback:

Traceback (most recent call last):
File “/my/python/script”, line 7, in
from PyPlcnextRsc import Device, GUISupplierExample
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyPlcnextRsc/init.py”, line 12, in
from PyPlcnextRsc.common import *
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyPlcnextRsc/common/init.py”, line 4, in
from PyPlcnextRsc.common.device import *
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyPlcnextRsc/common/device.py”, line 6, in
from PyPlcnextRsc.common.transport import RscClient
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyPlcnextRsc/common/transport/init.py”, line 4, in
from PyPlcnextRsc.common.transport.rsc_client import *
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyPlcnextRsc/common/transport/rsc_client.py”, line 13, in
from PyPlcnextRsc.common.exceptions import *
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyPlcnextRsc/common/exceptions.py”, line 5, in
from PyPlcnextRsc.common.types import RscTpIntEnum
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyPlcnextRsc/common/types/init.py”, line 4, in
from PyPlcnextRsc.common.types.rsc_types import *
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyPlcnextRsc/common/types/rsc_types.py”, line 3, in
from enum import (
ImportError: cannot import name ‘_decompose’ from ‘enum’ (/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/enum.py)

I couldn’t access the GitLab page for this project, so I couldn’t open an issue and don’t know who’s maintaining it now (if anyone). I tried to email the developer, Song Yantao, but his email appears to be deactivated.

I have looked in the repository referenced in the documentation. The last code updates were two years ago. There was one issue created one year ago, but it was never answered by any developer(s). Unfortunately it appears that this project is no longer being maintained.