10-16-2017 04:12 PM
Hi,
I am using python3 and issue the below query but getting the below error. Any idea where could be the issue ?
$openVulnQuery --config Users/guruprasadvijendra/anaconda3/credentials.json --cvrf --year 2016 --csv /Users/guruprasadvijendra/anaconda3/allpsirt.csv
ModuleNotFoundError: No module named 'config'
Thx
10-17-2017 08:49 AM
Hi,
By default, the credentials are in a file named config.py that has the format:
CLIENT_ID = "xxxxxxxxxxx"
CLIENT_SECRET = "XXXXXXXXXXXX"
REQUEST_TOKEN_URL = "https://cloudsso.cisco.com/as/token.oauth2"
API_URL = "https://api.cisco.com/security/advisories"
I simply have the config.py in my site packages directory:
/Library/Python/2.7/site-packages/openVulnQuery/
Try renaming the json to .py. It that doesn't work, let me know the version of the API you are using and I'll dig into it.
10-17-2017 02:59 PM
Thanks, I observed this issue was due to the fact that I was using Python 3.6. When i installed the missing modules, the queries are working fine.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide