CiscoUcs / ucsmsdk

Python SDK for Cisco UCSM
Other
80 stars 60 forks source link

Python 3.11 support ? #225

Closed GregDuhamel closed 11 months ago

GregDuhamel commented 1 year ago

Hello,

got some issues after upgrading to Python 3.11 :

File "/tmp/ansible_cisco.ucs.ucs_ip_pool_payload_i8use3pm/ansible_cisco.ucs.ucs_ip_pool_payload.zip/ansible_collections/cisco/ucs/plugins/module_utils/ucs.py", 
line 87, in login handle.login()

File "/home/gduhamel/.local/lib/python3.11/site-packages/ucsmsdk/ucshandle.py", line 135, in login
    return self._login(auto_refresh, force, timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/gduhamel/.local/lib/python3.11/site-packages/ucsmsdk/ucssession.py", line 607, in _login
    raise UcsLoginError("Not a supported server.")

I've no issue with the same setup in python 3.10.

Can someone confirm this module should be compatible with Python 3.11 ?

vesposito commented 1 year ago

Python 3.11 support has been added as part of 0.9.14: https://github.com/CiscoUcs/ucsmsdk/releases/tag/v0.9.14

vvb commented 11 months ago

Closing this as per @vesposito's comment. Please re-open if you don't see this fixed.