Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8841 closed defect (worksforme)

AttributeError: 'module' object has no attribute 'ssl'

Reported by: mudassir Owned by: Emmanuel Blot
Priority: highest Milestone:
Component: notification Version: 0.11.5rc2
Severity: critical Keywords: module object has no ssl attribute
Cc: mudassir@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /, Trac issued an internal error.

(please provide additional details here)

User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102814 Ubuntu/8.04 (hardy) Firefox/3.0.15

System Information

Trac 0.11.5rc2
Python 2.5.4 (r254:67916, Nov 18 2009, 22:15:23)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
setuptools 0.7a1
SQLite 3.3.6
pysqlite 2.5.6
Genshi 0.5.1
GIT 1.6.2.2
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc2-py2.5.egg/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc2-py2.5.egg/trac/web/main.py", line 216, in dispatch
    self._post_process_request(req, *resp)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc2-py2.5.egg/trac/web/main.py", line 308, in _post_process_request
    resp = f.post_process_request(req, *resp)
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 551, in post_process_request
    self._send_email(req)
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 590, in _send_email
    notifier.notify(req.authname, req.session['email_verification_token'])
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 520, in notify
    SingleUserNofification.notify(self, username, subject)
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 124, in notify
    NotifyEmail.notify(self, username, subject)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc2-py2.5.egg/trac/notification.py", line 241, in notify
    Notify.notify(self, resid)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc2-py2.5.egg/trac/notification.py", line 134, in notify
    self.begin_send()
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc2-py2.5.egg/trac/notification.py", line 320, in begin_send
    self.server.starttls()
  File "/usr/local/lib/python2.5/smtplib.py", line 605, in starttls
    sslobj = socket.ssl(self.sock, keyfile, certfile)
AttributeError: 'module' object has no attribute 'ssl'

Attachments (0)

Change History (4)

comment:1 by Remy Blank, 15 years ago

The traceback mentions AccountManagerPlugin, but I don't think it is to blame. It seems that your Python installation was compiled without SSL, or the SSL libraries cannot be found. Could you please try the following at a Python prompt:

>>> import socket
>>> socket.ssl
<function ssl at 0xb7be302c>

You should get an output similar to the above, probably with a different address. If you get an exception, then you will have to check your Python / SSL installation.

comment:2 by mudassir@…, 15 years ago

Resolution: fixed
Status: newclosed

very thanks for your help my issue has been resolved by recompiling python with ssl support

comment:3 by Remy Blank, 15 years ago

Resolution: fixed
Status: closedreopened

Thanks for the feedback. Fixing the resolution (fixed is for when we actually did something in Trac).

comment:4 by Remy Blank, 15 years ago

Resolution: worksforme
Status: reopenedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Emmanuel Blot to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.