Skip to content

multiple declarations of constant: XML_ATTRIBUTE_IDREF #4

Description

@Julian

I get a CFFI exception when trying to either install HEAD via pip or when trying to just directly import lxml.etree from a source checkout:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "lxml/../lxml-cffi/etree.py", line 43, in <module>
    _initThreadLogging()
  File "lxml/../lxml-cffi/xmlerror.py", line 162, in _initThreadLogging
    connectErrorLog(None)
  File "lxml/../lxml-cffi/xmlerror.py", line 165, in connectErrorLog
    from .includes import xslt
  File "lxml/includes/../../lxml-cffi/includes/xslt.py", line 6, in <module>
    ffi.include(xpath.ffi)
  File "/usr/local/Cellar/pypy/2.4.0_2/libexec/lib_pypy/cffi/api.py", line 379, in include
    self._parser.include(ffi_to_include._parser)
  File "/usr/local/Cellar/pypy/2.4.0_2/libexec/lib_pypy/cffi/cparser.py", line 584, in include
    self._add_constants(k, v)
  File "/usr/local/Cellar/pypy/2.4.0_2/libexec/lib_pypy/cffi/cparser.py", line 213, in _add_constants
    "multiple declarations of constant: %s" % (key,))
FFIError: multiple declarations of constant: XML_ATTRIBUTE_IDREF

Obviously I can provide whatever other info is necessary to help debug, but I can't figure out just what would be helpful yet myself :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions