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

ydk-py-samples on Cisco XRv 6.0.2

xp_pratibha
Level 1
Level 1

Hi ,

  I am trying to run ydk-py-samples (hello-ydk.py) again cisco XRv 6.0.2 and I am getting the below error:

./hello-ydk.py

Traceback (most recent call last):

  File "./hello-ydk.py", line 50, in <module>

    str(timedelta(seconds=system_time.uptime.uptime)))

TypeError: unsupported type for timedelta seconds component: ydk_.types.YLeaf


See below my installed ydk.

pip list | grep ydk

ydk (0.7.0)

ydk-models-cisco-ios-xr (6.3.1)

ydk-models-ietf (0.1.4)

Is this because of the Cisco XRv version I am using ?

Is it possible to get the ydk for Cisco XRv 6.0.2?

Thanks,

Pratibha

1 Reply 1

abhirame
Cisco Employee
Cisco Employee

This is caused by the below open issue. It should be fixed soon:

YDK-Gen issue 604

To work around this, please make the below change in the hello world app

    str(timedelta(seconds = int(str(system_time.uptime.uptime)) )))