Hello
Nice that 0.8.2 is released!
I have resinstalled Debian 6 (python 2.6) and wfrog 0.8.2, and
manually converted my 0.8.1 config files to the 0.8.2.
I have also modified config files to use mysql DB and some more
sensors on wmr928nx.
After wfrog -S I ran wfrog -v
which crashes early, probably reading wfdriver config file.
Is that format no longer yaml compliant?
I also tried to change 3 soft links in /usr/bin to v2.5 pythons, but
no difference.
Any help appreciated; I know to little Python... Thanks
Here is the debug log (commented):
------------------------------------------------------
wfrog -v
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/wfrog/wfdriver/wfdriver.py", line 110, in run
self.configure(config_file, settings_file, embedded)
File "/usr/lib/wfrog/wfdriver/wfdriver.py", line 82, in configure
(config, context) = self.configurer.configure(options, self,
config_file, settings_file, embedded)
File "/usr/lib/wfrog/wfcommon/config.py", line 110, in configure
config = yaml.load( str(Template(file=file(self.config_file, "r"),
searchList=[variables])))
File "/usr/lib/python2.5/site-packages/yaml/__init__.py", line 58, in
load
return loader.get_single_data()
File "/usr/lib/python2.5/site-packages/yaml/constructor.py", line 42,
in get_single_data
node = self.get_single_node()
File "/usr/lib/python2.5/site-packages/yaml/composer.py", line 36, in
get_single_node
document = self.compose_document()
File "/usr/lib/python2.5/site-packages/yaml/composer.py", line 55, in
compose_document
node = self.compose_node(None, None)
File "/usr/lib/python2.5/site-packages/yaml/composer.py", line 84, in
compose_node
node = self.compose_mapping_node(anchor)
File "/usr/lib/python2.5/site-packages/yaml/composer.py", line 127, in
compose_mapping_node
while not self.check_event(MappingEndEvent):
??? are wfrog config files conformant to YAML scalars (plain) in
python2.5?
File "/usr/lib/python2.5/site-packages/yaml/parser.py", line 93, in
check_event
self.current_event = self.state()
File "/usr/lib/python2.5/site-packages/yaml/parser.py", line 434, in
parse_block_mapping_key
"expected <block end>, but found %r" %
token.id, token.start_mark)
ParserError: while parsing a block mapping
in "<string>", line 1, column 1:
station: !wmr928nx { }
^
expected <block end>, but found '<block mapping start>'
in "<string>", line 2, column 5:
port: /dev/ttyS0
^
----
The code in parser.py is:
def parse_block_mapping_key(self):
if self.check_token(KeyToken):
token = self.get_token()
if not self.check_token(KeyToken, ValueToken,
BlockEndToken):
self.states.append(self.parse_block_mapping_value)
return self.parse_block_node_or_indentless_sequence()
else:
self.state = self.parse_block_mapping_value
return self.process_empty_scalar(token.end_mark)
if not self.check_token(BlockEndToken):
token = self.peek_token()
raise ParserError("while parsing a block mapping",
self.marks[-1],
"expected <block end>, but found %r" %
token.id,
token.start_mark)
(continues)