<?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 Python API errors in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/python-api-errors/m-p/5418902#M3131</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Still trying to run my first Python SDK API command, bou until now without sueccess. I'm confortable with postman Rest IP, but my focus is to make the shift &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="orgID.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262098i65D397DFD868F982/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt; to Python.&lt;/P&gt;&lt;P&gt;Please find below the error message I received while trying to run the SDK python script.&lt;/P&gt;&lt;P&gt;Any help is really welcome&lt;/P&gt;&lt;P&gt;Regrards,.&lt;/P&gt;&lt;P&gt;Bayet,&lt;/P&gt;</description>
    <pubDate>Sat, 11 May 2019 16:11:49 GMT</pubDate>
    <dc:creator>adamba</dc:creator>
    <dc:date>2019-05-11T16:11:49Z</dc:date>
    <item>
      <title>Python API errors</title>
      <link>https://community.cisco.com/t5/network-platform-api/python-api-errors/m-p/5418902#M3131</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Still trying to run my first Python SDK API command, bou until now without sueccess. I'm confortable with postman Rest IP, but my focus is to make the shift &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="orgID.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262098i65D397DFD868F982/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt; to Python.&lt;/P&gt;&lt;P&gt;Please find below the error message I received while trying to run the SDK python script.&lt;/P&gt;&lt;P&gt;Any help is really welcome&lt;/P&gt;&lt;P&gt;Regrards,.&lt;/P&gt;&lt;P&gt;Bayet,&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 16:11:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/python-api-errors/m-p/5418902#M3131</guid>
      <dc:creator>adamba</dc:creator>
      <dc:date>2019-05-11T16:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python API errors</title>
      <link>https://community.cisco.com/t5/network-platform-api/python-api-errors/m-p/5418903#M3132</link>
      <description>&lt;P&gt;This topic and the example code I posted there will probably help you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.meraki.com/t5/Solutions-APIs/Help-ModuleNotFoundError-PYTHON-SDK/m-p/45841?advanced=false&amp;amp;collapse_discussion=true&amp;amp;filter=location&amp;amp;location=category:meraki&amp;amp;q=Python%20sdk&amp;amp;search_type=thread" target="_self"&gt;https://community.meraki.com/t5/Solutions-APIs/Help-ModuleNotFoundError-PYTHON-SDK/m-p/45841?advanced=false&amp;amp;collapse_discussion=true&amp;amp;filter=location&amp;amp;location=category:meraki&amp;amp;q=Python%20sdk&amp;amp;search_type=thread&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 23:36:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/python-api-errors/m-p/5418903#M3132</guid>
      <dc:creator>BrechtSchamp</dc:creator>
      <dc:date>2019-05-11T23:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Python API errors</title>
      <link>https://community.cisco.com/t5/network-platform-api/python-api-errors/m-p/5418904#M3133</link>
      <description>&lt;P&gt;For whatever reason, it does not like Version 2 when I run the code. I changed it to run on Version 3 and it worked. &lt;/P&gt;&lt;P&gt;Using VSC and the code runner you are utilizing. Try running the following Commands to determine what version it is using to execute to script:&lt;/P&gt;&lt;PRE&gt;import sys
print(sys.version_info)&lt;/PRE&gt;&lt;P&gt;If you are using Code Runner on VSC, you want to add the following to the settings.json file:&lt;/P&gt;&lt;PRE&gt;"code-runner.executorMap": {
        "python": "&amp;lt;fully qualified path to version 3&amp;gt;"
 }&lt;/PRE&gt;&lt;P&gt;This will change the default python version for Code Runner to Version 3.&lt;/P&gt;&lt;P&gt;I usually use Atom and didn't have any problems. I installed VSC and tried it with Code Runner and immediately had issues. I had already pointed Atom to use python3, when I used other methods to run it on 2 I got the same error message.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 23:03:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/python-api-errors/m-p/5418904#M3133</guid>
      <dc:creator>rgm</dc:creator>
      <dc:date>2019-05-13T23:03:50Z</dc:date>
    </item>
  </channel>
</rss>

