CiscoUcs / ucsmsdk

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

Error launching ucs_gui_launch -Unable to use convert_to_ucs_python utility #159

Closed janani-n closed 7 years ago

janani-n commented 7 years ago

Hi ,

I have Cisco UCSMSDK library installed and I am trying to use convert_to_python utility to get the ucs scripts based on my actions in Java GUI. I am getting an error when doing ucs_gui_launch(handle) TypeError: coercing to Unicode: need string or buffer, NoneType found I have JAVA_HOME environment variable set properly.

Convert to python was previously working fine.I have upgraded UCS Manager to 3.1(3a) and noticed that "Beginning with Cisco UCS Manager Release 3.1(3a), the Cisco UCS Manager GUI is no longer available as a Java-based application"(From release notes).

Is the above error because of no Java based GUI in latest UCS 3.1(3a)? If so how do I workaround and get to use convert_to_python ? Please advice as this is an urgent request. Please find below screenshot ucs_gui

Thanks, Janani

vvb commented 7 years ago

@interop-hcl yes, the ucs_gui_launch and convert_to_ucs_python were designed for JAVA UCSM GUI.. 3.1(3a) does not support JAVA GUI and so the error.

An alternate way to do this using HTML UI is to collect and download the logs from HTML UI and feed the logs to convert_to_ucs_python. It will generate the python script based on the logs.