ASD-at-GMF / disinfo-laundromat

MIT License
7 stars 4 forks source link

Unknow location error when trying to run the app #47

Open cyberopssn opened 4 months ago

cyberopssn commented 4 months ago

Hi there

There is an issue when triyng to run the app

Traceback (most recent call last): File "/root/disinfo-laundromat/app.py", line 26, in from config import SERP_API_KEY, SITES_OF_CONCERN, KNOWN_INDICATORS, APP_SECRET_KEY, SQLLITE_DB_PATH, COPYSCAPE_API_KEY, COPYSCAPE_USER, PATH_TO_OUTPUT_CSV, MATCH_VALUES_TO_IGNORE ImportError: cannot import name 'SERP_API_KEY' from 'config' (unknown location)

pbenzoni commented 3 months ago

Hey! you could either add an empty string in a new file called config.py or this issue is covered by environment variables in the latest version in the development branch!

config.py example SERP_API_KEY = '' .... MATCH_VALUES_TO_IGNORE ={}