amauryfa / lxml

lxml-cffi is a PyPy-friendly port of lxml, based on cffi
21 stars 10 forks source link

NameError when using XSLT #7

Open tgs opened 9 years ago

tgs commented 9 years ago
  File "/home/smithtg/src/w/asn2fsa/ppenv/site-packages/django/template/debug.py", line 88, in render
    output = self.filter_expression.resolve(context)
  File "/home/smithtg/src/w/asn2fsa/ppenv/site-packages/django/template/base.py", line 613, in resolve
    new_obj = func(obj, *arg_vals)
  File "/home/smithtg/src/w/asn2fsa/ppenv/site-packages/sp/templatetags/xslt.py", line 91, in xslt
    transform = get_xslt(xslt_path[0])
  File "/home/smithtg/src/w/asn2fsa/ppenv/site-packages/sp/templatetags/xslt.py", line 48, in get_xslt
    transform = load_xslt(path)
  File "/home/smithtg/src/w/asn2fsa/ppenv/site-packages/sp/templatetags/xslt.py", line 36, in load_xslt
    return etree.XSLT(etree.parse(f, _parser))
  File "/home/smithtg/src/w/asn2fsa/ppenv/site-packages/lxml/../lxml-cffi/xslt.py", line 377, in __init__
    self._xslt_resolver_context._raise_if_stored()
  File "/home/smithtg/src/w/asn2fsa/ppenv/site-packages/lxml/../lxml-cffi/xslt.py", line 105, in _xslt_resolve_from_python
    c_doc = _parseDocFromFile(doc_ref._filename, context._parser)
NameError: global name '_parseDocFromFile' is not defined

Sure enough, that name isn't defined in that file. This is using version 21a549c

tgs commented 9 years ago

...and pypy 2.4