Modify ↓
#1821 closed defect (worksforme)
urlopen error unknown url type: https
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | normal | Component: | TracCasPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description (last modified by )
After trying to log in with CAS, this error is spat out, and the TracCAS plugin is unloaded:
2007-07-18 16:15:47,574 Trac[main] ERROR: <urlopen error unknown url type: https>
Traceback (most recent call last): File "/opt/local/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request dispatcher.dispatch(req) File "/opt/local/lib/python2.5/site-packages/trac/web/main.py", line 182, in dispatch req.authname = self.authenticate(req) File "/opt/local/lib/python2.5/site-packages/trac/web/main.py", line 146, in authenticate authname = authenticator.authenticate(req) File "build/bdist.macosx-10.3-ppc/egg/traccas/traccas.py", line 34, in authenticate valid, user = self.cas.validate_ticket(req.abs_href.login(), ticket) File "build/bdist.macosx-10.3-ppc/egg/traccas/pycas.py", line 41, in validate_ticket f = urllib2.urlopen(self.validate_url(service, ticket)) File "/opt/local/lib/python2.5/urllib2.py", line 121, in urlopen return _opener.open(url, data) File "/opt/local/lib/python2.5/urllib2.py", line 374, in open response = self._open(req, data) File "/opt/local/lib/python2.5/urllib2.py", line 397, in _open 'unknown_open', req) File "/opt/local/lib/python2.5/urllib2.py", line 353, in _call_chain result = func(*args) File "/opt/local/lib/python2.5/urllib2.py", line 1133, in unknown_open raise URLError('unknown url type: %s' % type) URLError: <urlopen error unknown url type: https>
Attachments (0)
Change History (2)
comment:1 Changed 17 years ago by
Description: | modified (diff) |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
comment:2 Changed 17 years ago by
I just figured that out myself after writing a test case!
The MacPorts versions of Python don't include the SSL libraries by default. If you're using Trac in python25 from MacPorts, you'll also need "py25-socket-ssl" installed for this plugin to work (or py-openssl for python24).
Note: See
TracTickets for help on using
tickets.
You need to compile Python (and therefore the socket module) with SSL support.