{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/2524","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/2524/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/2524/comments","events_url":"https://api.github.com/repos/conda/conda/issues/2524/events","html_url":"https://github.com/conda/conda/issues/2524","id":156009306,"number":2524,"title":"track_features in .condarc causes exception","user":{"login":"gmnash","id":19375,"avatar_url":"https://avatars.githubusercontent.com/u/19375?v=3","gravatar_id":"","url":"https://api.github.com/users/gmnash","html_url":"https://github.com/gmnash","followers_url":"https://api.github.com/users/gmnash/followers","following_url":"https://api.github.com/users/gmnash/following{/other_user}","gists_url":"https://api.github.com/users/gmnash/gists{/gist_id}","starred_url":"https://api.github.com/users/gmnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmnash/subscriptions","organizations_url":"https://api.github.com/users/gmnash/orgs","repos_url":"https://api.github.com/users/gmnash/repos","events_url":"https://api.github.com/users/gmnash/events{/privacy}","received_events_url":"https://api.github.com/users/gmnash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mcg1969","id":2797735,"avatar_url":"https://avatars.githubusercontent.com/u/2797735?v=3","gravatar_id":"","url":"https://api.github.com/users/mcg1969","html_url":"https://github.com/mcg1969","followers_url":"https://api.github.com/users/mcg1969/followers","following_url":"https://api.github.com/users/mcg1969/following{/other_user}","gists_url":"https://api.github.com/users/mcg1969/gists{/gist_id}","starred_url":"https://api.github.com/users/mcg1969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcg1969/subscriptions","organizations_url":"https://api.github.com/users/mcg1969/orgs","repos_url":"https://api.github.com/users/mcg1969/repos","events_url":"https://api.github.com/users/mcg1969/events{/privacy}","received_events_url":"https://api.github.com/users/mcg1969/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-05-20T17:09:01Z","updated_at":"2016-05-23T22:54:34Z","closed_at":null,"body":"Using the track_features config in the .condarc in conda 4.0.x causes an exception to be thrown.  The problem does not occur in conda 3.19.3.\r\n\r\n```\r\nrm -rf $HOME/miniconda\r\nrm -rf Miniconda-latest-Linux-x86_64.sh\r\n\r\nwget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh\r\n./Miniconda-latest-Linux-x86_64.sh -b -p $HOME/miniconda\r\n\r\n# name the tracked feature anything\r\ncat > $HOME/miniconda/.condarc << EOF\r\nchannels:\r\n   - defaults\r\n\r\ntrack_features: abc\r\nEOF\r\n\r\n# install any package\r\n$HOME/miniconda/bin/conda install cython -y\r\n```\r\n\r\nResults in the following stacktrace:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/gnash/miniconda/bin/conda\", line 6, in <module>\r\n    sys.exit(main())\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/cli/main.py\", line 139, in main\r\n    args_func(args, p)\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/cli/main.py\", line 146, in args_func\r\n    args.func(args, p)\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/cli/main_install.py\", line 62, in execute\r\n    install.install(args, parser, 'install')\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/cli/install.py\", line 334, in install\r\n    update_deps=args.update_deps)\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/plan.py\", line 413, in install_actions\r\n    pkgs = r.install(specs, [d + '.tar.bz2' for d in linked], update_deps=update_deps)\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/resolve.py\", line 875, in install\r\n    pkgs = self.solve(specs, len0=len0, returnall=returnall)\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/resolve.py\", line 909, in solve\r\n    dists, new_specs = self.get_dists(specs)\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/resolve.py\", line 520, in get_dists\r\n    if not full_prune(specs, removes, optional, features):\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/resolve.py\", line 503, in full_prune\r\n    nfeats.update(self.track_features(fn))\r\n  File \"/home/gnash/miniconda/lib/python2.7/site-packages/conda/resolve.py\", line 586, in track_features\r\n    return set(self.index[fn].get('track_features', '').split())\r\nKeyError: 'b@'\r\n\r\n```\r\n\r\nInstalling any package, not just cython, causes this error.  The key it is missing seems to be a function of the feature name."},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/221119968","html_url":"https://github.com/conda/conda/issues/2524#issuecomment-221119968","issue_url":"https://api.github.com/repos/conda/conda/issues/2524","id":221119968,"user":{"login":"mcg1969","id":2797735,"avatar_url":"https://avatars.githubusercontent.com/u/2797735?v=3","gravatar_id":"","url":"https://api.github.com/users/mcg1969","html_url":"https://github.com/mcg1969","followers_url":"https://api.github.com/users/mcg1969/followers","following_url":"https://api.github.com/users/mcg1969/following{/other_user}","gists_url":"https://api.github.com/users/mcg1969/gists{/gist_id}","starred_url":"https://api.github.com/users/mcg1969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcg1969/subscriptions","organizations_url":"https://api.github.com/users/mcg1969/orgs","repos_url":"https://api.github.com/users/mcg1969/repos","events_url":"https://api.github.com/users/mcg1969/events{/privacy}","received_events_url":"https://api.github.com/users/mcg1969/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T22:54:34Z","updated_at":"2016-05-23T22:54:34Z","body":"Ah, I see. The failure happens if you choose a `track_feature` that is not represented anywhere in the package index. I'll modify the PR to fix that too."}}
{"actor":{"display_login":"mcg1969"}}