{"action":"closed","issue":{"url":"https://api.github.com/repos/pyca/bcrypt/issues/58","labels_url":"https://api.github.com/repos/pyca/bcrypt/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/pyca/bcrypt/issues/58/comments","events_url":"https://api.github.com/repos/pyca/bcrypt/issues/58/events","html_url":"https://github.com/pyca/bcrypt/issues/58","id":128383698,"number":58,"title":"failed to install bcrypt","user":{"login":"ohadpartuck","id":2236337,"avatar_url":"https://avatars.githubusercontent.com/u/2236337?v=3","gravatar_id":"","url":"https://api.github.com/users/ohadpartuck","html_url":"https://github.com/ohadpartuck","followers_url":"https://api.github.com/users/ohadpartuck/followers","following_url":"https://api.github.com/users/ohadpartuck/following{/other_user}","gists_url":"https://api.github.com/users/ohadpartuck/gists{/gist_id}","starred_url":"https://api.github.com/users/ohadpartuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohadpartuck/subscriptions","organizations_url":"https://api.github.com/users/ohadpartuck/orgs","repos_url":"https://api.github.com/users/ohadpartuck/repos","events_url":"https://api.github.com/users/ohadpartuck/events{/privacy}","received_events_url":"https://api.github.com/users/ohadpartuck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-24T09:25:25Z","updated_at":"2016-01-24T15:07:07Z","closed_at":"2016-01-24T15:07:07Z","body":"python version 2.7\r\n\r\n    user 'jenkins': installation works\r\n    pip install bcrypt\r\n    Requirement already satisfied (use --upgrade to upgrade): bcrypt in /home/jenkins/.virtualenvs/dal/lib/python2.7/site-packages\r\n    Requirement already satisfied (use --upgrade to upgrade): cffi>=1.1 in /home/jenkins/.virtualenvs/dal/lib/python2.7/site-packages (from bcrypt)\r\n    Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /home/jenkins/.virtualenvs/dal/lib/python2.7/site-packages (from bcrypt)\r\n    Requirement already satisfied (use --upgrade to upgrade): pycparser in /home/jenkins/.virtualenvs/dal/lib/python2.7/site-packages (from cffi>=1.1->bcrypt)\r\n\r\n\r\nunder `root` user:\r\n\r\n    sudo su\r\n    root@server_name:/apps/app_name# pip install bcrypt\r\n    Collecting bcrypt\r\n      Using cached bcrypt-2.0.0.tar.gz\r\n    Requirement already satisfied (use --upgrade to upgrade): cffi>=1.1 in /usr/local/lib/python2.7/dist-packages (from bcrypt)\r\n    Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from bcrypt)\r\n    Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=1.1->bcrypt)\r\n    Installing collected packages: bcrypt\r\n      Running setup.py install for bcrypt ... error\r\n        Complete output from command /usr/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-UQAoWx/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-BL_G1e-record/install-record.txt --single-version-externally-managed --compile:\r\n        <module 'pycparser' from '/usr/local/lib/python2.7/dist-packages/pycparser/__init__.pyc'>\r\n        Traceback (most recent call last):\r\n          File \"<string>\", line 1, in <module>\r\n          File \"/tmp/pip-build-UQAoWx/bcrypt/setup.py\", line 226, in <module>\r\n            **keywords_with_side_effects(sys.argv)\r\n          File \"/usr/lib/python2.7/distutils/core.py\", line 112, in setup\r\n            _setup_distribution = dist = klass(attrs)\r\n          File \"/usr/lib/python2.7/dist-packages/setuptools/dist.py\", line 225, in __init__\r\n            _Distribution.__init__(self,attrs)\r\n          File \"/usr/lib/python2.7/distutils/dist.py\", line 287, in __init__\r\n            self.finalize_options()\r\n          File \"/usr/lib/python2.7/dist-packages/setuptools/dist.py\", line 258, in finalize_options\r\n            ep.load()(self, ep.name, value)\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py\", line 161, in cffi_modules\r\n            add_cffi_module(dist, cffi_module)\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py\", line 48, in add_cffi_module\r\n            execfile(build_file_name, mod_vars)\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py\", line 24, in execfile\r\n            exec(code, glob, glob)\r\n          File \"src/build_bcrypt.py\", line 29, in <module>\r\n            \"\"\"\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/api.py\", line 105, in cdef\r\n            self._cdef(csource, override=override, packed=packed)\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/api.py\", line 119, in _cdef\r\n            self._parser.parse(csource, override=override, **options)\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/cparser.py\", line 290, in parse\r\n            self._internal_parse(csource)\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/cparser.py\", line 295, in _internal_parse\r\n            ast, macros, csource = self._parse(csource)\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/cparser.py\", line 230, in _parse\r\n            csource, macros = _preprocess(csource)\r\n          File \"/usr/local/lib/python2.7/dist-packages/cffi/cparser.py\", line 138, in _preprocess\r\n            if pycparser.__version__ < '2.14':\r\n        AttributeError: 'module' object has no attribute '__version__'\r\n    \r\n        ----------------------------------------\r\n    Command \"/usr/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-UQAoWx/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-BL_G1e-record/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /tmp/pip-build-UQAoWx/bcrypt\r\n\r\n\r\n\r\n\r\ntried \r\nsudo apt-get remove build-essential libffi-dev python-dev\r\nsudo apt-get install build-essential libffi-dev python-dev"}}