[users at bb.net] error "twisted-mail is not installed - cannnot send mail"
Pierre Tardy
tardyp at gmail.com
Sun Jun 11 11:24:37 UTC 2017
Several options come to mind.
- You could run a python2 master just for the mail reporter (with bb
multimaster capabilities)
- You could use pushjet or pushover notifiers which have email support and
also sms
http://docs.buildbot.net/latest/manual/cfg-reporters.html#pushover-notifications
- write a new reporter based on the basenotifier class which sends mail
using smtplib
https://www.tutorialspoint.com/python3/python_sending_email.htm
Pierre
On Sun, Jun 11, 2017 at 11:03 AM Drago Trusk <drago.trusk at gmail.com> wrote:
> Hi GK,
>
> unfortunately twisted-mail isn't ported to Python 3 and I don't think it
> will be ported at all:
> http://fedora.portingdb.xyz/pkg/python-twisted-mail/
> If you can live with Python 2, you will have mail sending capabilities.
>
> I didn't had time to research if it's possible and how to change Buildbot
> to use different mail package so I'm not sure if such option is available
> in case of BB for Python 3.
>
> Bye,
> Drago
>
> On 06/09/2017 08:07 AM, GK Gk wrote:
>
> Recently i try to deploy my project into buildbot. Buildbot work prefect
> except mail module. it always show error"twisted-mail is not installed.
> cannot send mail" when i update master.cfg. below is email moudle relevant
> code in master.cfg:
>
>
> Env:
> python3.4 ubuntu16.04 server
> Code:
>
> c['services'] = []
> from buildbot.reporters.mail import MailNotifier
> mn = MailNotifier(fromaddr='xx at gmail.com', relayhost="smtp.gmail.com
> ",extraRecipients=["xx at gmail.com"], smtpPort=587, smtpUser="xxx",
> smtpPassword="xxx")
> c['services'].append(mn)
>
> i have installed twisted using "pip install Twisted", and as my
> consideration, buildbot cannot work if i failed to install it. Is my code
> error or i have not installed necessary library, anyone could give me some
> comment, appreciate your help.
>
>
>
>
> _______________________________________________
> users mailing listusers at buildbot.nethttps://lists.buildbot.net/mailman/listinfo/users
>
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170611/2a12fb2a/attachment.html>
More information about the users
mailing list