Re: Issue 85 in wfrog: wfrog does not work with python 2.7 (workaround implemented)

22 views
Skip to first unread message

wf...@googlecode.com

unread,
Aug 12, 2012, 4:33:55 PM8/12/12
to wfrog-a...@googlegroups.com
Updates:
Summary: wfrog does not work with python 2.7 (workaround implemented)

Comment #14 on issue 85 by jordi.pu...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
http://code.google.com/p/wfrog/issues/detail?id=85

Since it is not clear how can be solved the problem instantiating
handlers via yaml I've implemented a workaround: wfrog uses by
default a RotatingFileHandler without using yaml.

We assume that this fits the needs of most users and allow wfrog
to run out of the box in all versions of python. When a solution is
found for yaml we will reverse the workaround.

I leave the issue open, waiting for final solution

wf...@googlecode.com

unread,
Jan 25, 2013, 4:24:29 PM1/25/13
to wfrog-a...@googlegroups.com

Comment #15 on issue 85 by YottaM...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
http://code.google.com/p/wfrog/issues/detail?id=85

Hi, I think I've just struck this issue and was wondering if there's any
updates about a permanent fix?

wf...@googlecode.com

unread,
Jan 26, 2013, 3:58:16 AM1/26/13
to wfrog-a...@googlegroups.com

Comment #16 on issue 85 by jordi.pu...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
http://code.google.com/p/wfrog/issues/detail?id=85

The pyyaml ticket is still open ... just use the latest svn version and
that should solve the problem. We ought to create a new version of wfrog
with these changes!!

wf...@googlecode.com

unread,
Mar 24, 2013, 5:40:58 AM3/24/13
to wfrog-a...@googlegroups.com

Comment #17 on issue 85 by YottaM...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
http://code.google.com/p/wfrog/issues/detail?id=85

Its been a while since I've had a chance to attack this problem again...

First time around I used the workaround proposed by Quigle which got wfrog
to load, however I could never get the dashboard to load, it constantly
threw 500 (Internal Server) errors. However I think that was a separate
issue due to trying a custom configuration (I need an external database
because I have extra sensors)

Second time around I installed the base .deb package, then downloaded the
latest svn build and overwrote the wfcommon, wflogger, wfrenderer and
wfdriver folders with the svn folders. Probably not the "correct" way to
install them, but it appears to work, I have my dashboard... Now to break
it trying for a customisation...

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

wf...@googlecode.com

unread,
Apr 5, 2013, 2:32:40 PM4/5/13
to wfrog-a...@googlegroups.com

Comment #18 on issue 85 by andy.cla...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
http://code.google.com/p/wfrog/issues/detail?id=85

I have an alternative workaround which worked for me on Ubuntu 12.04 with
python 2.7:

In the file wfcommon/config/fileloghandler.yaml, change 'new' to 'apply' in
the line

handler: !!python/object/new:logging.handlers.RotatingFileHandler

so you end up with:

handler: !!python/object/apply:logging.handlers.RotatingFileHandler
kwds:
filename: ${filename}
maxBytes: 262144
backupCount: 3


This *should* work with earlier versions of python too, but I haven't
tested it.

wf...@googlecode.com

unread,
Aug 8, 2013, 7:02:19 AM8/8/13
to wfrog-a...@googlegroups.com

Comment #19 on issue 85 by karljoha...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
http://code.google.com/p/wfrog/issues/detail?id=85

Andy's workaround worked also for me, Ubuntu 13.04 and wfrog 0.8.2.
Required no other tweek, installed wfrog, ran wfrog, activated simulation
settings and started wfrog. Without the tweek I got the same error as
mentioned above, after having entered all simulation settings.

wf...@googlecode.com

unread,
Aug 8, 2013, 1:03:47 PM8/8/13
to wfrog-a...@googlegroups.com

Comment #20 on issue 85 by tiouck.p...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
http://code.google.com/p/wfrog/issues/detail?id=85

Andy's workaround works also for me ! Ubtuntu_13.04 and wfrog_0.8.2
configured as " random-simulator ".

wf...@googlecode.com

unread,
Jun 4, 2015, 6:22:41 PM6/4/15
to wfrog-a...@googlegroups.com

Comment #21 on issue 85 by Phane.Ph...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
https://code.google.com/p/wfrog/issues/detail?id=85

none of andy or quigle workaround works for me
it solve the AttributeError: 'RotatingFileHandler' object has no
attribute 'filters' error but when launching "wfrog -d" I now have this:

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 121, in configure
self.log_configurer.configure(options, config, context)
File "/usr/lib/wfrog/wfcommon/log.py", line 80, in configure
handler.setLevel(levels[handler_config['level']])
AttributeError: 'dict' object has no attribute 'setLevel'

wf...@googlecode.com

unread,
Jun 7, 2015, 4:11:44 AM6/7/15
to wfrog-a...@googlegroups.com

Comment #22 on issue 85 by Phane.Ph...@gmail.com: wfrog does not work with
python 2.7 (workaround implemented)
https://code.google.com/p/wfrog/issues/detail?id=85

Andy workaround eventually worked for me after clean ubuntu server 14.04
installation

but to be able to access my WR200 station I had to load module usbhid
Reply all
Reply to author
Forward
0 new messages