{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13325","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13325/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13325/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13325/events","html_url":"https://github.com/home-assistant/home-assistant/issues/13325","id":306290486,"number":13325,"title":"Dependency paramiko throw error during install.","user":{"login":"CooleRnax","id":980180,"avatar_url":"https://avatars0.githubusercontent.com/u/980180?v=4","gravatar_id":"","url":"https://api.github.com/users/CooleRnax","html_url":"https://github.com/CooleRnax","followers_url":"https://api.github.com/users/CooleRnax/followers","following_url":"https://api.github.com/users/CooleRnax/following{/other_user}","gists_url":"https://api.github.com/users/CooleRnax/gists{/gist_id}","starred_url":"https://api.github.com/users/CooleRnax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CooleRnax/subscriptions","organizations_url":"https://api.github.com/users/CooleRnax/orgs","repos_url":"https://api.github.com/users/CooleRnax/repos","events_url":"https://api.github.com/users/CooleRnax/events{/privacy}","received_events_url":"https://api.github.com/users/CooleRnax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-18T22:27:40Z","updated_at":"2018-03-20T22:16:20Z","closed_at":null,"author_association":"NONE","body":"**Home Assistant release (`hass --version`):**\r\n0.65.5\r\n\r\n**Python release (`python3 --version`):**\r\nPython 3.6.3\r\n\r\n**Component/platform:**\r\nCustom component\r\n\r\n**Description of problem:**\r\nI'm developing a custom component that uses paramiko library.\r\nDependency throw error during install.\r\nPlease help.\r\n\r\n**Expected:**\r\nPackage libffi was not found in the pkg-config\r\nCommand \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-build-qhl594en/pynacl/\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n# REQUIREMENTS = ['paramiko']\r\n\r\n    Complete output from command python setup.py egg_info:\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    Package 'libffi', required by 'virtual:world', not 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    Package 'libffi', required by 'virtual:world', not 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    Package 'libffi', required by 'virtual:world', not 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    Package 'libffi', required by 'virtual:world', not 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    Package 'libffi', required by 'virtual:world', not found\r\n    \r\n        No working compiler found, or bogus compiler options passed to\r\n        the compiler from Python's standard \"distutils\" module.  See\r\n        the error messages above.  Likely, the problem is not related\r\n        to CFFI but generic to the setup.py of any Python package that\r\n        tries to compile C code.  (Hints: on OS/X 10.8, for errors about\r\n        -mno-fused-madd see http://stackoverflow.com/questions/22313407/\r\n        Otherwise, see https://wiki.python.org/moin/CompLangPython or\r\n        the IRC channel #python on irc.freenode.net.)\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 157, in save_modules\r\n        yield saved\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 198, in setup_context\r\n        yield\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 248, in run_setup\r\n        DirectorySandbox(setup_dir).run(runner)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 278, in run\r\n        return func()\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 246, in runner\r\n        _execfile(setup_script, ns)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 47, in _execfile\r\n        exec(code, globals, locals)\r\n      File \"/tmp/easy_install-mht2lfmy/cffi-1.11.5/setup.py\", line 142, in <module>\r\n        raise\r\n      File \"/tmp/easy_install-mht2lfmy/cffi-1.11.5/setup.py\", line 77, in ask_supports_thread\r\n        result = []\r\n      File \"/tmp/easy_install-mht2lfmy/cffi-1.11.5/setup.py\", line 59, in no_working_compiler_found\r\n        def here(*paths):\r\n    SystemExit: 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.6/site-packages/setuptools/command/easy_install.py\", line 1101, in run_setup\r\n        run_setup(setup_script, args)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 251, in run_setup\r\n        raise\r\n      File \"/usr/lib/python3.6/contextlib.py\", line 99, in __exit__\r\n        self.gen.throw(type, value, traceback)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 198, in setup_context\r\n        yield\r\n      File \"/usr/lib/python3.6/contextlib.py\", line 99, in __exit__\r\n        self.gen.throw(type, value, traceback)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 169, in save_modules\r\n        saved_exc.resume()\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 144, in resume\r\n        six.reraise(type, exc, self._tb)\r\n      File \"/usr/lib/python3.6/site-packages/pkg_resources/_vendor/six.py\", line 685, in reraise\r\n        raise value.with_traceback(tb)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 157, in save_modules\r\n        yield saved\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 198, in setup_context\r\n        yield\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 248, in run_setup\r\n        DirectorySandbox(setup_dir).run(runner)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 278, in run\r\n        return func()\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 246, in runner\r\n        _execfile(setup_script, ns)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/sandbox.py\", line 47, in _execfile\r\n        exec(code, globals, locals)\r\n      File \"/tmp/easy_install-mht2lfmy/cffi-1.11.5/setup.py\", line 142, in <module>\r\n        raise\r\n      File \"/tmp/easy_install-mht2lfmy/cffi-1.11.5/setup.py\", line 77, in ask_supports_thread\r\n        result = []\r\n      File \"/tmp/easy_install-mht2lfmy/cffi-1.11.5/setup.py\", line 59, in no_working_compiler_found\r\n        def here(*paths):\r\n    SystemExit: 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-qhl594en/pynacl/setup.py\", line 251, in <module>\r\n        \"Programming Language :: Python :: 3.6\",\r\n      File \"/usr/lib/python3.6/distutils/core.py\", line 108, in setup\r\n        _setup_distribution = dist = klass(attrs)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/dist.py\", line 315, in __init__\r\n        self.fetch_build_eggs(attrs['setup_requires'])\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/dist.py\", line 361, in fetch_build_eggs\r\n        replace_conflicting=True,\r\n      File \"/usr/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 850, in resolve\r\n        dist = best[req.key] = env.best_match(req, ws, installer)\r\n      File \"/usr/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 1122, in best_match\r\n        return self.obtain(req, installer)\r\n      File \"/usr/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 1134, in obtain\r\n        return installer(requirement)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/dist.py\", line 429, in fetch_build_egg\r\n        return cmd.easy_install(req)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py\", line 665, in easy_install\r\n        return self.install_item(spec, dist.location, tmpdir, deps)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py\", line 695, in install_item\r\n        dists = self.install_eggs(spec, download, tmpdir)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py\", line 876, in install_eggs\r\n        return self.build_and_install(setup_script, setup_base)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py\", line 1115, in build_and_install\r\n        self.run_setup(setup_script, setup_base, args)\r\n      File \"/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py\", line 1103, in run_setup\r\n        raise DistutilsError(\"Setup script exited with %s\" % (v.args[0],))\r\n    distutils.errors.DistutilsError: Setup script exited with 1\r\n    \r\n    ----------------------------------------\r\nCommand \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-build-qhl594en/pynacl/"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/374775841","html_url":"https://github.com/home-assistant/home-assistant/issues/13325#issuecomment-374775841","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13325","id":374775841,"user":{"login":"CooleRnax","id":980180,"avatar_url":"https://avatars0.githubusercontent.com/u/980180?v=4","gravatar_id":"","url":"https://api.github.com/users/CooleRnax","html_url":"https://github.com/CooleRnax","followers_url":"https://api.github.com/users/CooleRnax/followers","following_url":"https://api.github.com/users/CooleRnax/following{/other_user}","gists_url":"https://api.github.com/users/CooleRnax/gists{/gist_id}","starred_url":"https://api.github.com/users/CooleRnax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CooleRnax/subscriptions","organizations_url":"https://api.github.com/users/CooleRnax/orgs","repos_url":"https://api.github.com/users/CooleRnax/repos","events_url":"https://api.github.com/users/CooleRnax/events{/privacy}","received_events_url":"https://api.github.com/users/CooleRnax/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T22:16:20Z","updated_at":"2018-03-20T22:16:20Z","author_association":"NONE","body":"yes"}}
{"actor":{"display_login":"CooleRnax"}}