Attachment 'traceback.html'

Download

--> -->

AttributeError

SMTP instance has no attribute 'sock'

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /usr/lib/python2.3/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestModPy object>)

    1. 1063 pass
    2. 1064 except Exception, err:
    3. 1065 self.fail(err)
    4. 1066
    5. 1067 return self.finish()
    • self = <MoinMoin.request.RequestModPy object>
    • self.fail = <bound method RequestModPy.fail of <MoinMoin.request.RequestModPy object>>
    • err = <exceptions.AttributeError instance>
  2. /usr/lib/python2.3/site-packages/MoinMoin/wikiaction.py in do_userform (pagename=u'UserPreferences', request=<MoinMoin.request.RequestModPy object>)

    1. 726 def do_userform(pagename, request):
    2. 727 from MoinMoin import userform
    3. 728 savemsg = userform.savedata(request)
    4. 729 Page(request, pagename).send_page(request, msg=savemsg)
    5. 730
    • savemsg undefined
    • userform = <module 'MoinMoin.userform' from '/usr/lib/python2.3/site-packages/MoinMoin/userform.pyc'>
    • userform.savedata = <function savedata>
    • request = <MoinMoin.request.RequestModPy object>
  3. /usr/lib/python2.3/site-packages/MoinMoin/userform.py in savedata (request=<MoinMoin.request.RequestModPy object>)

    1. 23 Return error msg or None.
    2. 24 """
    3. 25 return UserSettingsHandler(request).handleData()
    4. 26
    5. 27
    • global UserSettingsHandler = <class MoinMoin.userform.UserSettingsHandler>
    • request = <MoinMoin.request.RequestModPy object>
    • ).handleData undefined
  4. /usr/lib/python2.3/site-packages/MoinMoin/userform.py in handleData (self=<MoinMoin.userform.UserSettingsHandler instance>)

    1. 78 theuser = user.User(self.request, uid)
    2. 79 if theuser.valid and theuser.email.lower() == email:
    3. 80 msg = theuser.mailAccountData()
    4. 81 return wikiutil.escape(msg)
    5. 82
    • msg undefined
    • theuser = <MoinMoin.user.User at 0xb6dde3ec name:u'CarlosVieira' id:1137611130.94.33401 valid:1>
    • theuser.mailAccountData = <bound method User.mailAccountData of <MoinMoin....:u'CarlosVieira' id:1137611130.94.33401 valid:1>>
  5. /usr/lib/python2.3/site-packages/MoinMoin/user.py in mailAccountData (self=<MoinMoin.user.User at 0xb6dde3ec name:u'CarlosVieira' id:1137611130.94.33401 valid:1>, cleartext_passwd=None)

    1. 959 formatted=False) % {'sitename': self._cfg.sitename or "Wiki"}
    2. 960 mailok, msg = mail.sendmail(self._request, [self.email], subject,
    3. 961 text, mail_from=self._cfg.mail_from)
    4. 962 return msg
    5. 963
    • text = u'Somebody has requested to submit your account da...devwiki/?action=userform&uid=1137611130.94.33401\n'
    • mail_from undefined
    • self = <MoinMoin.user.User at 0xb6dde3ec name:u'CarlosVieira' id:1137611130.94.33401 valid:1>
    • self._cfg = <wikiconfig.Config instance>
    • self._cfg.mail_from = ''
  6. /usr/lib/python2.3/site-packages/MoinMoin/util/mail.py in sendmail (request=<MoinMoin.request.RequestModPy object>, to=[u'carlos@boreste.com'], subject='[Boreste Development Wiki] Your wiki account data', text='Somebody has requested to submit your account da...evwiki/?action=userform&uid=1137611130.94.33401\r\n', **kw={'mail_from': ''})

    1. 120 return (0, str(e))
    2. 121 except (os.error, socket.error), e:
    3. 122 return (0, _("Connection to mailserver '%(server)s' failed: %(reason)s") % {
    4. 123 'server': cfg.mail_smarthost,
    5. 124 'reason': str(e)
    • _ = <function <lambda>>
    • cfg = <wikiconfig.Config instance>
    • cfg.mail_smarthost = ''
    • builtin str = <type 'str'>
    • e undefined
  7. /usr/lib/python2.3/smtplib.py in sendmail (self=<smtplib.SMTP instance>, from_addr='', to_addrs=[u'carlos@boreste.com'], msg='MIME-Version: 1.0\nContent-Type: text/plain; char...i/?action=3Duserform&uid=3D1137611130.=\n94.33401\n', mail_options=[], rcpt_options=[])

    1. 658 """
    2. 659 if self.helo_resp is None and self.ehlo_resp is None:
    3. 660 if not (200 <= self.ehlo()[0] <= 299):
    4. 661 (code,resp) = self.helo()
    5. 662 if not (200 <= code <= 299):
    • self = <smtplib.SMTP instance>
    • self.ehlo = <bound method SMTP.ehlo of <smtplib.SMTP instance>>
  8. /usr/lib/python2.3/smtplib.py in ehlo (self=<smtplib.SMTP instance>, name='')

    1. 387 """
    2. 388 self.esmtp_features = {}
    3. 389 self.putcmd("ehlo", name or self.local_hostname)
    4. 390 (code,msg)=self.getreply()
    5. 391 # According to RFC1869 some (badly written)
    • self = <smtplib.SMTP instance>
    • self.putcmd = <bound method SMTP.putcmd of <smtplib.SMTP instance>>
    • name = ''
    • self.local_hostname = 'anchova.boreste'
  9. /usr/lib/python2.3/smtplib.py in putcmd (self=<smtplib.SMTP instance>, cmd='ehlo', args='anchova.boreste')

    1. 323 else:
    2. 324 str = '%s %s%s' % (cmd, args, CRLF)
    3. 325 self.send(str)
    4. 326
    5. 327 def getreply(self):
    • self = <smtplib.SMTP instance>
    • self.send = <bound method SMTP.send of <smtplib.SMTP instance>>
    • str = 'ehlo anchova.boreste\r\n'
  10. /usr/lib/python2.3/smtplib.py in send (self=<smtplib.SMTP instance>, str='ehlo anchova.boreste\r\n')

    1. 308 """Send `str' to the server."""
    2. 309 if self.debuglevel > 0: print 'send:', `str`
    3. 310 if self.sock:
    4. 311 try:
    5. 312 self.sock.sendall(str)
    • self = <smtplib.SMTP instance>
    • self.sock undefined

AttributeError

SMTP instance has no attribute 'sock'

  • args = ("SMTP instance has no attribute 'sock'",)

System Details

  • Date: Mon, 23 Jan 2006 23:22:03 +0000
  • Platform: Linux anchova.boreste 2.6.12-1.1372_FC3 #1 Fri Jul 15 00:59:10 EDT 2005 i686
  • Python: Python 2.3.4 (/usr/bin/python)
  • MoinMoin: Release 1.5.0 (release)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-01-23 23:24:35, 13.2 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.