tudelft3d / CityGML2OBJs

An experimental utility to convert CityGML data to OBJ, featuring decoupling of objects and conversion of attributes to colours
MIT License
94 stars 25 forks source link

In and Out Paths #7

Closed hurzl closed 8 years ago

hurzl commented 8 years ago

Paths for -i and -o other than ./ don't work. I always get errors like

  File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124012)
  File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124381)
  File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123176)
  File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117540)
  File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110517)
  File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112283)
  File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111085)
IOError: Error reading file './path/somefile.gml': failed to load external entity "./path/somefile.gml"
fbiljecki commented 8 years ago

I haven't seen such error before. Have you tried using absolute paths?

hurzl commented 8 years ago

Ok that works, but it's not really obvious why.

tartavull commented 5 years ago

+1