09-10-2013 05:34 PM
Hi,
I am new to UCS platform. I have been trying out the different programming interfaces to Cisco UCS XML API.
I am trying to get the Cisco Python SDK to work and running into the roadblocks.
i installed by running python3 setup.py install.
I followed the simple script in the documentation.
from UcsSdk import *
if __name__ == "__main__":
handle = UcsHandle()
handle.Login("10.7.193.10","mon","mon")
handle.Logout()
The error i am getting is:
Traceback (most recent calls last):
File "./testucs.py", lin 3, in <module>
from UcsSdk import *
File "/usr/local/lib/python3.3/dist-packages/UcsSdk/__init__.py", line 1, in <module>
from MoMeta import _VersionMeda,_ManagedObjectMeta
ImportError: No module named 'MoMeta'
I can see MoMeta.py package in /usr/local/lib/python3.3/dist-packages/UcsSdk
I am running Ubuntu 13.04 with Python 3.3
Has anyone encountered this issue?
Thanks
Solved! Go to Solution.
09-17-2013 11:26 PM
Hi Allen,
UCS SDK is compatible only with Python 2.x. There are lot of fundamental changes in python 3.x which breaks backward compatibility. More details on http://docs.python.org/3/whatsnew/3.0.html
SDK for python 3.x is in the plan. But we don't have any timeline yet.
Thanks,
Ravikumar
09-17-2013 11:26 PM
Hi Allen,
UCS SDK is compatible only with Python 2.x. There are lot of fundamental changes in python 3.x which breaks backward compatibility. More details on http://docs.python.org/3/whatsnew/3.0.html
SDK for python 3.x is in the plan. But we don't have any timeline yet.
Thanks,
Ravikumar
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide