{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/657","labels_url":"https://api.github.com/repos/conda/conda-build/issues/657/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/657/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/657/events","html_url":"https://github.com/conda/conda-build/issues/657","id":114102338,"number":657,"title":"stdout encode/decode issue","user":{"login":"PeterDSteinberg","id":1445602,"avatar_url":"https://avatars.githubusercontent.com/u/1445602?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDSteinberg","html_url":"https://github.com/PeterDSteinberg","followers_url":"https://api.github.com/users/PeterDSteinberg/followers","following_url":"https://api.github.com/users/PeterDSteinberg/following{/other_user}","gists_url":"https://api.github.com/users/PeterDSteinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDSteinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDSteinberg/subscriptions","organizations_url":"https://api.github.com/users/PeterDSteinberg/orgs","repos_url":"https://api.github.com/users/PeterDSteinberg/repos","events_url":"https://api.github.com/users/PeterDSteinberg/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDSteinberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T17:22:06Z","updated_at":"2015-10-29T17:57:02Z","closed_at":null,"body":"When <code>conda build .</code> is run within anaconda-build, I am getting a stdout decode/encode issue where the argument <code>encoding</code> ends up being None.  I am on linux with a root miniconda install.\r\n```\r\nconda build .\r\nRemoving old build environment\r\nRemoving old work directory\r\nBUILD START: pulp-1.6.0-py27_0\r\nFetching package metadata: ......\r\n\r\nWARNING: conda-build appears to be out of date. You have version 1.18.0 but the\r\nlatest version is 1.18.1. Run\r\n\r\nconda update -n root conda-build\r\n\r\nto get the latest version.\r\n\r\nSolving package specifications: .............\r\nThe following NEW packages will be INSTALLED:\r\n\r\n    openssl:    1.0.2d-0      defaults\r\n    pip:        7.1.2-py27_0  defaults\r\n    pyparsing:  1.5.6-py27_0  defaults\r\n    python:     2.7.10-2      defaults\r\n    readline:   6.2-2         defaults\r\n    setuptools: 18.4-py27_0   defaults\r\n    sqlite:     3.8.4.1-1     defaults\r\n    tk:         8.5.18-0      defaults\r\n    wheel:      0.26.0-py27_1 defaults\r\n    zlib:       1.2.8-0       defaults\r\n\r\nLinking packages ...\r\n[      COMPLETE      ]|##################################################| 100%\r\nRemoving old work directory\r\nCloning into bare repository '/opt/anaconda/conda-bld/git_cache/__github.com_coin-or_pulp.git'...\r\ncheckout: u'1.6.0'\r\n\r\nCloning into '/opt/anaconda/conda-bld/work'...\r\ndone.\r\nNote: checking out '1.6.0'.\r\n\r\nYou are in 'detached HEAD' state. You can look around, make experimental\r\nchanges and commit them, and you can discard any commits you make in this\r\nstate without impacting any branches by performing another checkout.\r\n\r\nIf you want to create a new branch to retain commits you create, you may\r\ndo so (now or later) by using -b with the checkout command again. Example:\r\n\r\n  git checkout -b new_branch_name\r\n\r\nHEAD is now at 081d1e0... Merge branch 'release/1.6.0'\r\nAn unexpected error has occurred, please consider sending the\r\nfollowing traceback to the conda GitHub issue tracker at:\r\n\r\n    https://github.com/conda/conda-build/issues\r\n\r\nInclude the output of the command 'conda info' in your report.\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/anaconda/bin/conda-build\", line 5, in <module>\r\n    sys.exit(main())\r\n  File \"/opt/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 190, in main\r\n    args_func(args, p)\r\n  File \"/opt/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 468, in args_func\r\n    args.func(args, p)\r\n  File \"/opt/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 391, in execute\r\n    override_channels=args.override_channels, include_recipe=args.include_recipe)\r\n  File \"/opt/anaconda/lib/python2.7/site-packages/conda_build/build.py\", line 392, in build\r\n    source.provide(m.path, m.get_section('source'))\r\n  File \"/opt/anaconda/lib/python2.7/site-packages/conda_build/source.py\", line 269, in provide\r\n    git_source(meta, recipe_dir)\r\n  File \"/opt/anaconda/lib/python2.7/site-packages/conda_build/source.py\", line 136, in git_source\r\n    git_info()\r\n  File \"/opt/anaconda/lib/python2.7/site-packages/conda_build/source.py\", line 160, in git_info\r\n    stdout = stdout.decode(encoding, 'ignore')\r\nTypeError: decode() argument 1 must be string, not None\r\ncommand exited with status 1\r\n```"},"comment":{"url":"https://api.github.com/repos/conda/conda-build/issues/comments/152266090","html_url":"https://github.com/conda/conda-build/issues/657#issuecomment-152266090","issue_url":"https://api.github.com/repos/conda/conda-build/issues/657","id":152266090,"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":"2015-10-29T17:57:02Z","updated_at":"2015-10-29T17:57:02Z","body":"https://github.com/conda/conda-build/issues/619"}}