AttributeError: 'SMTPConnection' object has no attribute 'send_text_and_attachment_email'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr email commit hook |
Fix Released
|
Critical
|
Bob Tanner |
Bug Description
Was debugging my problem documented at https:/
Switch from gpg to gpg2.
bzr-email now throws an exception:
File "/Users/
smtp.
AttributeError: 'SMTPConnection' object has no attribute 'send_text_
email$ bzr info
Lightweight checkout (format: pack-0.92)
Location:
light checkout root: .
checkout of branch: http://
$ bzr update
Tree is up to date at revision 57 of branch http://
email$ bzr --version
Bazaar (bzr) 2.6.0dev2
from bzr checkout /Users/
revision: 6522
revid: <email address hidden>
branch nick: bzr.dev
Python interpreter: /usr/bin/python 2.7.1
Python standard library: /System/
Platform: Darwin-
bzrlib: /Users/
Bazaar configuration: /Users/
Bazaar log file: /Users/
Tue 2012-04-17 08:29:04 -0500
0.053 bazaar version: 2.6.0dev2
0.053 bzr arguments: [u'commit']
0.056 looking for plugins in /Users/
0.062 looking for plugins in /Users/
0.068 looking for plugins in /Library/
0.070 encoding stdout as sys.stdout encoding 'US-ASCII'
0.091 opening working tree '/Users/
0.159 preparing to commit
[ 2765] 2012-04-17 08:29:04.949 INFO: Committing to: /Users/
0.170 Selecting files for commit with filter None
[ 2765] 2012-04-17 08:29:04.950 INFO: added a
[ 2765] 2012-04-17 08:29:04.950 INFO: added ah
[ 2765] 2012-04-17 08:29:04.950 INFO: added d
[ 2765] 2012-04-17 08:29:04.950 INFO: added df
[ 2765] 2012-04-17 08:29:04.950 INFO: added e
[ 2765] 2012-04-17 08:29:04.950 INFO: added f
[ 2765] 2012-04-17 08:29:04.950 INFO: added s
[ 2765] 2012-04-17 08:29:04.950 INFO: added sas
0.181 check paths: None
4.002 ** Env var TTY empty, cannot set GPG_TTY. Is TTY exported?
[ 2765] 2012-04-17 08:29:09.088 INFO: Committed revision 1.
4.309 Committed revid <email address hidden> as revno 1.
4.329 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
4.333 Traceback (most recent call last):
File "/Users/
return the_callable(*args, **kwargs)
File "/Users/
ret = run(*run_argv)
File "/Users/
return self.run(
File "/Users/
return self._operation
File "/Users/
self.cleanups, self.func, *args, **kwargs)
File "/Users/
result = func(*args, **kwargs)
File "/Users/
lossy=lossy)
File "/Users/
result = unbound(self, *args, **kwargs)
File "/Users/
result = WorkingTree.
File "/Users/
result = unbound(self, *args, **kwargs)
File "/Users/
*args, **kwargs)
File "/Users/
lossy=lossy)
File "/Users/
self.cleanups, self.func, self, *args, **kwargs)
File "/Users/
result = func(*args, **kwargs)
File "/Users/
self.
File "/Users/
self.
File "/Users/
self.rev_id)
File "/Users/
local_
File "/Users/
self.send()
File "/Users/
self.
File "/Users/
smtp.
AttributeError: 'SMTPConnection' object has no attribute 'send_text_
4.335 couldn't find apport bug-reporting library: No module named apport
4.344 return code 4
If I'm reading the code right bzr-email uses bzrlib/ smtp_connection .py
The relevant code snippets from bzr-email:
_smtplib_ implementation = SMTPConnection
smtp = self._smtplib_ implementation( self.config)
smtp. send_text_ and_attachment_ email(from_ addr, to_addrs,
subject, body, diff,
self. diff_filename( ),
self. extra_headers( ))
if diff:
I do not see the send_text_ and_attachment_ email method in bzrlib/ smtp_connection .py the only method I see about sending stuff is send_email(self, message):