{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/6397","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/6397/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/6397/comments","events_url":"https://api.github.com/repos/conda/conda/issues/6397/events","html_url":"https://github.com/conda/conda/issues/6397","id":279259574,"number":6397,"title":"conda index error (4.3.30)","user":{"login":"dhirschfeld","id":881019,"avatar_url":"https://avatars1.githubusercontent.com/u/881019?v=4","gravatar_id":"","url":"https://api.github.com/users/dhirschfeld","html_url":"https://github.com/dhirschfeld","followers_url":"https://api.github.com/users/dhirschfeld/followers","following_url":"https://api.github.com/users/dhirschfeld/following{/other_user}","gists_url":"https://api.github.com/users/dhirschfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/dhirschfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhirschfeld/subscriptions","organizations_url":"https://api.github.com/users/dhirschfeld/orgs","repos_url":"https://api.github.com/users/dhirschfeld/repos","events_url":"https://api.github.com/users/dhirschfeld/events{/privacy}","received_events_url":"https://api.github.com/users/dhirschfeld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-12-05T06:20:11Z","updated_at":"2018-03-22T16:39:55Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'm trying to mirror packages in an internal repo for use in an offline install. This has worked for years but today when trying to create a clean repository the `conda index` command failed with the below error:\r\n```\r\n<snip>\r\nupdating: zlib-1.2.11-vc14_0.tar.bz2\r\nTraceback (most recent call last):\r\n  File \"C:\\Miniconda3\\Scripts\\conda-index-script.py\", line 10, in <module>\r\n    sys.exit(main())\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\cli\\main_index.py\", line 75, in main\r\n    return execute(sys.argv[1:])\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\cli\\main_index.py\", line 71, in execute\r\n    channel_name=args.channel_name)\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\api.py\", line 367, in update_index\r\n    locking=config.locking, timeout=config.timeout, channel_name=channel_name)\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\index.py\", line 147, in update_index\r\n    channel_name)\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\index.py\", line 246, in update_subdir_index\r\n    json.dump(recipe, fo, indent=2, sort_keys=True)\r\n  File \"C:\\Miniconda3\\lib\\json\\__init__.py\", line 179, in dump\r\n    for chunk in iterable:\r\n  File \"C:\\Miniconda3\\lib\\json\\encoder.py\", line 430, in _iterencode\r\n    yield from _iterencode_dict(o, _current_indent_level)\r\n  File \"C:\\Miniconda3\\lib\\json\\encoder.py\", line 404, in _iterencode_dict\r\n    yield from chunks\r\n  File \"C:\\Miniconda3\\lib\\json\\encoder.py\", line 404, in _iterencode_dict\r\n    yield from chunks\r\n  File \"C:\\Miniconda3\\lib\\json\\encoder.py\", line 404, in _iterencode_dict\r\n    yield from chunks\r\n  File \"C:\\Miniconda3\\lib\\json\\encoder.py\", line 437, in _iterencode\r\n    o = _default(o)\r\n  File \"C:\\Miniconda3\\lib\\json\\encoder.py\", line 180, in default\r\n    o.__class__.__name__)\r\nTypeError: Object of type 'method' is not JSON serializable\r\n```\r\n\r\nThis final fatal error was preceeded by a few WARNINGs which are shown below:\r\n```\r\nError extracting info/paths.json in \\\\stanwell.com\\delivery\\TradingAnalytics\\PackageRepository\\conda\\external\\win-64\\bz2file-0.98-py36_0.tar.bz2: KeyError(\"filename 'info/paths.json' not found\",)\r\nTraceback (most recent call last):\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\index.py\", line 306, in _read_index_tar\r\n    paths_json = json.loads(t.extractfile('info/paths.json').read().decode('utf-8'))\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 2073, in extractfile\r\n    tarinfo = self.getmember(member)\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 1749, in getmember\r\n    raise KeyError(\"filename %r not found\" % name)\r\nKeyError: \"filename 'info/paths.json' not found\"\r\nWARNING:conda_build.index:Error extracting info/paths.json in \\\\stanwell.com\\delivery\\TradingAnalytics\\PackageRepository\\conda\\external\\win-64\\bz2file-0.98-py36_0.tar.bz2: KeyError(\"filename 'info/paths.json' not found\",)\r\nTraceback (most recent call last):\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\index.py\", line 306, in _read_index_tar\r\n    paths_json = json.loads(t.extractfile('info/paths.json').read().decode('utf-8'))\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 2073, in extractfile\r\n    tarinfo = self.getmember(member)\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 1749, in getmember\r\n    raise KeyError(\"filename %r not found\" % name)\r\nKeyError: \"filename 'info/paths.json' not found\"\r\nError extracting info/recipe/meta.yaml in \\\\stanwell.com\\delivery\\TradingAnalytics\\PackageRepository\\conda\\external\\win-64\\bz2file-0.98-py36_0.tar.bz2: KeyError(\"filename 'info/recipe/meta.yaml' not found\",)\r\nTraceback (most recent call last):\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\index.py\", line 313, in _read_index_tar\r\n    t.extractfile('info/recipe/meta.yaml').read().decode('utf-8')\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 2073, in extractfile\r\n    tarinfo = self.getmember(member)\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 1749, in getmember\r\n    raise KeyError(\"filename %r not found\" % name)\r\nKeyError: \"filename 'info/recipe/meta.yaml' not found\"\r\nWARNING:conda_build.index:Error extracting info/recipe/meta.yaml in \\\\stanwell.com\\delivery\\TradingAnalytics\\PackageRepository\\conda\\external\\win-64\\bz2file-0.98-py36_0.tar.bz2: KeyError(\"filename 'info/recipe/meta.yaml' not found\",)\r\nTraceback (most recent call last):\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\index.py\", line 313, in _read_index_tar\r\n    t.extractfile('info/recipe/meta.yaml').read().decode('utf-8')\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 2073, in extractfile\r\n    tarinfo = self.getmember(member)\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 1749, in getmember\r\n    raise KeyError(\"filename %r not found\" % name)\r\nKeyError: \"filename 'info/recipe/meta.yaml' not found\"\r\nError extracting info/about.json in \\\\stanwell.com\\delivery\\TradingAnalytics\\PackageRepository\\conda\\external\\win-64\\sqlite-3.13.0-vc14_0.tar.bz2: KeyError(\"filename 'info/about.json' not found\",)\r\nTraceback (most recent call last):\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\index.py\", line 300, in _read_index_tar\r\n    about_json = json.loads(t.extractfile('info/about.json').read().decode('utf-8'))\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 2073, in extractfile\r\n    tarinfo = self.getmember(member)\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 1749, in getmember\r\n    raise KeyError(\"filename %r not found\" % name)\r\nKeyError: \"filename 'info/about.json' not found\"\r\nWARNING:conda_build.index:Error extracting info/about.json in \\\\stanwell.com\\delivery\\TradingAnalytics\\PackageRepository\\conda\\external\\win-64\\sqlite-3.13.0-vc14_0.tar.bz2: KeyError(\"filename 'info/about.json' not found\",)\r\nTraceback (most recent call last):\r\n  File \"C:\\Miniconda3\\lib\\site-packages\\conda_build\\index.py\", line 300, in _read_index_tar\r\n    about_json = json.loads(t.extractfile('info/about.json').read().decode('utf-8'))\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 2073, in extractfile\r\n    tarinfo = self.getmember(member)\r\n  File \"C:\\Miniconda3\\lib\\tarfile.py\", line 1749, in getmember\r\n    raise KeyError(\"filename %r not found\" % name)\r\nKeyError: \"filename 'info/about.json' not found\"\r\n```"},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/375373721","html_url":"https://github.com/conda/conda/issues/6397#issuecomment-375373721","issue_url":"https://api.github.com/repos/conda/conda/issues/6397","id":375373721,"user":{"login":"kalefranz","id":1418419,"avatar_url":"https://avatars0.githubusercontent.com/u/1418419?v=4","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":"2018-03-22T16:39:55Z","updated_at":"2018-03-22T16:39:55Z","author_association":"OWNER","body":"This issue was moved to conda/conda-build#2776"}}
{"actor":{"display_login":"kalefranz"}}