question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing to install due to glocaltokens dependancy (grpcio-tools)

See original GitHub issue

Hi.

Im having trouble installing your addon, which btw is amazing work. I followed the guide provided but when i launch homeassistant and try to setup the integration nothing happens. Multiple errors show up in the logs.

2021-02-08 14:54:18 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package glocaltokens==0.1.4: ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2u_2xggr/grpcio-tools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2u_2xggr/grpcio-tools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-iz62u3yg
cwd: /tmp/pip-install-2u_2xggr/grpcio-tools/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-2u_2xggr/grpcio-tools/setup.py", line 151, in <module>
if check_linker_need_libatomic():
File "/tmp/pip-install-2u_2xggr/grpcio-tools/setup.py", line 80, in check_linker_need_libatomic
cpp_test = subprocess.Popen([cxx, '-x', 'c++', '-std=c++11', '-'],
File "/usr/local/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'c++'

Not sure if this last error is regarding glocaltokens.

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
2021-02-08 14:54:18 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 136, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 69, in post
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 119, in async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 541, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 343, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 79, in async_get_integration_with_requirements
await async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 136, in async_process_requirements
raise RequirementsNotFound(name, [req])

Any suggestions? Could very well be my fault.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
DurgNomis-drolcommented, Feb 10, 2021

The problem is that Homeassistant docker is based upon Alpine. grpcio grpcio-tools buildwheels doesn’t work with Alpine. @leikoilja have already made an issue with Homeassistant so we can make it work.

1reaction
DurgNomis-drolcommented, Feb 9, 2021

Try installing grpcio-tools manually in terminal. Run: pip install grpcio-tools==1.31.0 Same versions as grpcio in Homeassistant. This may take some time depending on how fast your system are. On rpi it takes about 20 -30 minutes.

And remember to restart afterwards

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failing to install due to glocaltokens dependancy (grpcio-tools)
Hi. Im having trouble installing your addon, which btw is amazing work. I followed the guide provided but when i launch homeassistant and ......
Read more >
Unable to install grpcio using pip install grpcio - Stack Overflow
First, upgrade pip pip3 install --upgrade pip. Then, update the setup tools: python3 -m pip install --upgrade setuptools ...
Read more >
grpcio-tools 0.14.0 - PyPI
sudo pip install grpcio-tools. If you're on Windows make sure that you installed the :code:`pip.exe` component when you installed Python (if not go...
Read more >
Parameter sharing, revisited (again) - WandB
We evaluate standard and homebrew techniques for parameter sharing in GPT-like language models on OpenWebText dataset; conducted partly by Tim Dettmers, ...
Read more >
Index of Portage & Programming - Gentoo Forums
Page:1 · "Failure to emerge world related to gnutls" Page:1 · "Unsatisfied dependencies ... "Listing installed pkgs without "external" tools" Page:1 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found