{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/761","repository_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues","labels_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/761/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/761/comments","events_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/761/events","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/761","id":149348626,"number":761,"title":"python depends on a specific xz ABI, but the distribution doesn't represent it","user":{"login":"pelson","id":810663,"avatar_url":"https://avatars.githubusercontent.com/u/810663?v=3","gravatar_id":"","url":"https://api.github.com/users/pelson","html_url":"https://github.com/pelson","followers_url":"https://api.github.com/users/pelson/followers","following_url":"https://api.github.com/users/pelson/following{/other_user}","gists_url":"https://api.github.com/users/pelson/gists{/gist_id}","starred_url":"https://api.github.com/users/pelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelson/subscriptions","organizations_url":"https://api.github.com/users/pelson/orgs","repos_url":"https://api.github.com/users/pelson/repos","events_url":"https://api.github.com/users/pelson/events{/privacy}","received_events_url":"https://api.github.com/users/pelson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-19T04:58:39Z","updated_at":"2016-04-21T08:43:31Z","closed_at":"2016-04-21T08:43:31Z","body":"As discussed a little in https://github.com/conda-forge/staged-recipes/pull/386#issuecomment-211533190, the python distribution in Anaconda is incorrectly stating that it can work with any version of ```xz```, but in truth it can't.\r\n\r\nI know python isn't yet built by conda-build, but the lack of correctly pinning versions is the number 1 issue with conda right now. Frustratingly there are 2 very similar proposals which have been made, but which appear to have made no progress... https://github.com/conda/conda-build/pull/747"},"comment":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/comments/212814465","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/761#issuecomment-212814465","issue_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/761","id":212814465,"user":{"login":"pelson","id":810663,"avatar_url":"https://avatars.githubusercontent.com/u/810663?v=3","gravatar_id":"","url":"https://api.github.com/users/pelson","html_url":"https://github.com/pelson","followers_url":"https://api.github.com/users/pelson/followers","following_url":"https://api.github.com/users/pelson/following{/other_user}","gists_url":"https://api.github.com/users/pelson/gists{/gist_id}","starred_url":"https://api.github.com/users/pelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelson/subscriptions","organizations_url":"https://api.github.com/users/pelson/orgs","repos_url":"https://api.github.com/users/pelson/repos","events_url":"https://api.github.com/users/pelson/events{/privacy}","received_events_url":"https://api.github.com/users/pelson/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T08:43:31Z","updated_at":"2016-04-21T08:43:31Z","body":"Agreed. I think I've got my wires crossed - sorry for the noise :disappointed:.\r\n\r\nTo make it easier to see, I've written a little utility:\r\n\r\n```\r\n#!/usr/bin/env conda-execute\r\n\r\n# conda execute\r\n# env:\r\n#  - python\r\n#  - conda\r\n# run_with: python\r\n\r\nfrom __future__ import print_function\r\n\r\nimport argparse\r\nimport re\r\nfrom conda.api import get_index\r\n\r\nparser = argparse.ArgumentParser()\r\nparser.add_argument('channel')\r\nparser.add_argument('--packages', nargs='+', default=['.*'])\r\nparser.add_argument('--dependencies', nargs='+', default=['.*'])\r\nparser.add_argument('--platform', default=None)\r\n\r\nargs = parser.parse_args()\r\n\r\nmatching_pkgs = [re.compile(pkg) for pkg in args.packages]\r\nmatching_deps = [re.compile(pkg) for pkg in args.dependencies]\r\nindex = get_index(channel_urls=[args.channel],\r\n                  prepend=False, platform=args.platform)\r\n\r\nfor dist, pkg_info in sorted(index.items()):\r\n    matched = False\r\n    for matching_pkg in matching_pkgs:\r\n        if matching_pkg.match(pkg_info['name']):\r\n            matched = True\r\n\r\n    if matched:\r\n        depends = pkg_info['depends']\r\n        deps_which_match = []\r\n        for matching_dep in matching_deps:\r\n            for dep in depends:\r\n                if matching_dep.match(dep):\r\n                    deps_which_match.append(dep)\r\n        if deps_which_match:\r\n            full_dist = '{info[name]} {info[version]} {info[build]} {subdir}'.format(info=pkg_info, subdir=args.platform)\r\n            print('{: <35}: {}'.format(full_dist, ', '.join(sorted(deps_which_match))))\r\n```\r\n\r\nWhich allows me to query pieces of interest:\r\n\r\n```\r\nconda execute list_deps.py defaults --packages python --dependencies xz --platform osx-64\r\nFetching package metadata: ....\r\npython 3.3.5 2 osx-64              : xz 5.0.5\r\npython 3.3.5 3 osx-64              : xz 5.0.5\r\npython 3.4.1 2 osx-64              : xz 5.0.5\r\npython 3.4.1 3 osx-64              : xz 5.0.5\r\npython 3.4.1 4 osx-64              : xz 5.0.5\r\npython 3.4.2 0 osx-64              : xz 5.0.5\r\npython 3.4.3 0 osx-64              : xz 5.0.5\r\npython 3.4.3 2 osx-64              : xz 5.0.5\r\npython 3.4.4 0 osx-64              : xz 5.0.5\r\npython 3.5.0 0 osx-64              : xz 5.0.5\r\npython 3.5.0 1 osx-64              : xz 5.0.5\r\npython 3.5.0rc4 0 osx-64           : xz 5.0.5\r\npython 3.5.1 0 osx-64              : xz 5.0.5\r\n```\r\n\r\nThe wider problem that caused me to open this issue is probably with conda-forge:\r\n\r\n```\r\nconda execute list_deps.py conda-forge --packages '.*' --dependencies xz --platform osx-64\r\nFetching package metadata: ..\r\ngdal 1.11.4 np110py27_4 osx-64     : xz\r\ngdal 1.11.4 np110py34_4 osx-64     : xz\r\ngdal 1.11.4 np110py35_4 osx-64     : xz\r\ngdal 1.11.4 np111py27_4 osx-64     : xz\r\ngdal 1.11.4 np111py34_4 osx-64     : xz\r\ngdal 1.11.4 np111py35_4 osx-64     : xz\r\nlibtiff 4.0.6 1 osx-64             : xz 5.2.*\r\nlibtiff 4.0.6 3 osx-64             : xz 5.2.*\r\nlibxml2 2.9.3 0 osx-64             : xz\r\nlibxml2 2.9.3 1 osx-64             : xz\r\nlibxml2 2.9.3 3 osx-64             : xz\r\nlibxml2 2.9.3 4 osx-64             : xz\r\nsox 14.4.2 0 osx-64                : xz\r\nsox 14.4.2 1 osx-64                : xz 5.2.*\r\n```\r\n\r\nWe will want to remove most of the built distributions from there which don't pin the xz correctly.\r\n\r\nThanks for your time @ilanschnell."}}