markdown icon indicating copy to clipboard operation
markdown copied to clipboard

Getting issue while executing markdown in lambda

Open mhrjan opened this issue 3 years ago • 3 comments

Please find the below error , The error we are getting is with markdown 3.4.1 and it is working fine when using python version 3.3.7,

[ERROR] Runtime.ImportModuleError: Unable to import module 'handler': cannot import name 'etree' from 'markdown.util' (/var/task/site-packages/markdown/util.py)Traceback (most recent call last): | [ERROR] Runtime.ImportModuleError: Unable to import module 'handler': cannot import name 'etree' from 'markdown.util' (/var/task/site-packages/markdown/util.py) Traceback (most recent call last):

mhrjan avatar Jul 20 '22 06:07 mhrjan

Are you using any third party extensions? What options are you passing t0 Markdown?

waylan avatar Jul 20 '22 17:07 waylan

Yes i use mdx_gfm and here is the syntax markdown.markdown(raw_markdown, extensions=[GithubFlavoredMarkdownExtension()])

mhrjan avatar Jul 20 '22 17:07 mhrjan

My guess is that the issue is with the extension. As explained in the release notes, we removed some code which was deprecated back in version 3.0. The error message you are getting suggests that the extension is calling some of that removed code. I would suggest following up with the developers of the extension.

waylan avatar Jul 20 '22 17:07 waylan