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 , 15 years ago
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
very thanks for your help my issue has been resolved by recompiling python with ssl support
comment:3 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Thanks for the feedback. Fixing the resolution (fixed is for when we actually did something in Trac).
comment:4 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
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:
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.