docx, xls (and others) generation/conversation

Asked by Dmitry Tomko on 2012-12-10

I'm using "external" openoffice to generate pdf, doc without any problem, but when i'm trying to generate docx, xls i got some strange messages:
first run:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "appy\pod\", line 393, in run
  File "appy\pod\", line 544, in finalize
  File "appy\shared\", line 31, in delete
    os.remove(os.path.join(root, name))
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: 'e:\\reports\\out6.xls.1355135364.949000\\result.odt'

second run:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "appy\pod\", line 386, in run
  File "appy\shared\", line 241, in parse
  File "e:\splunk\Python-2.7\Lib\xml\sax\", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "e:\splunk\Python-2.7\Lib\xml\sax\", line 123, in parse
  File "e:\splunk\Python-2.7\Lib\xml\sax\", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "e:\splunk\Python-2.7\Lib\xml\sax\", line 301, in start_ele
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "appy\pod\", line 227, in startElement
    e.currentBuffer.dumpStartElement(elem, attrs)
  File "appy\pod\", line 143, in dumpStartElement
    self.write('<%s' % elem)
  File "appy\pod\", line 177, in write
ValueError: I/O operation on closed file

Is it supported? Or I do something wrong?

Question information

English Edit question
Appy Edit question
No assignee Edit question
Last query:
Last reply:

Hi Dmitry,
Indeed generation of docx has never been tested.
Feedback is welcome if you discover ways to overcome the errors :)

Can you help with this problem?

Provide an answer of your own, or ask Dmitry Tomko for more information if necessary.

To post a message you must log in.