{"action":"created","issue":{"url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/32","labels_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/32/comments","events_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/32/events","html_url":"https://github.com/pywebhdfs/pywebhdfs/issues/32","id":100794629,"number":32,"title":"Build failed with No such file or directory","user":{"login":"tiangolo","id":1326112,"avatar_url":"https://avatars.githubusercontent.com/u/1326112?v=3","gravatar_id":"","url":"https://api.github.com/users/tiangolo","html_url":"https://github.com/tiangolo","followers_url":"https://api.github.com/users/tiangolo/followers","following_url":"https://api.github.com/users/tiangolo/following{/other_user}","gists_url":"https://api.github.com/users/tiangolo/gists{/gist_id}","starred_url":"https://api.github.com/users/tiangolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiangolo/subscriptions","organizations_url":"https://api.github.com/users/tiangolo/orgs","repos_url":"https://api.github.com/users/tiangolo/repos","events_url":"https://api.github.com/users/tiangolo/events{/privacy}","received_events_url":"https://api.github.com/users/tiangolo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-13T15:07:29Z","updated_at":"2015-08-19T02:39:59Z","closed_at":null,"body":"Environment\r\n----------------\r\n**OS**: CentOS 6.7 64bit\r\n**Python**: [miniconda](http://conda.pydata.org/miniconda.html), Python 2.7\r\n**Python home**: /opt/miniconda/\r\n**User**: root\r\n\r\nDescription\r\n--------------\r\n\r\nWhen I run:\r\n```\r\n/opt/miniconda/bin/pip install pywebhdfs\r\n```\r\n\r\nI get:\r\n```\r\nCollecting pywebhdfs\r\n  Using cached pywebhdfs-0.4.0.tar.gz\r\nRequirement already satisfied (use --upgrade to upgrade): requests in ./miniconda/lib/python2.7/site-packages (from pywebhdfs)\r\nRequirement already satisfied (use --upgrade to upgrade): six in ./miniconda/lib/python2.7/site-packages (from pywebhdfs)\r\nBuilding wheels for collected packages: pywebhdfs\r\n  Running setup.py bdist_wheel for pywebhdfs\r\n  Complete output from command /opt/miniconda/bin/python -c \"import setuptools;__file__='/tmp/pip-build-gY0F8Q/pywebhdfs/setup.py';exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" bdist_wheel -d /tmp/tmpo3KZRlpip-wheel-:\r\n  running bdist_wheel\r\n  running build\r\n  running build_py\r\n  creating build\r\n  creating build/lib\r\n  creating build/lib/pywebhdfs\r\n  copying pywebhdfs/operations.py -> build/lib/pywebhdfs\r\n  copying pywebhdfs/webhdfs.py -> build/lib/pywebhdfs\r\n  copying pywebhdfs/__init__.py -> build/lib/pywebhdfs\r\n  copying pywebhdfs/errors.py -> build/lib/pywebhdfs\r\n  running egg_info\r\n  writing requirements to pywebhdfs.egg-info/requires.txt\r\n  writing pywebhdfs.egg-info/PKG-INFO\r\n  writing top-level names to pywebhdfs.egg-info/top_level.txt\r\n  writing dependency_links to pywebhdfs.egg-info/dependency_links.txt\r\n  [pbr] Reusing existing SOURCES.txt\r\n  installing to build/bdist.linux-x86_64/wheel\r\n  running install\r\n  error: [Errno 2] No such file or directory\r\n\r\n  ----------------------------------------\r\n  Failed building wheel for pywebhdfs\r\nFailed to build pywebhdfs\r\nInstalling collected packages: pywebhdfs\r\n  Running setup.py install for pywebhdfs\r\n    Complete output from command /opt/miniconda/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip-build-gY0F8Q/pywebhdfs/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-thOYgQ-record/install-record.txt --single-version-externally-managed --compile:\r\n    running install\r\n    error: [Errno 2] No such file or directory\r\n\r\n    ----------------------------------------\r\nCommand \"/opt/miniconda/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip-build-gY0F8Q/pywebhdfs/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-thOYgQ-record/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /tmp/pip-build-gY0F8Q/pywebhdfs\r\n```\r\n\r\nBefore version 0.4.0 it seemed installing OK, although if now I try running:\r\n\r\n```\r\n/opt/miniconda/bin/pip install \"pywebhdfs<0.4.0\"\r\n```\r\n\r\nit downloads the previous version, but I get the same error.\r\n\r\n\r\nI have tried several things, I don't know what else to do to debug it...\r\n\r\nReproducing the error\r\n----------------------------\r\n\r\n* With vagrant installed, you could create a CentOS with:\r\n\r\n```\r\nvagrant init chef/centos-6.6\r\n```\r\n\r\n* Bring it up:\r\n\r\n```\r\nvagrant up\r\n```\r\n\r\n* Log in:\r\n\r\n```\r\nvagrant ssh\r\n```\r\n\r\n* Become root user:\r\n\r\n```\r\nsudo su root\r\n```\r\n\r\n* Download miniconda:\r\n\r\n```\r\nwget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh\r\n```\r\n\r\n* Install miniconda:\r\n\r\n```\r\nbash Miniconda-latest-Linux-x86_64.sh -b -p /opt/miniconda\r\n```\r\n\r\n* Install pip:\r\n\r\n```\r\n/opt/miniconda/bin/conda install pip -y\r\n```\r\n\r\n* Try installing pywebhdfs:\r\n\r\n```\r\n/opt/miniconda/bin/pip install pywebhdfs\r\n```"},"comment":{"url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/comments/132426434","html_url":"https://github.com/pywebhdfs/pywebhdfs/issues/32#issuecomment-132426434","issue_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/32","id":132426434,"user":{"login":"tiangolo","id":1326112,"avatar_url":"https://avatars.githubusercontent.com/u/1326112?v=3","gravatar_id":"","url":"https://api.github.com/users/tiangolo","html_url":"https://github.com/tiangolo","followers_url":"https://api.github.com/users/tiangolo/followers","following_url":"https://api.github.com/users/tiangolo/following{/other_user}","gists_url":"https://api.github.com/users/tiangolo/gists{/gist_id}","starred_url":"https://api.github.com/users/tiangolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiangolo/subscriptions","organizations_url":"https://api.github.com/users/tiangolo/orgs","repos_url":"https://api.github.com/users/tiangolo/repos","events_url":"https://api.github.com/users/tiangolo/events{/privacy}","received_events_url":"https://api.github.com/users/tiangolo/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T02:39:59Z","updated_at":"2015-08-19T02:39:59Z","body":"Hmmm, this is very strange, I was going to try what you said (installing and updating git) and I replicated the same commands that I described above, but this time there was no error.\r\n\r\nI even ran my automatic deployment with Ansible in several virtual machines (that was my final and real problem), the same VMs that showed the error originally, and it worked without problem.\r\n\r\nI don't know what could have happened, but maybe it is related to pbr, as there was a new release the same day I wrote this issue: https://pypi.python.org/pypi/pbr.\r\n\r\nI guess you can mark this issue as resolved or rejected. And thanks again."}}