{"id":5116,"date":"2016-09-25T02:29:22","date_gmt":"2016-09-25T02:29:22","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5116"},"modified":"2016-09-25T02:29:22","modified_gmt":"2016-09-25T02:29:22","slug":"fixing-error-praw-exceptions-clientexception-required-configuration-setting-client_id-missing","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-error-praw-exceptions-clientexception-required-configuration-setting-client_id-missing\/","title":{"rendered":"Fixing error: praw.exceptions.ClientException: Required configuration setting &#8216;client_id&#8217; missing."},"content":{"rendered":"<p>If you use a project on Github that uses the Reddit API, you can get errors like this:<\/p>\n<pre>\nTraceback (most recent call last):\n  File \"subredditarchive.py\", line 23, in <module>\n    r = praw.Reddit(useragent='searchandarchive by ')\n  File \"\/usr\/local\/lib\/python2.7\/dist-packages\/praw-4.0.0b17-py2.7.egg\/praw\/reddit.py\", line 101, in __init__\n    raise ClientException(required_message.format(attribute))\npraw.exceptions.ClientException: Required configuration setting 'client_id' missing.\nThis setting can be provided in a praw.ini file, as a keyword argument to the `Reddit` class constructor, or as an environment variable.\n<\/pre>\n<p>The API library in Python is called &#8220;praw&#8221; &#8211; you most likely have the wrong version.<\/p>\n<p>To see the version, do this:<\/p>\n<pre lang=\"bash\">\npip freeze | grep praw\n<\/pre>\n<p>Then uninstall:<\/p>\n<pre lang=\"bash\">\npip uninstall praw\n<\/pre>\n<p>Then install the right version:<\/p>\n<pre lang=\"bash\">\neasy_install praw==3.5.0\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fixing an error with the Python reddit API<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[447],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5116"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=5116"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5116\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}