pandocfilters icon indicating copy to clipboard operation
pandocfilters copied to clipboard

defenv.py: AttributeError: 'module' object has no attribute 'string'

Open rriemann opened this issue 5 years ago • 1 comments

Dear @01mf02 ,

I threw the file defenv.py in my pandoc folder and installed 2 dependencies on opensuse with:

pip2 install --user parse pythonfilters

Pandoc finds the filter and executes it with python2.7, but I get still an error:

  File "/home/.../defenv.py", line 56, in defenv
    parse_typ = parse.string
AttributeError: 'module' object has no attribute 'string'
Error running filter /home/.../defenv.py:
Filter returned error status 1

Can you tell me which python version you are using? The line 56 mentioned above has:

    parse_typ = parse.string

Best, Robert

rriemann avatar Jan 28 '20 10:01 rriemann

Dear Robert,

this one should be easy: The parse module is part of this package and has nothing to do with the module you installed via pip2. I suppose that putting parse.py from this package into your Pandoc folder should do the trick.

All the best, Michael

01mf02 avatar Feb 02 '20 18:02 01mf02