1

I'm getting this error, I have been working to make it work but i can't. I followed the instructions on setting up the API_KEY value:

Traceback (most recent call last): File "tweets", line 25, in tweets = helpers.get_user_timeline(screen_name, 50) File "/home/ubuntu/workspace/pset6/sentiments/helpers.py", line 46, in get_user_timeline raise RuntimeError("API_KEY not set") RuntimeError: API_KEY not set

Here is my tweets code:

[code hidden]

4

Make sure you're running flask in the same terminal window in which you exported the keys.

| improve this answer | |
  • How would one have figured this out? It seems like an obscure detail, hard to find online. – John Quinn Nov 21 '17 at 14:47
  • Hahahaha 😂 It was on a hunch that I tried it and it worked up which i then figured it made sense! – Karthik Krishnan Nov 22 '17 at 16:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .