My guess is this app doesn't work because Google updated security so you
can't use standard username and password because it's not secure. They used
to have the ability to allow access to less secure apps but I think you now
have to generate a separate password for the app. Could be wrong though!
On Sunday, 6 December 2020 at 18:13:36 UTC Kai Stian Olstad wrote:
> On Sun, Dec 06, 2020 at 09:51:14AM -0800, elParaguayo wrote:
> > Might be worth posting an issue on github then.
>
> I'm not using it, so I leave that up to OP.
>
>
> > You could also try logging into gmail from a python session and running:
> >
> > import imaplib
> >
> > gmail = imaplib.IMAP4_SSL('imap.gmail.com')
> > gmail.login(<username>, <password>)
> > answer, raw_data = self.gmail.status("INBOX", "(MESSAGES UNSEEN)")
>
> Everything work fine until the last line
>
> ❯ python
> Python 3.9.0 (default, Oct 10 2020, 14:22:51)
> [GCC 9.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import imaplib
> >>> gmail = imaplib.IMAP4_SSL('imap.gmail.com')
> >>> gmail.login("kai.stian.olstad", "<the password>")
> ('OK', [b'[email protected] authenticated (Success)'])
> >>> answer, raw_data = self.gmail.status("INBOX", "(MESSAGES UNSEEN)")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> NameError: name 'self' is not defined
>
> Guess I should leave out the slef part since it's not a class.
>
>
> >>> answer, raw_data = gmail.status("INBOX", "(MESSAGES UNSEEN)")
> >>> print(answer)
> OK
> >>> print(raw_data)
> [b'"INBOX" (MESSAGES 8071 UNSEEN 0)']
>
> So this work but the widget doesn't.
>
> --
> Kai Stian Olstad
>
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/3d8217ff-b535-479e-992b-4ff52afe8275n%40googlegroups.com.