Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1821 closed defect (worksforme)

urlopen error unknown url type: https

Reported by: techcon1@… Owned by: Noah Kantrowitz
Priority: normal Component: TracCasPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description (last modified by Noah Kantrowitz)

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/", line 406, in dispatch_request
  File "/opt/local/lib/python2.5/site-packages/trac/web/", line 182, in dispatch
    req.authname = self.authenticate(req)
  File "/opt/local/lib/python2.5/site-packages/trac/web/", line 146, in authenticate
    authname = authenticator.authenticate(req)
  File "build/bdist.macosx-10.3-ppc/egg/traccas/", line 34, in authenticate
    valid, user = self.cas.validate_ticket(req.abs_href.login(), ticket)
  File "build/bdist.macosx-10.3-ppc/egg/traccas/", line 41, in validate_ticket
    f = urllib2.urlopen(self.validate_url(service, ticket))
  File "/opt/local/lib/python2.5/", line 121, in urlopen
    return, data)
  File "/opt/local/lib/python2.5/", line 374, in open
    response = self._open(req, data)
  File "/opt/local/lib/python2.5/", line 397, in _open
    'unknown_open', req)
  File "/opt/local/lib/python2.5/", line 353, in _call_chain
    result = func(*args)
  File "/opt/local/lib/python2.5/", 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 10 years ago by Noah Kantrowitz

Description: modified (diff)
Resolution: worksforme
Status: newclosed

You need to compile Python (and therefore the socket module) with SSL support.

comment:2 Changed 10 years ago by techcon1@…

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).

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.