Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I occasionally get the following error (or similar) dealing with defer.py and deferral.py: #253

Open
rfyiamcool opened this issue Jun 7, 2015 · 1 comment

Comments

@rfyiamcool
Copy link

I occasionally get the following error (or similar) dealing with defer.py and deferral.py:

2014-06-27 19:44:17.483326 > Unhandled Error
2014-06-27 19:44:17.483571 > Traceback (most recent call last):
2014-06-27 19:44:17.483753 > File "/usr/local/Cellar/pypy/2.3.1/libexec/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 488, in _startRunCallbacks
2014-06-27 19:44:17.483870 > self._runCallbacks()
2014-06-27 19:44:17.484088 > File "/usr/local/Cellar/pypy/2.3.1/libexec/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 575, in _runCallbacks
2014-06-27 19:44:17.484197 > current.result = callback(current.result, _args, *_kw)
2014-06-27 19:44:17.484303 > File "/Users/jedimstr/p2pool/p2pool/util/deferral.py", line 256, in gotResult
2014-06-27 19:44:17.484417 > it(res2)
2014-06-27 19:44:17.484522 > File "/Users/jedimstr/p2pool/p2pool/util/deferral.py", line 233, in it
2014-06-27 19:44:17.484633 > res = gen.send(cur) # external code is run here
2014-06-27 19:44:17.484740 > --- ---
2014-06-27 19:44:17.484850 > File "/Users/jedimstr/p2pool/p2pool/util/deferral.py", line 284, in _worker
2014-06-27 19:44:17.484963 > self.func(_self.args, *_self.kwargs)
2014-06-27 19:44:17.485069 > File "/Users/jedimstr/p2pool/p2pool/util/expiring_dict.py", line 109, in
2014-06-27 19:44:17.485176 > self._expire_loop = expire_loop = deferral.RobustLoopingCall(lambda: self_ref().expire())
2014-06-27 19:44:17.485398 > exceptions.AttributeError: 'NoneType' object has no attribute 'expire'
2014-06-27 19:44:17.488420 > Unhandled Error
2014-06-27 19:44:17.490643 > Traceback (most recent call last):
2014-06-27 19:44:17.490859 > File "/usr/local/Cellar/pypy/2.3.1/libexec/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 488, in _startRunCallbacks
2014-06-27 19:44:17.490974 > self._runCallbacks()
2014-06-27 19:44:17.491095 > File "/usr/local/Cellar/pypy/2.3.1/libexec/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 575, in _runCallbacks
2014-06-27 19:44:17.491219 > current.result = callback(current.result, _args, *_kw)
2014-06-27 19:44:17.491334 > File "/Users/jedimstr/p2pool/p2pool/util/deferral.py", line 256, in gotResult
2014-06-27 19:44:17.491450 > it(res2)
2014-06-27 19:44:17.491567 > File "/Users/jedimstr/p2pool/p2pool/util/deferral.py", line 233, in it
2014-06-27 19:44:17.491770 > res = gen.send(cur) # external code is run here
2014-06-27 19:44:17.491875 > --- ---
2014-06-27 19:44:17.491979 > File "/Users/jedimstr/p2pool/p2pool/util/deferral.py", line 284, in _worker
2014-06-27 19:44:17.492085 > self.func(_self.args, *_self.kwargs)
2014-06-27 19:44:17.492191 > File "/Users/jedimstr/p2pool/p2pool/util/expiring_dict.py", line 109, in
2014-06-27 19:44:17.492305 > self._expire_loop = expire_loop = deferral.RobustLoopingCall(lambda: self_ref().expire())
2014-06-27 19:44:17.492415 > exceptions.AttributeError: 'NoneType' object has no attribute 'expire'
Sometimes it appears and just chugs along, but other times (like when bitcoin core is restarted), it continuously gives me these errors until I restart p2pool.

This is run on a MacPro running Mavericks and pypy instead of regular python (but I get this error under normal python as well).

@ilsawa
Copy link

ilsawa commented Jun 13, 2016

I'm getting the same error with pypy on ubuntu linux:

Unhandled Error
Traceback (most recent call last):
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/opt/sha256d/p2pool-btc/p2pool/util/deferral.py", line 256, in gotResult
    it(res2)
  File "/opt/sha256d/p2pool-btc/p2pool/util/deferral.py", line 233, in it
    res = gen.send(cur) # external code is run here
--- <exception caught here> ---
  File "/opt/sha256d/p2pool-btc/p2pool/util/deferral.py", line 284, in _worker
    self.func(*self.args, **self.kwargs)
  File "/opt/sha256d/p2pool-btc/p2pool/util/expiring_dict.py", line 109, in <lambda>
    self._expire_loop = expire_loop = deferral.RobustLoopingCall(lambda: self_ref().expire())
exceptions.AttributeError: 'NoneType' object has no attribute 'expire'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants