powerpoint - Python pptx unexpected keyword argument 'standalone' -



powerpoint - Python pptx unexpected keyword argument 'standalone' -

i seek run illustration of pptx- version 0.5.1 in python 2.6.8. code simple

from pptx import presentation prs = presentation() prs.save('test.pptx')

but error "got unexpected keyword argument 'standalone' ":

traceback (most recent phone call last): file "prez.py", line 4, in

prs.save('test.pptx') file "/usr/local/lib64/python2.6/site-packages/python_pptx-0.5.1-py2.6.egg/pptx/api.py",

line 132, in save

return self._package.save(file) file "/usr/local/lib64/python2.6/site-packages/python_pptx-0.5.1-py2.6.egg/pptx/opc/package.py",

line 144, in save packagewriter.write(pkg_file, self.rels, self.parts) file "/usr/local/lib64/python2.6/site-packages/python_pptx-0.5.1-py2.6.egg/pptx/opc/pkgwriter.py",

line 33, in write

packagewriter._write_content_types_stream(phys_writer, parts) file

"/usr/local/lib64/python2.6/site-packages/python_pptx-0.5.1-py2.6.egg/pptx/opc/pkgwriter.py",

line 45, in _write_content_types_stream

_contenttypesitem.xml_for(parts) file "/usr/local/lib64/python2.6/site-packages/python_pptx-0.5.1-py2.6.egg/pptx/opc/oxml.py",

line 39, in serialize_part_xml

xml = etree.tostring(part_elm, encoding='utf-8', standalone=true) file "lxml.etree.pyx", line 2471, in lxml.etree.tostring

(src/lxml/lxml.etree.c:24624) typeerror: tostring() got unexpected

keyword argument 'standalone'

i have no thought incorrect. examples documentation reports same error when seek save presentation.

the problem libraries out of date.

python powerpoint python-2.x

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -