{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/5238","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/5238/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/5238/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/5238/events","html_url":"https://github.com/astropy/astropy/issues/5238","id":170929929,"number":5238,"title":"Python 3:  download_file fails with cache=True","user":{"login":"larrybradley","id":4992897,"avatar_url":"https://avatars.githubusercontent.com/u/4992897?v=3","gravatar_id":"","url":"https://api.github.com/users/larrybradley","html_url":"https://github.com/larrybradley","followers_url":"https://api.github.com/users/larrybradley/followers","following_url":"https://api.github.com/users/larrybradley/following{/other_user}","gists_url":"https://api.github.com/users/larrybradley/gists{/gist_id}","starred_url":"https://api.github.com/users/larrybradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrybradley/subscriptions","organizations_url":"https://api.github.com/users/larrybradley/orgs","repos_url":"https://api.github.com/users/larrybradley/repos","events_url":"https://api.github.com/users/larrybradley/events{/privacy}","received_events_url":"https://api.github.com/users/larrybradley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/Affects-release","name":"Affects-release","color":"0052cc"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Bug","name":"Bug","color":"eb6420"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Mac%20OSX","name":"Mac OSX","color":"0052cc"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Python3","name":"Python3","color":"f7c6c7"},{"url":"https://api.github.com/repos/astropy/astropy/labels/utils","name":"utils","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-12T18:23:20Z","updated_at":"2016-08-12T18:31:30Z","closed_at":null,"body":"On Python 3 (OSX) `astropy.utils.data.download_file` fails if `cache=True`.\r\n\r\n```\r\nfrom astropy.utils.data import download_file\r\nurl = 'https://github.com/astropy/photutils-datasets/blob/master/data/irac_ch1_flight.fits?raw=true'\r\nf = download_file(url, cache=True)\r\n<snip>\r\nerror: db type is dbm.gnu, but the module is not available\r\n```\r\n\r\nIt works fine if `cache=False`.  Also, in Python 2.7, it works fine for `cache` True or False."},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/239524816","html_url":"https://github.com/astropy/astropy/issues/5238#issuecomment-239524816","issue_url":"https://api.github.com/repos/astropy/astropy/issues/5238","id":239524816,"user":{"login":"pllim","id":2090236,"avatar_url":"https://avatars.githubusercontent.com/u/2090236?v=3","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T18:31:30Z","updated_at":"2016-08-12T18:31:30Z","body":"Looks similar to #4426? Also might be a good time to revisit #2040."}}
{"actor":{"display_login":"pllim"}}