Contentful logo

Contentful Community

Errors in running contentful/the-example-app.py application - ModuleNotFoundError: No module named 'commonmark'

#1

Hi,
I am trying to run the the-example-app.py python application from contentful repository. Getting the below errors when I run “make run” command.

E:\contentful\python\the-example-app.py>make run
python app.py
Traceback (most recent call last):
  File "app.py", line 10, in <module>
    from lib.markdown import markdown
  File "E:\contentful\python\the-example-app.py\lib\markdown.py", line 1, in <module>
    import CommonMark
  File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\CommonMark\__init__.py", line 4, in <module>
    from commonmark.main import commonmark
ModuleNotFoundError: No module named 'commonmark'
make: *** [run] Error 1

I can see the “commonMark” module under my site_packages as well. I posted the full details in the stackoverflow. Kindly help me to resolve this issue.

I appreciate your kind support. Thanks in advance

0 Likes