[users at bb.net] error "twisted-mail is not installed - cannnot send mail"
Craig Rodrigues
rodrigc at crodrigues.org
Tue Jun 13 16:45:35 UTC 2017
GK,
Pierre recently made some fixes to buildbot's mail support for Python 3,
in order to work with the latest Twisted 17.5.0 release which has more mail
fixes for Python 3:
https://github.com/buildbot/buildbot/pull/3310
Would you be able to test this?
You can do something like this:
# Create virtual environment
python3 -m venv buildbot-venv
source buildbot-venv/bin/activate
#
#
git clone https://github.com/buildbot/buildbot buildbot_test
cd buildbot_test
pip install -e pkg
pip install -e worker
pip install -e 'master[tls,tests]'
--
Craig
On Thu, Jun 8, 2017 at 11:07 PM, GK Gk <qzqsmile at gmail.com> 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 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/20170613/00d91dbe/attachment.html>
More information about the users
mailing list