ocesou / hooke

Automatically exported from code.google.com/p/hooke
GNU Lesser General Public License v3.0
0 stars 0 forks source link

crash when loading hooke.conf #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start Hooke

Error message:

python hooke.py
Starting Hooke.
Traceback (most recent call last):
  File "hooke.py", line 61, in <module>
    config=config_obj.load_config('hooke.conf')
  File "/home/phdstudent/hooke/libhooke.py", line 165, in load_config
    self.config_tree=xml.dom.minidom.parseString(the_file)
  File "/usr/lib/python2.5/xml/dom/minidom.py", line 1925, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 1

This is due to the hooke.conf file being corrupted. The easiest way this
happens is:
- modify your hooke.conf
- update latest snapshot with SVN
- SVN messes with hooke.conf
- try to restart it

Best solution I can think of now is taking hooke.conf away from svn and
using a hooke.conf.EXAMPLE file, but this would require the user to mess by
hand everytime. Gotta think about that.

Original issue reported on code.google.com by devicera...@gmail.com on 7 Jul 2009 at 2:30

GoogleCodeExporter commented 8 years ago
This is an error in hooke.conf. Following these instruction you can solve it.
I change the status in invalid.

Original comment by fabrizio...@gmail.com on 5 May 2010 at 1:09