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.

Wont Start / Cant Delete

See original GitHub issue

I have an issue where by this integration wont start.

My error logs show

2021-12-29 10:54:53 ERROR (MainThread) [homeassistant.setup] Setup failed for google_home: Unable to import component: cannot import name 'Device' from 'glocaltokens.client' (/usr/local/lib/python3.9/site-packages/glocaltokens/client.py)

However, I am also unable to delete the integration from my system to try and reinstall it. When i try this, I get

2021-12-29 11:03:34 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 220, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 71, in delete result = await hass.config_entries.async_remove(entry_id) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 831, in async_remove await entry.async_remove(self.hass) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 487, in async_remove component = integration.get_component() File "/usr/src/homeassistant/homeassistant/loader.py", line 522, in get_component cache[self.domain] = importlib.import_module(self.pkg_path) File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/config/custom_components/google_home/__init__.py", line 17, in <module> from .api import GlocaltokensApiClient File "/config/custom_components/google_home/api.py", line 11, in <module> from glocaltokens.client import Device, GLocalAuthenticationTokens ImportError: cannot import name 'Device' from 'glocaltokens.client' (/usr/local/lib/python3.9/site-packages/glocaltokens/client.py)

Im running HA 2021.12.6

Any ideas what the issue is?

Thaks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
DurgNomis-drolcommented, Dec 30, 2021

I will close this as it is resolved, if the issue emerges again, please feel free to open this issue again 😃

0reactions
DurgNomis-drolcommented, Dec 30, 2021

Probably a bad boot where it didn’t load the system correctly

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Force Delete A File on Windows 11/10/8/7? [Can't ...
How to Force Delete a File That Cannot Be Deleted Windows 11/10 ; 1. End Task from Task Manager, Go to Start, type...
Read more >
How To Delete Files That Won't Delete - Tech Advisor
How to delete files that won't delete · 1. Close apps · 2. Close Windows Explorer · 3. Reboot Windows · 4. Use...
Read more >
How to Delete a File That Won't Delete in Windows 11/10
Way 1. Force Delete a File or Folder using CMD · Way 2. Shift + Delete Undeletable Files · Way 3. Delete Files...
Read more >
How to Fix Windows When it Won't Uninstall a Program
1. Restart the Windows Installer ; Type services.msc in Run and click Open. services.msc in Run ; In the Properties dialog, click on...
Read more >
Solved: Can't Delete File in Windows 10
Let's start with an easy one. If a file or folder won't delete from your computer, you can try forced removal via Command...
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