PureStorage-OpenConnect / FlashStache

One-step configuration for automating array querying, storing the query results, and visualizing them with Grafana
Apache License 2.0
4 stars 0 forks source link

Import error on grafana_api_client #3

Closed bubthegreat closed 7 years ago

bubthegreat commented 7 years ago

grafana_api_client doesn't appear to exist in the modules that are currently installed.

It looks like a requirements file might be needed for this to configure properly on install.

Traceback (most recent call last):
  File "configure_grafana.py", line 5, in <module>
    from grafana_api_client import GrafanaClient, GrafanaClientError, GrafanaUnauthorizedError
ImportError: No module named grafana_api_client
bubthegreat commented 7 years ago

Further investigation shows that this is an issue where the "pip" command is defaulting to python3:

micheal.taylor@bubdev:~/FlashStache$ pip --version
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)
micheal.taylor@bubdev:~/FlashStache$ pip2 --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

We'll need the script to be more explicit when running pip so that it doesn't create dependency errors during install inadvertently by installing to the wrong python version.

bubthegreat commented 7 years ago

Duplicate of more explicit bug #4