Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Python cannot find "requests" module #35

Closed
sergejgoldstein opened this issue Oct 16, 2019 · 2 comments
Closed

Python cannot find "requests" module #35

sergejgoldstein opened this issue Oct 16, 2019 · 2 comments

Comments

@sergejgoldstein
Copy link

I downloaded the repo, unzipped to an empty directory, CDed to the directory that had the az2tf.sh script, and issued the following command:

./az2tf.sh -s mysubsciptionid -g mygroupdname -v yes

I got:
Subscription ID = myssubscriptionid
Azure Resource Group Filter = mygroupsname
Terraform Resource Type Filter =
Get Subscription Policies & RBAC = no
Extract Key Vault Secrets to .tf files (insecure) = no
Fast Forward = no
Validate Only = yes
Debug = no

python2.7 ../../scripts/az2tf.py -s 3fde759f-01ac-48dd-b16b-885608b2be16 -g wase 2>&1 | tee -a import.log
Traceback (most recent call last):
File "../../scripts/az2tf.py", line 4, in
import requests
ImportError: No module named requests
ImportError: No module named requests
Error in az2tf.py

@sergejgoldstein sergejgoldstein changed the title Python cannot find az2tf.py script Python cannot find "requests" module Oct 16, 2019
@andyt530
Copy link
Owner

pip install requests

and try again

@jrgeorge40
Copy link

jrgeorge40 commented Oct 16, 2019

Still have the issue as well even after the pip install requests

Edit: It was using a newer version of Python for me. Once fixed, I got past this issue. Will post the next one I ran into.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants