OK - found the problem.

Unfortunately, if you want to get this working now, you've only got 2 
options:
1) editing the source code
2) create a new version of the widget module and import that instead of the 
current module.

The problem is this 
line: 
https://github.com/qtile/qtile/blob/v0.16.1/libqtile/widget/gmail_checker.py#L39

The variable "fmt" clashes with a variable in the underlying _TextBox 
class. This makes the widget crash as it's loading (hence qtile doesn't 
start). If you change the variable name to something else (e.g. displayfmt) 
and also update lines 57 and 59 then it should work.

I'll submit a pull request to get this fixed in the main repo.

On Monday, 7 December 2020 at 17:17:07 UTC elParaguayo wrote:

> Just doing some testing but I think I've found the problem. 
>
> On Mon, 7 Dec 2020, 09:47 el Paraguayo, <[email protected]> wrote:
>
>> As an aside, I've also just tried logging in to Gmail via IMAP.
>>
>> It only worked for me after creating an app password (got error messages 
>> about invalid credentials before that).
>>
>> I appreciate that this isn't the issue with the widget but it's still 
>> interesting (to me, at least!). 
>>
>>
>> On Mon, 7 Dec 2020, 09:22 elParaguayo, <[email protected]> wrote:
>>
>>> Kai,
>>>
>>> Apologies! I hadn't seen that your email showed that the code worked. My 
>>> phone just showed your first line "I'm not using it, so I leave that up to 
>>> OP." and hid the rest.
>>>
>>> Now that we know it's not a security issue, we can do some more digging. 
>>>
>>> On Monday, 7 December 2020 at 08:00:07 UTC elParaguayo wrote:
>>>
>>>> I did say it was a guess!
>>>>
>>>> I haven't used Gmail via IMAP for a very long time and I have seen 
>>>> posts in other groups where security changes have caused issues.
>>>>
>>>> However, your experiences are clearly more recent than mine so I think 
>>>> OP can safely disregard my comment.
>>>>
>>>>
>>>> On Sun, 6 Dec 2020, 21:27 Kai Stian Olstad, <[email protected]> 
>>>> wrote:
>>>>
>>>>> On Sun, Dec 06, 2020 at 10:37:19AM -0800, elParaguayo wrote:
>>>>> > 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!
>>>>>
>>>>> I don't understand how you arrived to that conclusion since your 
>>>>> commands did
>>>>> work without the slef. part.
>>>>> I also use IMAP against Gmail with offlineimap, Neomutt and 
>>>>> Thunderbird on a
>>>>> daily basis.
>>>>>
>>>>> -- 
>>>>> 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/20201206212716.pmdt5chav2lmgqqc%40olstad.com
>>>>> .
>>>>>
>>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "qtile-dev" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/qtile-dev/VCXEJr_H7qk/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/qtile-dev/888da12d-8a34-4593-a494-a0d83bea04aan%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/qtile-dev/888da12d-8a34-4593-a494-a0d83bea04aan%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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/b3fb66e1-c5d6-4406-9751-9695545916a8n%40googlegroups.com.

Reply via email to