- Want to use the ydk-py API on windows platform, but have a couple of problems.
- First of all, how to install it and what Python langauge version is required . Using 2.7.5 but when opening the sample bgp.py see imports like "enum" or "lxml" that are not found.
These are other third party packages (not included in the built in library) which we can download and install .
First install pip for windows python version then using the command pip install <package name>.you will be able to install enum along with the dependencies from command prompt but do remember to do this on cmd prompt first you need to setup the python path. you can google or ref-python - How to add to the pythonpath in windows 7? - Stack Overflow.
For the enum module try downloading from the following url-enum34 1.1.6 : Python Package Index .
Please try out after installing these packages and let us know the result.
- Could you please clarify what Python language version is required by YDK-Py ? Will it work with 2.7.x or 3.x.y only. Using the GitHub version.
YDK-Py doesn't currently support Python 3. We have an open issue to track it:https://github.com/CiscoDevNet/ydk-gen/issues/60
We made good progress on adding Python 3 support, but had to prioritize other issues in the recent releases. You can expect Python 3 to be officially supported in YDK-Py in a not so distant release.
Note that the YDK-Py sample apps should use parenthesis for print statements since a single argument is used. The idea was to facilitate porting once Python 3 support is released in YDK-Py.
installing a Windows-supported Python distribution like Anaconda or PythonXY will be sufficient.
was able to use PythonXY (Python-xy.GitHub.io by python-xy) to install ydk-py without any problems on Windows.
Simplest way to get started on Windows is to use the Vagrant sandbox in the YDK-Py samples repo: GitHub - CiscoDevNet/ydk-py-samples: Sample apps for YDK-Py
It requires to install VirtualBox and Vagrant on Windows. We know of people using that approach successfully and they experience the convenience of Vagrant.
Comments
0 comments
Please sign in to leave a comment.