Home-Assistant-custom-components-Google-Keep icon indicating copy to clipboard operation
Home-Assistant-custom-components-Google-Keep copied to clipboard

Stop Working

Open milandzuris opened this issue 1 year ago • 38 comments

Integration Stop Working, have problem with login to google, i think is good make new integration and setup from UI.

milandzuris avatar May 07 '23 21:05 milandzuris

Logger: homeassistant.components.sensor
Source: custom_components/google_keep/sensor.py:39
Integration: Sensor (documentation, issues)
First occurred: 6 mei 2023 om 03:33:03 (1 occurrences)
Last logged: 6 mei 2023 om 03:33:03

Error while setting up google_keep platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/google_keep/sensor.py", line 39, in setup_platform
    login_success = keep.login(username, password)
  File "/usr/local/lib/python3.10/site-packages/gkeepapi/__init__.py", line 693, in login
    ret = auth.login(username, password, get_mac())
  File "/usr/local/lib/python3.10/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

@PiotrMachowski , would you please have a look in to this? Thank you very much in advance. ;-)

BebeMischa avatar May 07 '23 21:05 BebeMischa

Logger: homeassistant.components.sensor
Source: custom_components/google_keep/sensor.py:39
Integration: Sensor (documentation, issues)
First occurred: 6 mei 2023 om 03:33:03 (1 occurrences)
Last logged: 6 mei 2023 om 03:33:03

Error while setting up google_keep platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/google_keep/sensor.py", line 39, in setup_platform
    login_success = keep.login(username, password)
  File "/usr/local/lib/python3.10/site-packages/gkeepapi/__init__.py", line 693, in login
    ret = auth.login(username, password, get_mac())
  File "/usr/local/lib/python3.10/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

@PiotrMachowski , would you please have a look in to this? Thank you very much in advance. ;-)

same

milandzuris avatar May 07 '23 23:05 milandzuris

Same here!

superharaldsson avatar May 08 '23 05:05 superharaldsson

same issue here since 2023.5

yjamal01 avatar May 08 '23 14:05 yjamal01

same here

AlexKusnezov avatar May 08 '23 14:05 AlexKusnezov

this problem i have last month i think from core 2023.4

milandzuris avatar May 08 '23 18:05 milandzuris

you start working on this problem or is time to delete? (question) thx

milandzuris avatar May 08 '23 18:05 milandzuris

you start working on this problem or is time to delete? (question) thx

Huh? I'm not sure what you mean.

I have confirmed that this problem exists on my instance as well. I suspect this issue has been caused by upgrade of requests library. This integration uses gkeepapi library and it seems to be highly dependent on version of requests.

PiotrMachowski avatar May 08 '23 19:05 PiotrMachowski

So, @PiotrMachowski , do we need to check/update something in our systems, or is it something you would need to take care of? If we can fix it our self, fine, if we just do know how... ;-)

BebeMischa avatar May 11 '23 18:05 BebeMischa

No, you can't fix it. I'm not sure if I can fix it, as it seems to be a problem with a library that I use

PiotrMachowski avatar May 11 '23 19:05 PiotrMachowski

Well, then I just wish you the strength to over-win this ;-) Will wait quietly with hope on my mind ;-)

BebeMischa avatar May 11 '23 19:05 BebeMischa

Same here! @PiotrMachowski I sincerely hope you can help us. this integration of yours is very important to me. Thank you very much.

cagarrinho avatar May 12 '23 09:05 cagarrinho

I'd be happy if this is gonna be fixed :)

Disturbx avatar May 24 '23 09:05 Disturbx

Would it be possible to use the master token, instead?

Seems it was the work around for other custom integrations, such as @leikoilja's ha-google-home.

ostracizado avatar Jun 02 '23 09:06 ostracizado

@ostracizado it should be possible (library documentation)

PiotrMachowski avatar Jun 02 '23 10:06 PiotrMachowski

I have the same problem, is there a solution?

Roei639 avatar Jun 03 '23 11:06 Roei639

Same here

biejay avatar Jun 05 '23 16:06 biejay

Is there a hope this is going to be resolved or is the project dead now?

slake119 avatar Jun 12 '23 19:06 slake119

@slake119 There is a hope, but I don't have much time at this moment.

PiotrMachowski avatar Jun 12 '23 19:06 PiotrMachowski

So, should I now declare this card not reliable enough and look for a different approach? It now takes too long... ;-)

BebeMischa avatar Jul 03 '23 06:07 BebeMischa

So, should I now declare this card not reliable enough and look for a different approach? It now takes too long... ;-)

Let me know if you find a different method do manage GKeep lists on HA, please. Now that Google dismissed 3rd party list integration from Assistant, I had to come back to GKeep and there's no working integration :(

PS: I will abandon any Google product as soon as possible. No improvements, only removed features, lot of EOL, no support, nothing that works well, many bugs, etc

AFumi39 avatar Jul 11 '23 14:07 AFumi39

that's, what I mean. I will just look for completely another solution. Bye bye Google Keep... ;-)

BebeMischa avatar Jul 11 '23 14:07 BebeMischa

that's, what I mean. I will just look for completely another solution. Bye bye Google Keep... ;-)

It might be a good idea - this integration uses a library that uses an unofficial way to get data from GKeep, so there's absolutely no guarantee. Additionally it constantly keeps on breaking on changes of underlying libraries/python versions.

PiotrMachowski avatar Jul 11 '23 15:07 PiotrMachowski

Yeah, I use Bring! from few months, right now. Lot better than Keep (but there's also AnyList and similar). But with last changes of Google Assistant, from today custom shopping lists are not supported anymore. You have to use Google Keep, so I'm trying to find a way to connect with Keep and maybe sync it with Bring

AFumi39 avatar Jul 11 '23 15:07 AFumi39

Áno, používam Bring! od pár mesiacov práve teraz. Oveľa lepšie ako Keep (ale je tu aj AnyList a podobne). S poslednými zmenami Asistenta Google však od dnešného dňa už nie sú podporované vlastné nákupné zoznamy. Musíte používať službu Google Keep, takže sa snažím nájsť spôsob, ako sa spojiť s aplikáciou Keep a možno ju synchronizovať s aplikáciou Bring

same

milandzuris avatar Jul 11 '23 15:07 milandzuris

I have the same problem.

Cross-listing the dependency issue ticket for visibility: https://github.com/simon-weber/gpsoauth/issues/48

ELind77 avatar Jul 31 '23 03:07 ELind77

you start working on this problem or is time to delete? (question) thx

Huh? I'm not sure what you mean.

I have confirmed that this problem exists on my instance as well. I suspect this issue has been caused by upgrade of requests library. This integration uses gkeepapi library and it seems to be highly dependent on version of requests.

What version of requests is your integration dependent on? I'm wondering if it would be possible to maybe have a local version of the requests library for the specific version the integration requires and import it from a local source for this specific integration..?

CodeNeedsCoffee avatar Aug 01 '23 04:08 CodeNeedsCoffee

At this moment integration uses version that is installed by HA (requests==2.31.0 for HA 2023.7.3)

PiotrMachowski avatar Aug 01 '23 09:08 PiotrMachowski

so, still not working? thanks!

elfux avatar Aug 07 '23 14:08 elfux

Is there any hope of getting it going again? Or should I start looking for other options?

superharaldsson avatar Sep 05 '23 11:09 superharaldsson