Closed mattvenn closed 11 years ago
this happens if there is no main_file for some reason. Fixed error message, but not reason why the main_file wouldn't be there. Can be fixed by the user by pressing the pipeline's reset button.
this could have been due to a reboot gone wrong. but perhaps system should pay attention if files do not exist so they can be initialized properly.
think this is to do with an endpoint exception (due to going bigger or smaller than allowable) and wasn't getting caught
Couldnt' read input file: data/working/pipeline_3_partial.svg no element found: line 1, column 0 Problem running generator graph test no element found: line 1, column 0 Traceback (most recent call last): File "/home/polarsite/polargraphenergymonitor/testsite/polargraph/models/pipeline.py", line 71, in update self.add_svg( svg_document ) File "/home/polarsite/polargraphenergymonitor/testsite/polargraph/models/pipeline.py", line 101, in add_svg super(Pipeline, self).add_svg(svg_document) File "/home/polarsite/polargraphenergymonitor/testsite/polargraph/models/drawing_state.py", line 42, in add_svg self.update_full_image() File "/home/polarsite/polargraphenergymonitor/testsite/polargraph/models/drawing_state.py", line 79, in update_full_image self.store_output("complete", self.full_svg_file, self.full_image_file) File "/home/polarsite/polargraphenergymonitor/testsite/polargraph/models/drawing_state.py", line 88, in store_output svg.convert_svg_to_png(svg_file, image_file) File "/home/polarsite/polargraphenergymonitor/testsite/polargraph/svg.py", line 28, in convert_svg_to_png cairosvg.svg2png(url=svgfile,write_to=png_file) File "/home/polarsite/.virtualenvs/polarsite/lib/python2.6/site-packages/cairosvg/init.py", line 43, in
surface_type.convert(_args, *_kwargs))(_surfacetype)
File "/home/polarsite/.virtualenvs/polarsite/lib/python2.6/site-packages/cairosvg/surface/init.py", line 74, in convert
tree = Tree(kwargs)
File "/home/polarsite/.virtualenvs/polarsite/lib/python2.6/site-packages/cairosvg/parser.py", line 193, in init**
tree = ElementTree.parse(input).getroot()
File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 862, in parse
tree.parse(source, parser)
File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 587, in parse
self._root = parser.close()
File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 1254, in close
self._parser.Parse("", 1) # end of data
ExpatError: no element found: line 1, column 0