Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error setting my API key #10

Open
ghost opened this issue Nov 17, 2016 · 5 comments
Open

Error setting my API key #10

ghost opened this issue Nov 17, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 17, 2016

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

@Paradoxis
Copy link

@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

@ghost
Copy link
Author

ghost commented Mar 10, 2017 via email

@ghost
Copy link
Author

ghost commented Mar 10, 2017 via email

@Paradoxis
Copy link

@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 :)

@ghost
Copy link
Author

ghost commented Mar 10, 2017 via email

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

No branches or pull requests

1 participant