Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'TLSConnection' object has no attribute 'key_file' #250

Closed
rfschumi opened this issue Apr 30, 2024 · 4 comments
Closed

AttributeError: 'TLSConnection' object has no attribute 'key_file' #250

rfschumi opened this issue Apr 30, 2024 · 4 comments

Comments

@rfschumi
Copy link

Hi,
since update to python version 3.12 i get a error when doing a normal login.
AttributeError: 'TLSConnection' object has no attribute 'key_file'

I created a new environment with only installed via pip the ucsmsdk. Same result. With python 3.11 it works.

--------%--------
from ucsmsdk.ucshandle import UcsHandle
handle = UcsHandle("xxx.xxx.xxx.xxx", "peter", "password")
handle.login()
--------%--------

Thanks for help.
Ralf

@rfschumi
Copy link
Author

Maybe the same direction than #240?

@rfschumi
Copy link
Author

i tried this from the sample part on GitHub
https://github.com/CiscoUcs/ucsmsdk/blob/master/samples/connection/info.py

-------%--------
def ucs_login():

import os
from ucsmsdk.ucshandle import UcsHandle

handle = UcsHandle("xxx.xxx.xxx.xxx", "peter", "password", 80)
handle.login()
return handle

-------%--------

Same result :-(

@dhapati2
Copy link
Contributor

PR for issue fix, merged to master and included in ucsm latest release v0.9.18

#252

@rfschumi
Copy link
Author

rfschumi commented Jun 18, 2024 via email

@t-raghu t-raghu closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants