gjcarneiro / yacron

A modern Cron replacement that is Docker-friendly
MIT License
449 stars 38 forks source link

Fails to Send Email: login() got some positional-only arguments passed as keyword arguments: 'username, password' #95

Closed totalhack closed 1 month ago

totalhack commented 1 month ago

Description

When trying to send email on job failure I get:

login() got some positional-only arguments passed as keyword arguments: 'username, password'

Looking at the yacron code it looks like keyword args are used:

https://github.com/gjcarneiro/yacron/blob/bde0f0b73d227636adf40d849fd281451136c476/yacron/job.py#L220

This wasn't an issue for me until recently so some dependency perhaps moved and started to trigger this?

totalhack commented 1 month ago

Pinning aiosmtplib==2.0.2 solves the issue for me. Something in my environment must have bumped to a v3 version of that dependency.