Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1821 closed defect (worksforme)

urlopen error unknown url type: https

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

Description (last modified by coderanger)

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 7 years ago by coderanger

  • Description modified (diff)
  • Resolution set to worksforme
  • Status changed from new to closed

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

comment:2 Changed 7 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).

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.