[linux] LIRC plugin tracebacks if lircd not running

Bug #297131 reported by Philippe Normand
10
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
Low
Philippe Normand

Bug Description

Mostly a code issue. It'd be nice to implement the connectionFailed of our LIRC Twisted protocol. Relevant traceback:

Traceback (most recent call last):

  File "/usr/lib/python2.5/site-packages/twisted/internet/gtk2reactor.py", line 175, in run

    self.__run()

  File "/usr/lib/python2.5/site-packages/twisted/internet/gtk2reactor.py", line 114, in wrapper

    return real_cb(real_s, condition)

  File "/usr/lib/python2.5/site-packages/twisted/internet/gtk2reactor.py", line 207, in callback

    self.simulate() # fire Twisted timers

  File "/usr/lib/python2.5/site-packages/twisted/internet/gtk2reactor.py", line 216, in simulate

    self.runUntilCurrent()

--- <exception caught here> ---

  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 561, in runUntilCurrent

    call.func(*call.args, **call.kw)

  File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 553, in doConnect

    self.failIfNotConnected(error.getConnectError((connectResult, os.strerror(connectResult))))

  File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 479, in failIfNotConnected

    self.connector.connectionFailed(failure.Failure(err))

exceptions.AttributeError: CallbackConnector instance has no attribute 'connectionFailed'

Steps to reproduce:

1. Be sure to have no lircd process running on the machine
2. Start Elisa

Expected result: the LIRC plugin fails to load and doesn't raise an AttributeError
Current result: the LIRC plugin fails to load and raises an AttributeError as show above.

Philippe Normand (philn)
Changed in elisa:
importance: Undecided → Low
milestone: none → 0.5.x
status: New → Confirmed
Philippe Normand (philn)
Changed in elisa:
assignee: nobody → Philippe Normand (philn)
milestone: 0.5.x → 1.0.7
status: Confirmed → In Progress
Olivier Tilloy (osomon)
Changed in elisa:
status: In Progress → Fix Committed
Changed in elisa:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.