nccgroup/aws-inventory

Issue with Dependency

deveddev opened this issue · 2 comments

I have installed the requests dependency via pip but the program is not locating it.

After running: python aws_inventory.py

this error is received

Traceback (most recent call last):
File "aws_inventory.py", line 11, in
import aws_inventory.invoker
File "/Users/edwarddevitt/Desktop/aws-inventory-master/aws_inventory/invoker.py", line 8, in
from opinel.utils.credentials import read_creds
File "/Library/Python/2.7/site-packages/opinel/utils/credentials.py", line 11, in
import requests # TODO: get rid of that and make sure urllib2 validates certs ?
ImportError: No module named requests

The strange part is that I have already installed requests.

How did you install the requirements for this tool? The recommended way as shown in the README is pip install -r requirements.txt. That should install all dependencies.

You can quickly test if the requests package is installed with something like: python -c import requests. If there is no exception, then it is installed.

Hi there. Did the suggestion from @bitsandsalsa resolve this issue? Please let me know.