{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/2987","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/2987/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/2987/comments","events_url":"https://api.github.com/repos/conda/conda/issues/2987/events","html_url":"https://github.com/conda/conda/issues/2987","id":164106197,"number":2987,"title":"Regression: local installs fail with conda 4.1.5 / 4.1.6","user":{"login":"aldanor","id":2418513,"avatar_url":"https://avatars.githubusercontent.com/u/2418513?v=3","gravatar_id":"","url":"https://api.github.com/users/aldanor","html_url":"https://github.com/aldanor","followers_url":"https://api.github.com/users/aldanor/followers","following_url":"https://api.github.com/users/aldanor/following{/other_user}","gists_url":"https://api.github.com/users/aldanor/gists{/gist_id}","starred_url":"https://api.github.com/users/aldanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldanor/subscriptions","organizations_url":"https://api.github.com/users/aldanor/orgs","repos_url":"https://api.github.com/users/aldanor/repos","events_url":"https://api.github.com/users/aldanor/events{/privacy}","received_events_url":"https://api.github.com/users/aldanor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/conda/conda/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/conda/conda/labels/high%20priority","name":"high priority","color":"ff0000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/conda/conda/milestones/2","html_url":"https://github.com/conda/conda/milestones/4.1","labels_url":"https://api.github.com/repos/conda/conda/milestones/2/labels","id":1716159,"number":2,"title":"4.1","description":"","creator":{"login":"kalefranz","id":1418419,"avatar_url":"https://avatars.githubusercontent.com/u/1418419?v=3","gravatar_id":"","url":"https://api.github.com/users/kalefranz","html_url":"https://github.com/kalefranz","followers_url":"https://api.github.com/users/kalefranz/followers","following_url":"https://api.github.com/users/kalefranz/following{/other_user}","gists_url":"https://api.github.com/users/kalefranz/gists{/gist_id}","starred_url":"https://api.github.com/users/kalefranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalefranz/subscriptions","organizations_url":"https://api.github.com/users/kalefranz/orgs","repos_url":"https://api.github.com/users/kalefranz/repos","events_url":"https://api.github.com/users/kalefranz/events{/privacy}","received_events_url":"https://api.github.com/users/kalefranz/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":167,"state":"open","created_at":"2016-04-19T03:25:44Z","updated_at":"2016-07-07T15:29:50Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-06T15:37:11Z","updated_at":"2016-07-07T21:00:14Z","closed_at":null,"body":"In 4.1.6, it looks like `normalize_urls` is expecting a list and receives a dict:\r\n\r\n```console\r\n>>> conda.misc.explicit([pkg], env)\r\n---------------------------------------------------------------------------\r\nKeyError                                  Traceback (most recent call last)\r\n\r\nconda/misc.py in explicit(specs, prefix, verbose, force_extract, index_args, index)\r\n    124         index_args['prepend'] = False\r\n    125         index_args['channel_urls'] = channels\r\n--> 126         index.update(get_index(**index_args))\r\n    127\r\n    128     # Finish the MD5 verification\r\n\r\nconda/api.py in get_index(channel_urls, prepend, platform, use_local, use_cache, unknown, offline, prefix)\r\n     20     if use_local:\r\n     21         channel_urls = ['local'] + list(channel_urls)\r\n---> 22     channel_urls = normalize_urls(channel_urls, platform, offline)\r\n     23     if prepend:\r\n     24         channel_urls.extend(get_channel_urls(platform, offline))\r\n\r\nconda/config.py in normalize_urls(urls, platform, offline_only)\r\n    248     newurls = []\r\n    249     while urls:\r\n--> 250         url = urls[0]\r\n    251         urls = urls[1:]\r\n    252         if url == \"system\" and rc_path:\r\n\r\nKeyError: 0\r\n> conda/config.py(250)normalize_urls()\r\n    249     while urls:\r\n--> 250         url = urls[0]\r\n    251         urls = urls[1:]\r\n\r\nipdb> urls\r\n{'file://<...>/linux-64/': ('file://<...>', 0)}\r\n```\r\n\r\n(<...> is a long path to the package location)\r\n\r\nIn 4.1.5, file URLs are broken (which should have been fixed in 4.1.6 IIRC):\r\n\r\n```console\r\nHTTPError: 404 Client Error: None for url: file:///<...>/linux-64/repodata.json.bz2\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/231205824","html_url":"https://github.com/conda/conda/issues/2987#issuecomment-231205824","issue_url":"https://api.github.com/repos/conda/conda/issues/2987","id":231205824,"user":{"login":"kalefranz","id":1418419,"avatar_url":"https://avatars.githubusercontent.com/u/1418419?v=3","gravatar_id":"","url":"https://api.github.com/users/kalefranz","html_url":"https://github.com/kalefranz","followers_url":"https://api.github.com/users/kalefranz/followers","following_url":"https://api.github.com/users/kalefranz/following{/other_user}","gists_url":"https://api.github.com/users/kalefranz/gists{/gist_id}","starred_url":"https://api.github.com/users/kalefranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalefranz/subscriptions","organizations_url":"https://api.github.com/users/kalefranz/orgs","repos_url":"https://api.github.com/users/kalefranz/repos","events_url":"https://api.github.com/users/kalefranz/events{/privacy}","received_events_url":"https://api.github.com/users/kalefranz/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T21:00:14Z","updated_at":"2016-07-07T21:00:14Z","body":"fixed in #2964.  4.1.7 should be out in an hour or so"}}
{"actor":{"display_login":"kalefranz"}}