set the PYTHONPATH variable to include the path to the ACI toolkit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2016 01:47 AM
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:
MatBook-Pro:samples mjovanovic$ python tutorial.py
Traceback (most recent call last):
File "tutorial.py", line 30, in <module>
from acitoolkit.acitoolkit import *
File "/Users/mjovanovic/acitoolkit/acitoolkit/__init__.py", line 31, in <module>
from .acisession import EventHandler, Login, Session, Subscriber # noqa
File "/Users/mjovanovic/acitoolkit/acitoolkit/acisession.py", line 46, in <module>
from six.moves.queue import Queue
ImportError: No module named queue
MatBook-Pro:samples mjovanovic$
PS. I have credentials.py in all the required folders.
- Labels:
-
ACI-toolkit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 07:36 AM - edited 07-12-2023 07:42 AM
Hi, it seems you are referencing this repo:
https://github.com/datacenter/acitoolkit/blob/master/samples/README.md
You may want to try uninstalling and then re-install using the setup.py
You can find the location of acitoolkit module by print(help(acitoolkit))
It's at the very end.
To set the PYTHONPATH variable, try these
(Mac) https://www.tutorialspoint.com/How-to-set-python-environment-variable-PYTHONPATH-on-Mac
(Windows) https://www.geeksforgeeks.org/pythonpath-environment-variable-in-python/
(Linux) https://www.tutorialspoint.com/How-to-set-python-environment-variable-PYTHONPATH-on-Linux
