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'
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:
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.
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.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: