T0ha / ezodf

ezodf is a Python package to create new or open existing OpenDocument (ODF) files to extract, add, modify or delete document data, forked from dead project https://bitbucket.org/mozman/ezodf
Other
61 stars 23 forks source link

Importing requirements in setup #1

Closed davekr closed 10 years ago

davekr commented 10 years ago

This library requires the lxml package, but there are imports in setup.py file causing the requirement to import before setup can be run and lxml can be installed.

    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/dave/venvs/individualcar/build/ezodf/setup.py", line 14, in <module>
        from ezodf import VERSION
      File "ezodf/__init__.py", line 27, in <module>
        from .document import opendoc, newdoc
      File "ezodf/document.py", line 16, in <module>
        from .xmlns import subelement, CN, etree, wrap, ALL_NSMAP, fake_element
      File "ezodf/xmlns.py", line 10, in <module>
        from lxml import etree
    ImportError: No module named lxml