DEV Community

Discussion on: Sentiment analysis on Trump's tweets using Python 🐍

Collapse
 
karimazizovic87 profile image
King

why am i getting this error:

ModuleNotFoundError Traceback (most recent call last)
in ()
1 # We import our access keys:
----> 2 from credentials import * # This will allow us to use the keys as variables
3
4 # API's setup:
5 def twitter_setup():

ModuleNotFoundError: No module named 'credentials'

Collapse
 
rodolfoferro profile image
Rodolfo Ferro

I think that this will solve your error:

  1. You need to create a file credentials.py that has to contain your Twitter App credentials.
  2. You need to save it in the same directory as your main script.

Please let me know if not. :+1:

Collapse
 
karimazizovic87 profile image
King

thank you very much. i solved that