virustotal icon indicating copy to clipboard operation
virustotal copied to clipboard

Error setting my API key

Open ghost opened this issue 7 years ago • 5 comments

Hi,

I see the error below when executing the second command to set my API key. Do you know how I can get past this error please?

Python 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import virustotal
>>> v = virustotal.VirusTotal(MY_API_KEY)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'MY_API_KEY' is not defined
>>>

Thanks for your help

ghost avatar Nov 17 '16 22:11 ghost

@raveydaveygravy You haven't defined a variable called MY_API_KEY ( MY_API_KEY="" ), it would be wise to learn the basics before you start using public libraries

Paradoxis avatar Mar 10 '17 13:03 Paradoxis

Don't worry about it, I found something else to use ;)

On Mar 10, 2017, at 7:43 AM, Luke Paris [email protected] wrote:

@raveydaveygravy You haven't defined a variable called MY_API_KEY ( MY_API_KEY="" ), it would be wise to learn the basics before you start using public libraries

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ghost avatar Mar 10 '17 17:03 ghost

Do you think your reply constitutes the sharing of wisdom?

On Mar 10, 2017, at 7:43 AM, Luke Paris [email protected] wrote:

@raveydaveygravy You haven't defined a variable called MY_API_KEY ( MY_API_KEY="" ), it would be wise to learn the basics before you start using public libraries

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ghost avatar Mar 10 '17 17:03 ghost

@raveydaveygravy just trying to help resolve the issue, you seemed to not get past the undefined variable part so I offered a few words to help you get past it :)

Paradoxis avatar Mar 10 '17 19:03 Paradoxis

Cool. Thanks for getting back to me

On Mar 10, 2017, at 1:52 PM, Luke Paris [email protected] wrote:

@raveydaveygravy just trying to help resolve the issue, you seemed to not get past the undefined variable part so I offered a few words to help you get past it :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ghost avatar Mar 10 '17 22:03 ghost