Hi,
I've purchased a raspberrypi and would like to use this to run wfrog. I have a wmr200 weather station and have plugged it directly into the pi, i.e. no USB hub. I'm using a spare iPhone power supply, which doesn't seem to have any problems providing power.
I have installed all the package dependencies and wfrog installed and configured successfully with 'wfrog -S'. When I run wfrog, I get the following error:
$ sudo wfrog -d
Traceback (most recent call last):
File "/usr/bin/wfrog", line 138, in <module>
component.run(config_file, settings)
File "/usr/lib/wfrog/wflogger/wflogger.py", line 132, in run
self.configure(config_file, settings_file)
File "/usr/lib/wfrog/wflogger/wflogger.py", line 94, in configure
(config, self.context) = self.configurer.configure(options, self, config_file, settings_file)
File "/usr/lib/wfrog/wfcommon/config.py", line 123, in configure
self.logger.info("Starting wfrog " + wfrog_version)
File "/usr/lib/python2.7/logging/__init__.py", line 1140, in info
self._log(INFO, msg, args, **kwargs)
File "/usr/lib/python2.7/logging/__init__.py", line 1258, in _log
self.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1268, in handle
self.callHandlers(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1308, in callHandlers
hdlr.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 744, in handle
rv = self.filter(record)
File "/usr/lib/python2.7/logging/__init__.py", line 607, in filter
for f in self.filters:
AttributeError: 'RotatingFileHandler' object has no attribute 'filters'
$
And the process exits. If I run 'wfrog -v':
$ sudo wfrog -v
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/wfrog/wfdriver/wfdriver.py", line 117, in run
self.station.run(gen, self.enqueue_event)
File "/usr/lib/wfrog/wfdriver/station/wmr200.py", line 348, in run
self.connectDevice()
File "/usr/lib/wfrog/wfdriver/station/wmr200.py", line 305, in connectDevice
self.logger.exception("WMR200 connect failed: %s" % str(e))
File "/usr/lib/python2.7/logging/__init__.py", line 1172, in exception
self.error(msg, exc_info=1, *args)
File "/usr/lib/python2.7/logging/__init__.py", line 1166, in error
self._log(ERROR, msg, args, **kwargs)
File "/usr/lib/python2.7/logging/__init__.py", line 1258, in _log
self.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1268, in handle
self.callHandlers(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1308, in callHandlers
hdlr.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 744, in handle
rv = self.filter(record)
File "/usr/lib/python2.7/logging/__init__.py", line 607, in filter
for f in self.filters:
AttributeError: 'RotatingFileHandler' object has no attribute 'filters'
And the process keeps running! If I do a wget to localhost:7680, I get the following:
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 54255)
Traceback (most recent call last):
File "/usr/lib/wfrog/wfrender/renderer/http.py", line 257, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 310, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 638, in __init__
self.handle()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "/usr/lib/wfrog/wfrender/renderer/http.py", line 193, in do_GET
_HttpRendererSingleton.logger.exception(e)
File "/usr/lib/python2.7/logging/__init__.py", line 1172, in exception
self.error(msg, exc_info=1, *args)
File "/usr/lib/python2.7/logging/__init__.py", line 1166, in error
self._log(ERROR, msg, args, **kwargs)
File "/usr/lib/python2.7/logging/__init__.py", line 1258, in _log
self.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1268, in handle
self.callHandlers(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1308, in callHandlers
hdlr.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 744, in handle
rv = self.filter(record)
File "/usr/lib/python2.7/logging/__init__.py", line 607, in filter
for f in self.filters:
AttributeError: 'RotatingFileHandler' object has no attribute 'filters'
----------------------------------------
I'm not a python programmer, so I don't know what the above errors mean, if I grep for RotatingFileHandler, in the config files, I get one hit:
$ cat fileloghandler.yaml
handler: !!python/object/new:logging.handlers.RotatingFileHandler
kwds:
filename: ${filename}
maxBytes: 262144
backupCount: 3
And this is the same as the config file on my previous computer used with wfrog. Any ideas why I am getting this error?
Thanks,
Greg