I have been trying to get the Pool from generalfault to work, unfortunately I haven't been successful.
Failed to load application: 'module' object has no attribute 'DB_USERCACHE_TIME'
worker@hp1:~/stratum-mining$ twistd -ny launcher.tac -l -
2012-12-22 22:13:30,526 DEBUG example logger.get_logger # Logging initialized
2012-12-22 22:13:30,533 DEBUG interfaces logger.get_logger # Logging initialized
2012-12-22 22:13:30,535 DEBUG DBInterface logger.get_logger # Logging initialized
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 652, in run
runApp(config)
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/scripts/twistd.py", line 23, in runApp
_SomeApplicationRunner(config).run()
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 386, in run
self.application = self.createOrGetApplication()
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 451, in createOrGetApplication
application = getApplication(self.config, passphrase)
--- ---
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 462, in getApplication
application = service.loadApplication(filename, style, passphrase)
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/application/service.py", line 405, in loadApplication
application = sob.loadValueFromFile(filename, 'application', passphrase)
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/persisted/sob.py", line 210, in loadValueFromFile
exec fileObj in d, d
File "launcher.tac", line 19, in
import mining
File "/home/worker/stratum-mining/mining/__init__.py", line 1, in
from service import MiningService
File "/home/worker/stratum-mining/mining/service.py", line 7, in
from interfaces import Interfaces
File "/home/worker/stratum-mining/mining/interfaces.py", line 14, in
dbi = DBInterface.DBInterface()
File "/home/worker/stratum-mining/mining/DBInterface.py", line 16, in __init__
self.clearusercache()
File "/home/worker/stratum-mining/mining/DBInterface.py", line 53, in clearusercache
self.usercacheclock = reactor.callLater( settings.DB_USERCACHE_TIME , self.clearusercache)
exceptions.AttributeError: 'module' object has no attribute 'DB_USERCACHE_TIME'
Failed to load application: 'module' object has no attribute 'DB_USERCACHE_TIME'