'NoneType' object has no attribute 'cancel' on darwin and windows

Bug #1017922 reported by Manuel de la Peña
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Status tracked in Trunk
Stable-4-0
Fix Released
Undecided
Unassigned
Trunk
Fix Released
Medium
Manuel de la Peña

Bug Description

While running u1-client on darwin I have seen several times the following:

Unhandled error in Deferred:
2012-06-26 14:36:08,425 - twisted - ERROR - Unhandled Error
Traceback (most recent call last):
  File "/Users/mandel/Projects/Canonical/ubuntuone-client/fsevents-daemon/ubuntuone/status/aggregator.py", line 696, in _queue_done
    self.progress_bar.completed()
  File "/Users/mandel/Projects/Canonical/ubuntuone-client/fsevents-daemon/ubuntuone/status/aggregator.py", line 582, in completed
    self.inhibitor_defer.addCallback(inhibitor_callback)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Twisted-12.0.0-py2.7-macosx-10.4-x86_64.egg/twisted/internet/defer.py", line 301, in addCallback
    callbackKeywords=kw)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Twisted-12.0.0-py2.7-macosx-10.4-x86_64.egg/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Twisted-12.0.0-py2.7-macosx-10.4-x86_64.egg/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/Users/mandel/Projects/Canonical/ubuntuone-client/fsevents-daemon/ubuntuone/status/aggregator.py", line 580, in inhibitor_callback
    return inhibitor.cancel()
exceptions.AttributeError: 'NoneType' object has no attribute 'cancel'

Unhandled Error
Traceback (most recent call last):
  File "/Users/mandel/Projects/Canonical/ubuntuone-client/fsevents-daemon/ubuntuone/status/aggregator.py", line 696, in _queue_done
    self.progress_bar.completed()
  File "/Users/mandel/Projects/Canonical/ubuntuone-client/fsevents-daemon/ubuntuone/status/aggregator.py", line 582, in completed
    self.inhibitor_defer.addCallback(inhibitor_callback)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Twisted-12.0.0-py2.7-macosx-10.4-x86_64.egg/twisted/internet/defer.py", line 301, in addCallback
    callbackKeywords=kw)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Twisted-12.0.0-py2.7-macosx-10.4-x86_64.egg/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Twisted-12.0.0-py2.7-macosx-10.4-x86_64.egg/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/Users/mandel/Projects/Canonical/ubuntuone-client/fsevents-daemon/ubuntuone/status/aggregator.py", line 580, in inhibitor_callback
    return inhibitor.cancel()
exceptions.AttributeError: 'NoneType' object has no attribute 'cancel'

Looks like a bad implementation of a stub somewhere.

Tags: u1-darwin

Related branches

Revision history for this message
Roberto Alsina (ralsina) wrote :

The darwin inhibitor does have cancel() so it looks like something else. Probably some other stub is not creating the inhibitor object on darwin.

summary: - 'NoneType' object has no attribute 'cancel' on darwin
+ 'NoneType' object has no attribute 'cancel' on darwin and windows
Changed in ubuntuone-client:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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