<?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: ModuleNotFoundError: No module named 'ydk.models._deviate._yang_ns in Tools</title>
    <link>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473449#M1350</link>
    <description>&lt;P&gt;Hi Yan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually I think I know what the issue is. Thank you again for the pointer&amp;nbsp; and the quick help.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 17:00:33 GMT</pubDate>
    <dc:creator>shreyash</dc:creator>
    <dc:date>2021-09-24T17:00:33Z</dc:date>
    <item>
      <title>ModuleNotFoundError: No module named 'ydk.models._deviate._yang_ns'</title>
      <link>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4472639#M1346</link>
      <description>&lt;P&gt;Hi I have a virtiual env with ydk 0.8.5.post2 installed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(rhel7-21.37.14) shreyash@arcee.cisco.com:~$ pip3 list | grep ydk
ydk                             0.8.5.post2 
ydk-models-cisco-ios-xr         7.5.1       
ydk-models-cisco-thinxr-install 6.5.1       
ydk-models-ietf                 0.1.5.post2 
ydk-models-openconfig           0.1.6.post1 
ydk-service-gnmi                0.4.0.post5 
&lt;/PRE&gt;
&lt;P&gt;While executing one of my test script, I encounter a following error:&lt;/P&gt;
&lt;PRE&gt;./../../cafykit/lib/topology/connection/ydkconnection.py:271: in read
    retval = self.crud.read(self.session, model)
/auto/cafy/release/21.37.14/rhel7-21.37.14/lib/python3.6/site-packages/ydk/services/crud_service.py:60: in read
    return _crud_read(provider, read_filter, False, self._crud.read)
/auto/cafy/release/21.37.14/rhel7-21.37.14/lib/python3.6/site-packages/ydk/services/crud_service.py:86: in _crud_read
    top_filters = _get_top_level_entity(filters, provider.get_session().get_root_schema())
/auto/cafy/release/21.37.14/rhel7-21.37.14/lib/python3.6/site-packages/ydk/entity_utils/entity_utils.py:230: in _get_top_level_entity
    return _datanode_to_entity(data_node)
/auto/cafy/release/21.37.14/rhel7-21.37.14/lib/python3.6/site-packages/ydk/entity_utils/entity_utils.py:79: in _datanode_to_entity
    yang_ns = importlib.import_module('ydk.models.{}._yang_ns'.format(name))
/usr/cisco/packages/python/python-3.6.7/lib/python3.6/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
&amp;lt;frozen importlib._bootstrap&amp;gt;:994: in _gcd_import
    ???
&amp;lt;frozen importlib._bootstrap&amp;gt;:971: in _find_and_load
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'ydk.models._deviate._yang_ns', import_ = &amp;lt;function _gcd_import at 0x2b657e0beea0&amp;gt;
&amp;gt;   ???
E   ModuleNotFoundError: No module named 'ydk.models._deviate._yang_ns'
 
&amp;lt;frozen importlib._bootstrap&amp;gt;:953: ModuleNotFoundError
===================================================================================== 1 error in 29.22 seconds ======================================================================================
terminate called after throwing an instance of 'pybind11::error_already_set'
  what():  TypeError: '&amp;gt;=' not supported between instances of 'int' and 'NoneType'
 &lt;/PRE&gt;
&lt;P&gt;Can someone please help me to understand if this package&amp;nbsp;'ydk.models._deviate._yang_ns' is expected to be there in 0.8.5&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 23:48:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4472639#M1346</guid>
      <dc:creator>shreyash</dc:creator>
      <dc:date>2021-09-23T23:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleNotFoundError: No module named 'ydk.models._deviate._yang_ns</title>
      <link>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4472645#M1347</link>
      <description>&lt;PRE&gt;(rhel7-21.37.14) shreyash@arcee.cisco.com:~$ pip3 list | grep pybind11
pybind11                        2.4.3    &lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Sep 2021 00:02:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4472645#M1347</guid>
      <dc:creator>shreyash</dc:creator>
      <dc:date>2021-09-24T00:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleNotFoundError: No module named 'ydk.models._deviate._yang_ns</title>
      <link>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473354#M1348</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;package&amp;nbsp;'ydk.models._deviate' is not a part of YDK 0.8.5. It used to be generated in 0.5.5 for deviations. I guess, you generated bundle for IOS XR 7.5.1 yourself and erroneously included deviation files. I suggest you remove all deviation files from the bundle profile and regenerate the bundle.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 14:57:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473354#M1348</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-09-24T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleNotFoundError: No module named 'ydk.models._deviate._yang_ns</title>
      <link>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473440#M1349</link>
      <description>&lt;P&gt;Hi Yan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your prompt response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a document or wiki that I can follow on how to remove specific files from the bundle profile and regenerate the bundle?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 16:52:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473440#M1349</guid>
      <dc:creator>shreyash</dc:creator>
      <dc:date>2021-09-24T16:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleNotFoundError: No module named 'ydk.models._deviate._yang_ns</title>
      <link>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473449#M1350</link>
      <description>&lt;P&gt;Hi Yan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually I think I know what the issue is. Thank you again for the pointer&amp;nbsp; and the quick help.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 17:00:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473449#M1350</guid>
      <dc:creator>shreyash</dc:creator>
      <dc:date>2021-09-24T17:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleNotFoundError: No module named 'ydk.models._deviate._yang_ns</title>
      <link>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473526#M1351</link>
      <description>&lt;P&gt;First, you can read the &lt;A href="https://github.com/ygorelik/ydk-gen/blob/master/profiles/README.md" target="_self"&gt;online documentation&lt;/A&gt; on how to build a profile and generate bundle. Second, you can follow ydk-gen &lt;A href="https://github.com/ygorelik/ydk-gen/blob/master/profiles/bundles/cisco-ios-xr_6_6_3_post1.json" target="_self"&gt;profile for XR 6.6.3&lt;/A&gt; as an example. Please keep in mind that for your specific test you might choose to include to the bundle only limited number of YANG models, which will significantly simply your work; just copy needed YANG files from repository to some temp directory and run 'pyang *' in that directory to make sure there no errors stating that some files are missing.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 18:06:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/modulenotfounderror-no-module-named-ydk-models-deviate-yang-ns/m-p/4473526#M1351</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-09-24T18:06:02Z</dc:date>
    </item>
  </channel>
</rss>

