<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting in Tools</title>
    <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4389578#M1462</link>
    <description>&lt;P&gt;Here is the install log...&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 17:41:06 GMT</pubDate>
    <dc:creator>sclake</dc:creator>
    <dc:date>2021-04-19T17:41:06Z</dc:date>
    <item>
      <title>YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4188865#M1450</link>
      <description>&lt;P&gt;Problems executing python script in this specific lab of DEVASC training course, when you instantiate CRUDService() it fails with messages:&amp;nbsp;"TypeError: ydk_.services.CRUDService.__init__() must be called when overriding __init__" &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ive tried to make changes inside of the crud_service, executor_service and netconf_service python files as mentioned here&amp;nbsp;&lt;A href="https://github.com/ygorelik/ydk-gen/commit/2c53f5dc736d73064c03dc1c404982d1c9011d64" target="_blank"&gt;https://github.com/ygorelik/ydk-gen/commit/2c53f5dc736d73064c03dc1c404982d1c9011d64&lt;/A&gt;&amp;nbsp;actually the previous issue dissapear but now is showing issus related with the read method of the CRUDService object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The python script executed is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone knows which steps we have to take in account to make this script suscessfully work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 18:31:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4188865#M1450</guid>
      <dc:creator>Luis Perez</dc:creator>
      <dc:date>2020-11-25T18:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4188899#M1451</link>
      <description>&lt;P&gt;Hi Luis&lt;/P&gt;&lt;P&gt;When building model you must always start from the top level entity and keep in mind that container and list classes has already been instantiated in parent class. Your script should be:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;ydk.services &lt;SPAN&gt;import &lt;/SPAN&gt;CRUDService&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;ydk.providers &lt;SPAN&gt;import &lt;/SPAN&gt;NetconfServiceProvider&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;ydk.models.cisco_ios_xe &lt;SPAN&gt;import &lt;/SPAN&gt;Cisco_IOS_XE_native &lt;SPAN&gt;as &lt;/SPAN&gt;xe_model  # you had error in this line&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# CSR1kv1 Credentials&lt;BR /&gt;&lt;/SPAN&gt;ip = &lt;SPAN&gt;'10.0.0.20'&lt;BR /&gt;&lt;/SPAN&gt;port_n = &lt;SPAN&gt;830&lt;BR /&gt;&lt;/SPAN&gt;user = &lt;SPAN&gt;'cisco'&lt;BR /&gt;&lt;/SPAN&gt;paswd = &lt;SPAN&gt;'cisco'&lt;BR /&gt;&lt;/SPAN&gt;proto = &lt;SPAN&gt;'ssh'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;__name__ == &lt;SPAN&gt;'__main__'&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;# open the connection with Netconf server&lt;BR /&gt;&lt;/SPAN&gt;    provider = NetconfServiceProvider(&lt;SPAN&gt;address&lt;/SPAN&gt;=ip&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;port&lt;/SPAN&gt;=port_n&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;=user&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;password&lt;/SPAN&gt;=paswd&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;protocol&lt;/SPAN&gt;=proto)&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;# initialize CRUD Service&lt;BR /&gt;&lt;/SPAN&gt;    crud = CRUDService()&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;# create a new instance of Native object&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;    xe_native = xe_model.Native()  # always start from top level entity&lt;BR /&gt;    xe_interfaces = xe_native.interfaces  # object 'interfaces' has already been instantiated&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    # read the interfaces with the help of read function&lt;BR /&gt;&lt;/SPAN&gt;    interfaces_data = crud.read(provider&lt;SPAN&gt;, &lt;/SPAN&gt;xe_interfaces)&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;# print the primary address of the fifth gigabitethernet interface&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(interfaces_data.gigabitethernet[&lt;SPAN&gt;4&lt;/SPAN&gt;].ip.address.primary.address)&lt;BR /&gt;    &lt;SPAN&gt;exit&lt;/SPAN&gt;()&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Nov 2020 19:25:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4188899#M1451</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2020-11-25T19:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4189470#M1452</link>
      <description>&lt;P&gt;Have the same problem when &lt;SPAN&gt;initializing CRUDService:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Python 3.6.9 (default, Oct 8 2020, 12:12:24) &lt;BR /&gt;[GCC 8.4.0] on linux&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; from ydk.services import CRUDService&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; crud = CRUDService()&lt;BR /&gt;&lt;STRONG&gt;TypeError: ydk_.services.CRUDService.__init__() must be called when overriding __init__&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please your help to solve this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 23:20:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4189470#M1452</guid>
      <dc:creator>Joselion85</dc:creator>
      <dc:date>2020-11-26T23:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4189704#M1453</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ygorelik/ydk-gen/commit/2c53f5dc736d73064c03dc1c404982d1c9011d64" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/ygorelik/ydk-gen/commit/2c53f5dc736d73064c03dc1c404982d1c9011d64&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I made the changes inside of the crud_service.py file suggested and that solve the issue&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 13:41:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4189704#M1453</guid>
      <dc:creator>Luis Perez</dc:creator>
      <dc:date>2020-11-27T13:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4189707#M1454</link>
      <description>&lt;P&gt;Thanks Yan i tried again only modifying the crud_service.py file as mentioned here&amp;nbsp;&lt;A href="https://github.com/ygorelik/ydk-gen/commit/2c53f5dc736d73064c03dc1c404982d1c9011d64" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/ygorelik/ydk-gen/commit/2c53f5dc736d73064c03dc1c404982d1c9011d64&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and without any change in the code the scritp works as expected&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 13:43:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4189707#M1454</guid>
      <dc:creator>Luis Perez</dc:creator>
      <dc:date>2020-11-27T13:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4189813#M1455</link>
      <description>&lt;P&gt;Hello Luis and Jose&lt;BR /&gt;&lt;BR /&gt;Since the 0.8.5 merge to upstream (still officially not released) I have fixed few bugs including the above one. Therefore I suggest you to use master branch from my fork. The installation is very simple:&lt;BR /&gt;&lt;BR /&gt;git clone &lt;A href="https://github.com/ygorelik/ydk-gen.gitcd" target="_blank" rel="noopener"&gt;https://github.com/ygorelik/ydk-gen.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ygorelik/ydk-gen.gitcd" target="_blank" rel="noopener"&gt;cd&lt;/A&gt; ydk-gen&lt;/P&gt;&lt;P&gt;./install_ydk.sh --core&lt;BR /&gt;&lt;BR /&gt;For YDK test drive I suggest to use docker:&lt;BR /&gt;&lt;BR /&gt;docker run -it ydksolutions/ydk-gen&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 01:27:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4189813#M1455</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2020-11-28T01:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4387853#M1456</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;So I ran the docker container and i'm getting the same message:&lt;BR /&gt;&lt;BR /&gt;root@b66bf1398402:/ydk-practice# python3 nc-read-and-write.py 'ssh://admin:XXXXXXXX@10.201.164.21:830'&lt;BR /&gt;Establishing NETCONF connection to 10.201.164.21...&lt;BR /&gt;Reading NETCONF configuration from 10.201.164.21...&lt;BR /&gt;Segmentation fault&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just wondering if when the container is built, is it running the 0.8.5 version of ydk?&lt;/P&gt;
&lt;P&gt;I really want to run this from Docker.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the file i'm trying to run.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#!/usr/bin/env python&lt;BR /&gt;#exi&lt;BR /&gt;# Copyright 2016 Cisco Systems, Inc.&lt;BR /&gt;#&lt;BR /&gt;# Licensed under the Apache License, Version 2.0 (the "License");&lt;BR /&gt;# you may not use this file except in compliance with the License.&lt;BR /&gt;# You may obtain a copy of the License at&lt;BR /&gt;#&lt;BR /&gt;# &lt;A href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;BR /&gt;#&lt;BR /&gt;# Unless required by applicable law or agreed to in writing, software&lt;BR /&gt;# distributed under the License is distributed on an "AS IS" BASIS,&lt;BR /&gt;# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;BR /&gt;# See the License for the specific language governing permissions and&lt;BR /&gt;# limitations under the License.&lt;BR /&gt;#&lt;/P&gt;
&lt;P&gt;"""&lt;BR /&gt;Create configuration for model Cisco-IOS-XE-native.&lt;/P&gt;
&lt;P&gt;usage: nc-read-and-write.py [-h] [-v] ssh://cisco:cisco@10.62.149.173:22&lt;BR /&gt;python3 nc-read-and-write.py ssh://cisco:cisco@10.62.149.173:22&lt;/P&gt;
&lt;P&gt;positional arguments:&lt;BR /&gt;device NETCONF device (ssh://user:password@host:port)&lt;BR /&gt;&lt;BR /&gt;example device: ssh://developer:C1sco12345@ios-xe-mgmt.cisco.com:10000&lt;/P&gt;
&lt;P&gt;optional arguments:&lt;BR /&gt;-h, --help show this help message and exit&lt;BR /&gt;-v, --verbose print debugging messages&lt;BR /&gt;"""&lt;/P&gt;
&lt;P&gt;from argparse import ArgumentParser&lt;BR /&gt;from urllib.parse import urlparse&lt;/P&gt;
&lt;P&gt;from ydk.services import CRUDService, CodecService&lt;BR /&gt;from ydk.providers import NetconfServiceProvider, CodecServiceProvider&lt;BR /&gt;from ydk.models.cisco_ios_xe import Cisco_IOS_XE_native \&lt;BR /&gt;as xe_native&lt;BR /&gt;import logging&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;def config_native(native):&lt;BR /&gt;"""&lt;BR /&gt;Add config data to native object.&lt;BR /&gt;Loop through interfaces and set their description to 'DESCRIPTION SET BY YDK'&lt;BR /&gt;"""&lt;BR /&gt;print("Loop through Loopback and GigabitEthernet interfaces in current configuration and change their interface descriptions to 'DESCRIPTION SET BY YDK'...\n")&lt;BR /&gt;for loopback in native.interface.loopback:&lt;BR /&gt;loopback.description = "DESCRIPTION SET BY YDK"&lt;BR /&gt;&lt;BR /&gt;for gigabitethernet in native.interface.gigabitethernet:&lt;BR /&gt;gigabitethernet.description = "DESCRIPTION SET BY YDK"&lt;/P&gt;
&lt;P&gt;# The following code can be uncommented and used to change the description on all interfaces&lt;BR /&gt;# regardless of interface type by looping through child entities of the native.interface entity.&lt;/P&gt;
&lt;P&gt;# interface_children = native.interface.get_children()&lt;/P&gt;
&lt;P&gt;# for entity_path in interface_children:&lt;BR /&gt;# interface = interface_children[entity_path]&lt;BR /&gt;# if( hasattr(interface, 'description') &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;# interface.description = "DESCRIPTION SET BY YDK"&lt;/P&gt;
&lt;P&gt;if __name__ == "__main__":&lt;BR /&gt;"""Execute main program."""&lt;BR /&gt;parser = ArgumentParser()&lt;BR /&gt;parser.add_argument("-v", "--verbose", help="print debugging messages",&lt;BR /&gt;action="store_true")&lt;BR /&gt;parser.add_argument("device",&lt;BR /&gt;help="NETCONF device (ssh://user:password@host:port)")&lt;BR /&gt;args = parser.parse_args()&lt;BR /&gt;device = urlparse(args.device)&lt;/P&gt;
&lt;P&gt;# log debug messages if verbose argument specified&lt;BR /&gt;if args.verbose:&lt;BR /&gt;logger = logging.getLogger("ydk")&lt;BR /&gt;logger.setLevel(logging.INFO)&lt;BR /&gt;handler = logging.StreamHandler()&lt;BR /&gt;formatter = logging.Formatter(("%(asctime)s - %(name)s - "&lt;BR /&gt;"%(levelname)s - %(message)s"))&lt;BR /&gt;handler.setFormatter(formatter)&lt;BR /&gt;logger.addHandler(handler)&lt;/P&gt;
&lt;P&gt;# create NETCONF provider&lt;BR /&gt;print("Establishing NETCONF connection to " + device.hostname + "...\n")&lt;BR /&gt;nc_provider = NetconfServiceProvider(address=device.hostname,&lt;BR /&gt;port=device.port,&lt;BR /&gt;username=device.username,&lt;BR /&gt;password=device.password,&lt;BR /&gt;protocol=device.scheme)&lt;BR /&gt;# nc_provider = NetconfServiceProvider(address='10.201.164.21',&lt;BR /&gt;# port='830',&lt;BR /&gt;# username='admin',&lt;BR /&gt;# password='xxxxxxxx',&lt;BR /&gt;# protocol='')&lt;BR /&gt;# create CRUD service&lt;BR /&gt;crud = CRUDService()&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;native = xe_native.Native() # create object&lt;/P&gt;
&lt;P&gt;# read data from NETCONF device&lt;BR /&gt;print("Reading NETCONF configuration from " + device.hostname + "...\n")&lt;BR /&gt;native = crud.read(nc_provider, native)&lt;BR /&gt;print("Configuration successfully captured!\n")&lt;/P&gt;
&lt;P&gt;# create codec provider&lt;BR /&gt;codec_provider = CodecServiceProvider(type="xml")&lt;BR /&gt;# create codec service&lt;BR /&gt;codec = CodecService()&lt;/P&gt;
&lt;P&gt;print("Printing current XML configuration for " + device.hostname + " and saving to " + device.hostname + "_before.xml ...\n")&lt;BR /&gt;print(codec.encode(codec_provider, native))&lt;/P&gt;
&lt;P&gt;# save current configuration to hostname_before.xml&lt;BR /&gt;with open(device.hostname + "_before.xml", "w") as output_file:&lt;BR /&gt;output_file.write(codec.encode(codec_provider, native))&lt;/P&gt;
&lt;P&gt;# change configuration in native object&lt;BR /&gt;config_native(native) # add object configuration&lt;/P&gt;
&lt;P&gt;print("Printing updated XML configuration for " + device.hostname + " and saving to " + device.hostname + "_after.xml ...\n")&lt;BR /&gt;print(codec.encode(codec_provider, native))&lt;/P&gt;
&lt;P&gt;# save current configuration to hostname_before.xml&lt;BR /&gt;with open(device.hostname + "_after.xml", "w") as output_file:&lt;BR /&gt;output_file.write(codec.encode(codec_provider, native))&lt;/P&gt;
&lt;P&gt;# update configuration on NETCONF device&lt;BR /&gt;print("Writing updated NETCONF configuration to " + device.hostname + "...\n")&lt;BR /&gt;crud.update(nc_provider, native)&lt;BR /&gt;print("Configuration successfully updated!\n")&lt;/P&gt;
&lt;P&gt;exit()&lt;BR /&gt;# End of script&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 01:05:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4387853#M1456</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-16T01:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4388577#M1457</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;Since I couldn't get the docker install to work, i followed the instructions above to install this in a new ubuntu bionic vm.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm still getting the TypeError above unfortunately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sclake@bionic_ydk:~/shares/ydk-practice$ &lt;BR /&gt;e/nc-read-and-write.py 'ssh://admin:cisco!123@10.201.164.21:830'ares/ydk-practice&lt;BR /&gt;&lt;BR /&gt;Establishing NETCONF connection to 10.201.164.21...&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/sclake/shares/ydk-practice/nc-read-and-write.py", line 99, in &amp;lt;module&amp;gt;&lt;BR /&gt;crud = CRUDService()&lt;BR /&gt;TypeError: ydk_.services.CRUDService.__init__() must be called when overriding __init__&lt;BR /&gt;sclake@bionic_ydk:~/shares/ydk-practice$ &lt;BR /&gt;e/nc-read-and-write.py 'ssh://admin:cisco!123@10.201.164.21:830'ares/ydk-practice&lt;BR /&gt;Establishing NETCONF connection to 10.201.164.21...&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/sclake/shares/ydk-practice/nc-read-and-write.py", line 99, in &amp;lt;module&amp;gt;&lt;BR /&gt;crud = CRUDService()&lt;BR /&gt;TypeError: ydk_.services.CRUDService.__init__() must be called when overriding __init__&lt;BR /&gt;sclake@bionic_ydk:~/shares/ydk-practice$&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did get some error messages when i installed the models, which i am including below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The read-and-write.py script is in my original comment below when i tried to get it working in Docker.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 18:21:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4388577#M1457</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-16T18:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4388634#M1458</link>
      <description>&lt;P&gt;Hello guys&lt;/P&gt;&lt;P&gt;I followed above suggested YDK docker installation and ran your script on Cisco XE sandbox with no errors. To be exact, I only commented out CRUD update operation as it is not allowed to do changes on the sandbox. Please see attached console output that includes all the operations from YDK docker image installation to Python script run results.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 22:17:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4388634#M1458</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-04-16T22:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4388641#M1459</link>
      <description>&lt;P&gt;So the only thing i'm noticing here is that I'm on docker for windows and you're running the docker run command under linux.&amp;nbsp; Since I'm still getting the "segmentation fault" when executing the docker run command on windows (power shell prompt), I wonder if that is the cause?&amp;nbsp; &amp;nbsp;Even so, I still got the Typeerror issue running ydk directly on bionic under vmware workstation pro.&amp;nbsp; So the only thing left here is for me to run the container in under linux i'm guessing, right?&amp;nbsp; The thing is that with running ydk under docker or a vm, i can still get access to the host hard drive for my scripts.&amp;nbsp; Not sure if i can do that if running docker under ubuntu under vmware workstation pro(?).&amp;nbsp; Thanks for taking a look. Scott.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;root@013b04f371be:/ydk-practice# python3 nc-read-and-write.py 'ssh://admin:cisco!123@10.201.164.21:830'&lt;BR /&gt;Establishing NETCONF connection to 10.201.164.21...&lt;BR /&gt;&lt;BR /&gt;Reading NETCONF configuration from 10.201.164.21...&lt;BR /&gt;&lt;BR /&gt;Segmentation fault&lt;BR /&gt;root@013b04f371be:/ydk-practice# ssh admin@10.201.164.21 -p 830&lt;BR /&gt;The authenticity of host '[10.201.164.21]:830 ([10.201.164.21]:830)' can't be established.&lt;BR /&gt;RSA key fingerprint is SHA256:xnlTMXQGFy8flo0UY/tdGsYXW7LkMd/l4yWtgqDQi68.&lt;BR /&gt;Are you sure you want to continue connecting (yes/no)? yes&lt;BR /&gt;Warning: Permanently added '[10.201.164.21]:830' (RSA) to the list of known hosts.&lt;BR /&gt;admin@10.201.164.21's password: &lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;&lt;BR /&gt;&amp;lt;capabilities&amp;gt;&lt;BR /&gt;&amp;lt;capability&amp;gt;urn:ietf:params:netconf:base:1.0&amp;lt;/capability&amp;gt;&lt;BR /&gt;&amp;lt;capability&amp;gt;urn:ietf:params:netconf:base:1.1&amp;lt;/capability&amp;gt;&lt;BR /&gt;&amp;lt;capability&amp;gt;urn:ietf:params:netconf:capability:writable-running:1.0&amp;lt;/capability&amp;gt;&lt;BR /&gt;&amp;lt;capability&amp;gt;urn:ietf:params:netconf:capability:rollback-on-error:1.0&amp;lt;/capability&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Apr 2021 22:51:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4388641#M1459</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-16T22:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4388825#M1460</link>
      <description>&lt;P&gt;Hi Scott&lt;/P&gt;&lt;P&gt;Honestly, I've never tried to run YDK application under Windows platform. Currently it is not supported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The docker use under Windows is limited and somewhat artificial, because the Docker was designed to run under Linux as it uses Linux kernel. Therefore the best way to work on Windows PC is to use Linux virtual machine. Nevertheless, I have to notice that Jacky managed to run YDK under Windows-10 WSL Ubuntu-18.04 (see &lt;A href="https://community.cisco.com/t5/yang-tools/ydk-installation-issue-in-win10-subsystem-ubuntu-20-04/m-p/4387915#M1973" target="_self"&gt;this&lt;/A&gt; discussion).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Very important!&lt;/STRONG&gt; Unfortunately the CiscoDevNet repository for YDK is now out of sync, therefore please clone YDK from my fork as suggested above. That is proven to work fine and I continue maintain that repository. Repeating here the installation procedure:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;From source&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;git clone &lt;A href="https://github.com/ygorelik/ydk-gen.gitcd" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/ygorelik/ydk-gen.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ygorelik/ydk-gen.gitcd" target="_blank" rel="noopener nofollow noreferrer"&gt;cd&lt;/A&gt; ydk-gen&lt;/P&gt;&lt;P&gt;./install_ydk.sh --core&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Docker (Ubuntu-18.04)&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;docker run -it ydksolutions/ydk-gen&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 16:26:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4388825#M1460</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-04-17T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4389572#M1461</link>
      <description>&lt;P&gt;Yan,&lt;/P&gt;
&lt;P&gt;Decided to see if i could replicate Jacky's experience and install in wsl2 ubuntu 20.04 (which is what i originally installed on wsl2; if it is determined that 20.04 will not support ydk, then i will go ahead and reconfigure wsl2 to also support 18.04 and try that).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There were no installation issues as far as i could tell but this is where i'm at now below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Scott&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(venv) sclake@SCLAKE-R4PQT:/mnt/c/Users/sclake/Dropbox/ipvzero/ydk-practice$ python3 /mnt/c/Users/sclake/Dropbox/ipvzero/ydk-practice/nc-read-and-write.py 'ssh://cisco:cisco!123@10.62.149.176:830'
Establishing NETCONF connection to 10.62.149.176...

Reading NETCONF configuration from 10.62.149.176...

Traceback (most recent call last):
File "/mnt/c/Users/sclake/Dropbox/ipvzero/ydk-practice/nc-read-and-write.py", line 106, in &amp;lt;module&amp;gt;
native = crud.read(nc_provider, native)
File "/home/sclake/venv/lib/python3.8/site-packages/ydk/services/crud_service.py", line 60, in read
return _crud_read(provider, read_filter, False, self._crud.read)
File "/home/sclake/venv/lib/python3.8/site-packages/ydk/services/crud_service.py", line 88, in _crud_read
read_top_entity = crud_call(provider, top_filters)
File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/home/sclake/venv/lib/python3.8/site-packages/ydk/errors/error_handler.py", line 82, in handle_runtime_error
_raise(_exc)
File "/home/sclake/venv/lib/python3.8/site-packages/ydk/errors/error_handler.py", line 54, in _raise
exec("raise exc from None")
File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
ydk.errors.YInvalidArgumentError: Path is invalid: Cisco-IOS-XE-native:native
(venv) sclake@SCLAKE-R4PQT:/mnt/c/Users/sclake/Dropbox/ipvzero/ydk-practice$ pip list
Package Version
----------------------- ------------
alabaster 0.7.12
Babel 2.9.0
docutils 0.17.1
gitdb2 2.0.6
GitPython 2.1.15
imagesize 1.2.0
Jinja2 2.11.3
MarkupSafe 1.1.1
packaging 20.8
pip 20.0.2
pkg-resources 0.0.0
pyang 1.6
pybind11 2.2.2
Pygments 2.8.1
pyparsing 2.4.7
pytz 2021.1
rstr 2.2.6
setuptools 44.0.0
six 1.15.0
smmap 4.0.0
smmap2 3.0.1
snowballstemmer 2.1.0
Sphinx 1.4a1
sphinx-rtd-theme 0.1.9
wheel 0.34.2
ydk 0.8.5.post1
ydk-models-cisco-ios-xe 16.9.3.post1
ydk-models-ietf 0.1.5.post2
(venv) sclake@SCLAKE-R4PQT:/mnt/c/Users/sclake/Dropbox/ipvzero/ydk-practice$&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Apr 2021 17:33:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4389572#M1461</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-19T17:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4389578#M1462</link>
      <description>&lt;P&gt;Here is the install log...&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 17:41:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4389578#M1462</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-19T17:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4390175#M1463</link>
      <description>&lt;P&gt;Yan,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I wanted to clarify something here.&amp;nbsp; My understanding is that docker for windows is dependent on the linux installation in WSL2.&amp;nbsp; Thus, when you say YDK is not supported on docker for windows, this implies that it is also not supported under WSL2 (however, some engineers have had success installing and running ydk it under ubuntu 18.04).&amp;nbsp; Just for my own understanding, why is the ydk library and other supporting functions so dependent on linux in a vm when it seems that MSFT is offering WSL2 is a solution that is directly comparable to a linux vm, like-for-like.&amp;nbsp; Are we saying that wsl2 is not a qualified linux virtualization solution because they have not replicated the linux kernel functionality as well as vmware/vagrant?&amp;nbsp; Personally, I am tied to windows 10 for the foreseeable future and the docker/wsl2 solution is by far less resource intensive on my laptop than running a vm, so i'm extremely interested in pursuing the docker-over-wsl2 method of supporting my development activities.&lt;/P&gt;
&lt;P&gt;Scott.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 15:20:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4390175#M1463</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-20T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4390466#M1464</link>
      <description>&lt;P&gt;Hi Scott&lt;/P&gt;&lt;P&gt;What I meant is that YDK has never been certified on WSL2 platform. If you could make it work, great! Please share the details of YDK installation with community. I am sure, it will be greatly appreciated by multiple YDK users.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 04:01:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4390466#M1464</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-04-21T04:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4392321#M1465</link>
      <description>&lt;P&gt;Yan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok let's continue to troubleshoot the installation of iosxe model and why ydk can't find it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a list of all installed packages in the venv:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sclake@SCLAKE-R4PQT:~/venv/bin$ source /home/sclake/venv/bin/activate&lt;BR /&gt;(venv) sclake@SCLAKE-R4PQT:~/venv/bin$ python3 -m pip show ydk-models-cisco-ios-xe&lt;BR /&gt;Name: ydk-models-cisco-ios-xe&lt;BR /&gt;Version: 16.9.3.post1&lt;BR /&gt;Summary: YDK bundle for Cisco IOS XE models&lt;BR /&gt;Home-page: https://github.com/CiscoDevNet/ydk-py&lt;BR /&gt;Author: Cisco Systems&lt;BR /&gt;Author-email: yang-dk@cisco.com&lt;BR /&gt;License: Apache 2.0&lt;BR /&gt;Location: /home/sclake/venv/lib/python3.8/site-packages&lt;BR /&gt;Requires: ydk-models-ietf, ydk&lt;BR /&gt;Required-by:&lt;BR /&gt;(venv) sclake@SCLAKE-R4PQT:~/venv/bin$ python3 -m pip show ydk-models-ietf&lt;BR /&gt;Name: ydk-models-ietf&lt;BR /&gt;Version: 0.1.5.post2&lt;BR /&gt;Summary: YDK bundle for IETF models&lt;BR /&gt;Home-page: https://github.com/CiscoDevNet/ydk-py&lt;BR /&gt;Author: Cisco Systems&lt;BR /&gt;Author-email: yang-dk@cisco.com&lt;BR /&gt;License: Apache 2.0&lt;BR /&gt;Location: /home/sclake/venv/lib/python3.8/site-packages&lt;BR /&gt;Requires: ydk&lt;BR /&gt;Required-by: ydk-models-cisco-ios-xe&lt;BR /&gt;(venv) sclake@SCLAKE-R4PQT:~/venv/bin$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(venv) sclake@SCLAKE-R4PQT:~/venv/lib/python3.8$ cd site-packages&lt;BR /&gt;(venv) sclake@SCLAKE-R4PQT:~/venv/lib/python3.8/site-packages$ ll&lt;BR /&gt;total 6228&lt;BR /&gt;drwxr-xr-x 53 sclake sclake 4096 Apr 19 10:11 ./&lt;BR /&gt;drwxr-xr-x 3 sclake sclake 4096 Apr 19 09:19 ../&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 Babel-2.9.0.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 GitPython-2.1.15.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 Jinja2-2.11.3.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 MarkupSafe-1.1.1.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 Pygments-2.8.1.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 Sphinx-1.4a1.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 __pycache__/&lt;BR /&gt;drwxr-xr-x 4 sclake sclake 4096 Apr 19 09:20 alabaster/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 alabaster-0.7.12.dist-info/&lt;BR /&gt;drwxr-xr-x 6 sclake sclake 4096 Apr 19 09:20 babel/&lt;BR /&gt;drwxr-xr-x 9 sclake sclake 4096 Apr 19 09:20 docutils/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 docutils-0.17.1.dist-info/&lt;BR /&gt;-rw-r--r-- 1 sclake sclake 126 Apr 19 09:20 easy_install.py&lt;BR /&gt;drwxr-xr-x 8 sclake sclake 4096 Apr 19 09:20 git/&lt;BR /&gt;drwxr-xr-x 6 sclake sclake 4096 Apr 19 09:20 gitdb/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 gitdb2-2.0.6.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 imagesize-1.2.0.dist-info/&lt;BR /&gt;-rw-r--r-- 1 sclake sclake 11464 Apr 19 09:20 imagesize.py&lt;BR /&gt;drwxr-xr-x 3 sclake sclake 4096 Apr 19 09:20 jinja2/&lt;BR /&gt;drwxr-xr-x 3 sclake sclake 4096 Apr 19 09:20 markupsafe/&lt;BR /&gt;drwxr-xr-x 3 sclake sclake 4096 Apr 19 09:20 packaging/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 packaging-20.8.dist-info/&lt;BR /&gt;drwxr-xr-x 5 sclake sclake 4096 Apr 19 09:20 pip/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 pip-20.0.2.dist-info/&lt;BR /&gt;drwxr-xr-x 5 sclake sclake 4096 Apr 19 09:20 pkg_resources/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 pkg_resources-0.0.0.dist-info/&lt;BR /&gt;drwxr-xr-x 5 sclake sclake 4096 Apr 19 09:20 pyang/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 pyang-1.6.dist-info/&lt;BR /&gt;drwxr-xr-x 3 sclake sclake 4096 Apr 19 09:20 pybind11/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 pybind11-2.2.2.dist-info/&lt;BR /&gt;drwxr-xr-x 7 sclake sclake 4096 Apr 19 09:20 pygments/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 pyparsing-2.4.7.dist-info/&lt;BR /&gt;-rw-r--r-- 1 sclake sclake 273365 Apr 19 09:20 pyparsing.py&lt;BR /&gt;drwxr-xr-x 4 sclake sclake 4096 Apr 19 09:20 pytz/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 pytz-2021.1.dist-info/&lt;BR /&gt;drwxr-xr-x 4 sclake sclake 4096 Apr 19 09:20 rstr/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 rstr-2.2.6.dist-info/&lt;BR /&gt;drwxr-xr-x 6 sclake sclake 4096 Apr 19 09:20 setuptools/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 setuptools-44.0.0.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 six-1.15.0.dist-info/&lt;BR /&gt;-rw-r--r-- 1 sclake sclake 34159 Apr 19 09:20 six.py&lt;BR /&gt;drwxr-xr-x 4 sclake sclake 4096 Apr 19 09:20 smmap/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 smmap-4.0.0.dist-info/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 smmap2-3.0.1.dist-info/&lt;BR /&gt;drwxr-xr-x 3 sclake sclake 4096 Apr 19 09:20 snowballstemmer/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 snowballstemmer-2.1.0.dist-info/&lt;BR /&gt;drwxr-xr-x 15 sclake sclake 4096 Apr 19 09:20 sphinx/&lt;BR /&gt;drwxr-xr-x 4 sclake sclake 4096 Apr 19 09:20 sphinx_rtd_theme/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 sphinx_rtd_theme-0.1.9.dist-info/&lt;BR /&gt;drwxr-xr-x 4 sclake sclake 4096 Apr 19 09:20 wheel/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:20 wheel-0.34.2.dist-info/&lt;BR /&gt;drwxr-xr-x 14 sclake sclake 4096 Apr 19 09:28 ydk/&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 09:28 ydk-0.8.5.post1.dist-info/&lt;BR /&gt;-rwxr-xr-x 1 sclake sclake 5822144 Apr 19 09:28 ydk_.so*&lt;BR /&gt;-rw-r--r-- 1 sclake sclake 1656 Apr 19 10:11 ydk_models_cisco_ios_xe-16.9.3.post1-nspkg.pth&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 10:11 ydk_models_cisco_ios_xe-16.9.3.post1.dist-info/&lt;BR /&gt;-rw-r--r-- 1 sclake sclake 1656 Apr 19 10:11 ydk_models_ietf-0.1.5.post2-nspkg.pth&lt;BR /&gt;drwxr-xr-x 2 sclake sclake 4096 Apr 19 10:11 ydk_models_ietf-0.1.5.post2.dist-info/&lt;BR /&gt;(venv) sclake@SCLAKE-R4PQT:~/venv/lib/python3.8/site-packages$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the error repeated from above...&lt;/P&gt;
&lt;PRE&gt;ydk.errors.YInvalidArgumentError: Path is invalid: Cisco-IOS-XE-native:native
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the question here is what is the expected path for the models?&amp;nbsp; Seems to me that everything is in order here.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Scott.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 18:07:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4392321#M1465</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-23T18:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4394472#M1466</link>
      <description>&lt;P&gt;Any ideas on the above issue Yan?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This doesn't sound like a WSL-related error.&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp; Scott.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 03:06:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4394472#M1466</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-28T03:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4394932#M1467</link>
      <description>&lt;P&gt;Hi Scott&lt;/P&gt;&lt;P&gt;I have tested the latest YDK on WSL Ubuntu-18.04 and 20.04. I was using Ubuntu images from Microsoft Store. In both installations the YDK worked fine. I tested them on CiscoDevNet XR and XE sandboxes and did not find any issues. I would assume that there are some issues with your script (installation looks fine to me). Could you please share the script for further troubleshooting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 16:28:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4394932#M1467</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-04-28T16:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4395841#M1468</link>
      <description>&lt;P&gt;Hi Yan,&lt;/P&gt;
&lt;P&gt;So the script is copied verbatim out of the ydk-samples repo but regardless, i ran it against the XE Sandbox from my Ubuntu 20.04 on WSL2 and it worked fine.&amp;nbsp; For some reason the Autopods are locked out tonight so when they come back online, i will test against a few other systems and see if i can replicate my success.&amp;nbsp; At least we have a reference case now.&amp;nbsp; I'll let you know what happens.&lt;/P&gt;
&lt;P&gt;Thanks for getting back to me on this.&amp;nbsp; It is important!&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Scott.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 04:29:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4395841#M1468</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-30T04:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: YDK issues Lab 10.8 DEVASC ELearning Training Use Cisco SDK and Python for Automation Scripting</title>
      <link>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4396284#M1469</link>
      <description>&lt;P&gt;Hi Yan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok so i tried to run the exact same script against some physical iosxe systems and pretty much got 3 different error responses.&amp;nbsp; I have attached the session log which shows the execution of the python command against the physical systems along with the same command pointed towards the sandbox.&amp;nbsp; I also included the sh ver and show netconf-yang status command output. I also executed an ssh to port 830 and it was successful each time responding with the capabilities from each of the 3 phy systems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;None of the error conditions triggered on not finding the ios-xe ydk model, which is the last error i left off with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, the script is in this thread and like I mentioned previously, downloaded and not modified from the ydk-samples repo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much for your continued help on this!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Scott.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 18:44:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ydk-issues-lab-10-8-devasc-elearning-training-use-cisco-sdk-and/m-p/4396284#M1469</guid>
      <dc:creator>sclake</dc:creator>
      <dc:date>2021-04-30T18:44:01Z</dc:date>
    </item>
  </channel>
</rss>

