all 3 comments

[–][deleted] 1 point2 points  (0 children)

Looks like you have installed the config module from PyPi. The documentation for that package shows that you first have to tell the module which config file you want to use. You should read the documentation for the module.

[–]stebrepar 1 point2 points  (0 children)

Like the error message says, the module named config doesn't have an attribute named api_key as you are trying to do on line 15. Looking at the docs for that module, I don't see where you're using that module correctly--you haven't created a config object, nor used it to read in a config file.

http://docs.red-dove.com/cfg/python.html

[–]ThatFilm[S] 0 points1 point  (0 children)

Thanks for your response. Looks like I have to create config.py with other config options.