<?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 set the PYTHONPATH variable to include the path to the ACI toolkit in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/set-the-pythonpath-variable-to-include-the-path-to-the-aci/m-p/3589985#M233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I had this defined before, and I got a new Mac, and now I cant remember how exactly I did it... basically what happens now when I enter the SAMPLES and try to run any of the .py, I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MatBook-Pro:samples mjovanovic$ python tutorial.py&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; File "tutorial.py", line 30, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from acitoolkit.acitoolkit import *&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; File "/Users/mjovanovic/acitoolkit/acitoolkit/__init__.py", line 31, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .acisession import EventHandler, Login, Session, Subscriber&amp;nbsp; # noqa&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; File "/Users/mjovanovic/acitoolkit/acitoolkit/acisession.py", line 46, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from six.moves.queue import Queue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;ImportError: No module named queue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MatBook-Pro:samples mjovanovic$ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I have credentials.py in all the required folders.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 08:47:48 GMT</pubDate>
    <dc:creator>mateja.jovanovic</dc:creator>
    <dc:date>2016-08-24T08:47:48Z</dc:date>
    <item>
      <title>set the PYTHONPATH variable to include the path to the ACI toolkit</title>
      <link>https://community.cisco.com/t5/controllers/set-the-pythonpath-variable-to-include-the-path-to-the-aci/m-p/3589985#M233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I had this defined before, and I got a new Mac, and now I cant remember how exactly I did it... basically what happens now when I enter the SAMPLES and try to run any of the .py, I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MatBook-Pro:samples mjovanovic$ python tutorial.py&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; File "tutorial.py", line 30, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from acitoolkit.acitoolkit import *&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; File "/Users/mjovanovic/acitoolkit/acitoolkit/__init__.py", line 31, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .acisession import EventHandler, Login, Session, Subscriber&amp;nbsp; # noqa&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; File "/Users/mjovanovic/acitoolkit/acitoolkit/acisession.py", line 46, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from six.moves.queue import Queue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;ImportError: No module named queue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;MatBook-Pro:samples mjovanovic$ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I have credentials.py in all the required folders.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 08:47:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/set-the-pythonpath-variable-to-include-the-path-to-the-aci/m-p/3589985#M233</guid>
      <dc:creator>mateja.jovanovic</dc:creator>
      <dc:date>2016-08-24T08:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: set the PYTHONPATH variable to include the path to the ACI toolkit</title>
      <link>https://community.cisco.com/t5/controllers/set-the-pythonpath-variable-to-include-the-path-to-the-aci/m-p/4872584#M3148</link>
      <description>&lt;P&gt;Hi, it seems you are referencing this repo:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/datacenter/acitoolkit/blob/master/samples/README.md" target="_blank" rel="noopener"&gt;https://github.com/datacenter/acitoolkit/blob/master/samples/README.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You may want to try uninstalling and then re-install using the setup.py&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find the location of acitoolkit module by print(help(acitoolkit))&lt;/P&gt;
&lt;P&gt;It's at the very end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To set the&amp;nbsp;PYTHONPATH variable, try these&lt;/P&gt;
&lt;P&gt;(Mac)&amp;nbsp;&lt;A href="https://www.tutorialspoint.com/How-to-set-python-environment-variable-PYTHONPATH-on-Mac" target="_blank" rel="noopener"&gt;https://www.tutorialspoint.com/How-to-set-python-environment-variable-PYTHONPATH-on-Mac&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(Windows)&amp;nbsp;&lt;A href="https://www.geeksforgeeks.org/pythonpath-environment-variable-in-python/" target="_blank" rel="noopener"&gt;https://www.geeksforgeeks.org/pythonpath-environment-variable-in-python/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(Linux)&amp;nbsp;&lt;A href="https://www.tutorialspoint.com/How-to-set-python-environment-variable-PYTHONPATH-on-Linux" target="_blank" rel="noopener"&gt;https://www.tutorialspoint.com/How-to-set-python-environment-variable-PYTHONPATH-on-Linux&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 14:42:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/set-the-pythonpath-variable-to-include-the-path-to-the-aci/m-p/4872584#M3148</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2023-07-12T14:42:17Z</dc:date>
    </item>
  </channel>
</rss>

