Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError when using XSLT #7

Open
tgs opened this issue Jan 22, 2015 · 1 comment
Open

NameError when using XSLT #7

tgs opened this issue Jan 22, 2015 · 1 comment

Comments

@tgs
Copy link

tgs commented Jan 22, 2015

  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
Copy link
Author

tgs commented Jan 22, 2015

...and pypy 2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant