cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
477
Views
4
Helpful
2
Replies

Error in executing openVulnQuery command

gvijendr
Cisco Employee
Cisco Employee

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


2 Replies 2

marmclau
Beginner
Beginner

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.

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.

Getting Started

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: