{"action":"opened","issue":{"url":"https://api.github.com/repos/vincentbernat/snimpy/issues/56","repository_url":"https://api.github.com/repos/vincentbernat/snimpy","labels_url":"https://api.github.com/repos/vincentbernat/snimpy/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/vincentbernat/snimpy/issues/56/comments","events_url":"https://api.github.com/repos/vincentbernat/snimpy/issues/56/events","html_url":"https://github.com/vincentbernat/snimpy/issues/56","id":177823333,"number":56,"title":"pip install fail: No package 'libffi' found","user":{"login":"edouard-lopez","id":1212392,"avatar_url":"https://avatars.githubusercontent.com/u/1212392?v=3","gravatar_id":"","url":"https://api.github.com/users/edouard-lopez","html_url":"https://github.com/edouard-lopez","followers_url":"https://api.github.com/users/edouard-lopez/followers","following_url":"https://api.github.com/users/edouard-lopez/following{/other_user}","gists_url":"https://api.github.com/users/edouard-lopez/gists{/gist_id}","starred_url":"https://api.github.com/users/edouard-lopez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edouard-lopez/subscriptions","organizations_url":"https://api.github.com/users/edouard-lopez/orgs","repos_url":"https://api.github.com/users/edouard-lopez/repos","events_url":"https://api.github.com/users/edouard-lopez/events{/privacy}","received_events_url":"https://api.github.com/users/edouard-lopez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T15:53:42Z","updated_at":"2016-09-19T15:53:42Z","closed_at":null,"body":"\r\n### Env\r\n\r\n**pip**\r\n\r\n```\r\n$ pip -V\r\npip 8.1.1 from /data/projects/coaxis-opt/env/lib/python3.5/site-packages (python 3.5)\r\n```\r\n\r\n**python**\r\n```\r\n$ python -V\r\nPython 3.5.2\r\n```\r\n\r\n**OS**\r\n```\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: LinuxMint\r\nDescription:    Linux Mint 18 Sarah\r\nRelease:        18\r\nCodename:       sarah\r\n```\r\n\r\n### Error\r\n\r\n```\r\nCollecting snimpy\r\n  Using cached snimpy-0.8.11.tar.gz\r\n    Complete output from command python setup.py egg_info:\r\n    zip_safe flag not set; analyzing archive contents...\r\n    \r\n    Installed /tmp/pip-build-igenunw5/snimpy/.eggs/vcversioner-2.16.0.0-py3.5.egg\r\n    Searching for cffi>=1.0.0\r\n    Reading https://pypi.python.org/simple/cffi/\r\n    Best match: cffi 1.8.3\r\n    Downloading https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a/cffi-1.8.3.tar.gz#md5=c8e877fe0426a99d0cf5872cf2f95b27\r\n    Processing cffi-1.8.3.tar.gz\r\n    Writing /tmp/easy_install-dikbzaa_/cffi-1.8.3/setup.cfg\r\n    Running cffi-1.8.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dikbzaa_/cffi-1.8.3/egg-dist-tmp-0skqbjnt\r\n    Package libffi was not found in the pkg-config search path.\r\n    Perhaps you should add the directory containing `libffi.pc'\r\n    to the PKG_CONFIG_PATH environment variable\r\n    No package 'libffi' found\r\n    Package libffi was not found in the pkg-config search path.\r\n    Perhaps you should add the directory containing `libffi.pc'\r\n    to the PKG_CONFIG_PATH environment variable\r\n    No package 'libffi' found\r\n    Package libffi was not found in the pkg-config search path.\r\n    Perhaps you should add the directory containing `libffi.pc'\r\n    to the PKG_CONFIG_PATH environment variable\r\n    No package 'libffi' found\r\n    Package libffi was not found in the pkg-config search path.\r\n    Perhaps you should add the directory containing `libffi.pc'\r\n    to the PKG_CONFIG_PATH environment variable\r\n    No package 'libffi' found\r\n    Package libffi was not found in the pkg-config search path.\r\n    Perhaps you should add the directory containing `libffi.pc'\r\n    to the PKG_CONFIG_PATH environment variable\r\n    No package 'libffi' found\r\n    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory\r\n    compilation terminated.\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python3.5/distutils/unixccompiler.py\", line 118, in _compile\r\n        extra_postargs)\r\n      File \"/usr/lib/python3.5/distutils/ccompiler.py\", line 909, in spawn\r\n        spawn(cmd, dry_run=self.dry_run)\r\n      File \"/usr/lib/python3.5/distutils/spawn.py\", line 36, in spawn\r\n        _spawn_posix(cmd, search_path, dry_run=dry_run)\r\n      File \"/usr/lib/python3.5/distutils/spawn.py\", line 159, in _spawn_posix\r\n        % (cmd, exit_status))\r\n    distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1\r\n    \r\n    During handling of the above exception, another exception occurred:\r\n    \r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python3.5/distutils/core.py\", line 148, in setup\r\n        dist.run_commands()\r\n      File \"/usr/lib/python3.5/distutils/dist.py\", line 955, in run_commands\r\n        self.run_command(cmd)\r\n      File \"/usr/lib/python3.5/distutils/dist.py\", line 974, in run_command\r\n        cmd_obj.run()\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/bdist_egg.py\", line 161, in run\r\n        cmd = self.call_command('install_lib', warn_dir=0)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/bdist_egg.py\", line 147, in call_command\r\n        self.run_command(cmdname)\r\n      File \"/usr/lib/python3.5/distutils/cmd.py\", line 313, in run_command\r\n        self.distribution.run_command(command)\r\n      File \"/usr/lib/python3.5/distutils/dist.py\", line 974, in run_command\r\n        cmd_obj.run()\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/install_lib.py\", line 23, in run\r\n        self.build()\r\n      File \"/usr/lib/python3.5/distutils/command/install_lib.py\", line 109, in build\r\n        self.run_command('build_ext')\r\n      File \"/usr/lib/python3.5/distutils/cmd.py\", line 313, in run_command\r\n        self.distribution.run_command(command)\r\n      File \"/usr/lib/python3.5/distutils/dist.py\", line 974, in run_command\r\n        cmd_obj.run()\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/build_ext.py\", line 49, in run\r\n        _build_ext.run(self)\r\n      File \"/usr/lib/python3.5/distutils/command/build_ext.py\", line 338, in run\r\n        self.build_extensions()\r\n      File \"/usr/lib/python3.5/distutils/command/build_ext.py\", line 447, in build_extensions\r\n        self._build_extensions_serial()\r\n      File \"/usr/lib/python3.5/distutils/command/build_ext.py\", line 472, in _build_extensions_serial\r\n        self.build_extension(ext)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/build_ext.py\", line 174, in build_extension\r\n        _build_ext.build_extension(self, ext)\r\n      File \"/usr/lib/python3.5/distutils/command/build_ext.py\", line 532, in build_extension\r\n        depends=ext.depends)\r\n      File \"/usr/lib/python3.5/distutils/ccompiler.py\", line 574, in compile\r\n        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)\r\n      File \"/usr/lib/python3.5/distutils/unixccompiler.py\", line 120, in _compile\r\n        raise CompileError(msg)\r\n    distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1\r\n    \r\n    During handling of the above exception, another exception occurred:\r\n    \r\n    Traceback (most recent call last):\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 154, in save_modules\r\n        yield saved\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 195, in setup_context\r\n        yield\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 243, in run_setup\r\n        DirectorySandbox(setup_dir).run(runner)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 273, in run\r\n        return func()\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 242, in runner\r\n        _execfile(setup_script, ns)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 46, in _execfile\r\n        exec(code, globals, locals)\r\n      File \"/tmp/easy_install-dikbzaa_/cffi-1.8.3/setup.py\", line 193, in <module>\r\n      File \"/usr/lib/python3.5/distutils/core.py\", line 163, in setup\r\n        raise SystemExit(\"error: \" + str(msg))\r\n    SystemExit: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1\r\n    \r\n    During handling of the above exception, another exception occurred:\r\n    \r\n    Traceback (most recent call last):\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 1087, in run_setup\r\n        run_setup(setup_script, args)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 246, in run_setup\r\n        raise\r\n      File \"/usr/lib/python3.5/contextlib.py\", line 77, in __exit__\r\n        self.gen.throw(type, value, traceback)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 195, in setup_context\r\n        yield\r\n      File \"/usr/lib/python3.5/contextlib.py\", line 77, in __exit__\r\n        self.gen.throw(type, value, traceback)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 166, in save_modules\r\n        saved_exc.resume()\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 141, in resume\r\n        six.reraise(type, exc, self._tb)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/pkg_resources/_vendor/six.py\", line 685, in reraise\r\n        raise value.with_traceback(tb)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 154, in save_modules\r\n        yield saved\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 195, in setup_context\r\n        yield\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 243, in run_setup\r\n        DirectorySandbox(setup_dir).run(runner)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 273, in run\r\n        return func()\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 242, in runner\r\n        _execfile(setup_script, ns)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/sandbox.py\", line 46, in _execfile\r\n        exec(code, globals, locals)\r\n      File \"/tmp/easy_install-dikbzaa_/cffi-1.8.3/setup.py\", line 193, in <module>\r\n      File \"/usr/lib/python3.5/distutils/core.py\", line 163, in setup\r\n        raise SystemExit(\"error: \" + str(msg))\r\n    SystemExit: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1\r\n    \r\n    During handling of the above exception, another exception occurred:\r\n    \r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 1, in <module>\r\n      File \"/tmp/pip-build-igenunw5/snimpy/setup.py\", line 66, in <module>\r\n        'version_module_paths': ['snimpy/_version.py'],\r\n      File \"/usr/lib/python3.5/distutils/core.py\", line 108, in setup\r\n        _setup_distribution = dist = klass(attrs)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/dist.py\", line 269, in __init__\r\n        self.fetch_build_eggs(attrs['setup_requires'])\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/dist.py\", line 313, in fetch_build_eggs\r\n        replace_conflicting=True,\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 826, in resolve\r\n        dist = best[req.key] = env.best_match(req, ws, installer)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 1092, in best_match\r\n        return self.obtain(req, installer)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 1104, in obtain\r\n        return installer(requirement)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/dist.py\", line 380, in fetch_build_egg\r\n        return cmd.easy_install(req)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 663, in easy_install\r\n        return self.install_item(spec, dist.location, tmpdir, deps)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 693, in install_item\r\n        dists = self.install_eggs(spec, download, tmpdir)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 873, in install_eggs\r\n        return self.build_and_install(setup_script, setup_base)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 1101, in build_and_install\r\n        self.run_setup(setup_script, setup_base, args)\r\n      File \"/data/projects/coaxis-opt/env/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 1089, in run_setup\r\n        raise DistutilsError(\"Setup script exited with %s\" % (v.args[0],))\r\n    distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1\r\n    \r\n    ----------------------------------------\r\n```"}}
{"actor":{"display_login":"edouard-lopez"}}