cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
503
Views
5
Helpful
1
Replies

YDK models can't install because YDK requirement reports wrong version

vadigreg
Cisco Employee
Cisco Employee

Hello,

I need your help to set the core_version into setup.py. My JSON profile looks like this:

{
"name": "wireless",
"version": "17.4.0.202006300937",
"core-version": "0.8.4",
[...]

However the resulting setup.py inside the .tar.gz file shows:

INSTALL_REQUIREMENTS = ['ydk>=17.4.0.20200708122742']

NMSP_PKG_NAME = "ydk-models-wireless"
NMSP_PKG_VERSION = "17.4.0.20200708122742"
NMSP_PKG_DEPENDENCIES = []

For this reason pip install fails:

$ pip install /path/ydk-models-wireless-17.4.0.20200708122742.tar.gz 
Looking in indexes: http://xxxxxxxxx.cisco.com/simple
Processing /path/ydk-models-wireless-17.4.0.20200708122742.tar.gz
Collecting ydk>=17.4.0.20200708122742 (from ydk-models-wireless==17.4.0.20200708122742)
  Could not find a version that satisfies the requirement ydk>=17.4.0.20200708122742 (from ydk-models-wireless==17.4.0.20200708122742) (from versions: 0.5.4, 0.5.5, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4)
No matching distribution found for ydk>=17.4.0.20200708122742 (from ydk-models-wireless==17.4.0.20200708122742)

Thanks,

Val

1 Accepted Solution

Accepted Solutions

MahdiR
Level 1
Level 1

You need to change "core-version" to "core_version"!

View solution in original post

1 Reply 1

MahdiR
Level 1
Level 1

You need to change "core-version" to "core_version"!