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

Markdown 3.0 installation causes startup exception #117

Closed
michaelsteigman opened this issue Sep 25, 2018 · 3 comments
Closed

Markdown 3.0 installation causes startup exception #117

michaelsteigman opened this issue Sep 25, 2018 · 3 comments
Labels

Comments

@michaelsteigman
Copy link

Markdown 3.0 was release a few days ago. Due to the >= requirement for Markdown, it is installed now by default. ImagePattern, which pinax-blog imports, has been removed. The result, for sites using pinax-blog deploying a new instance of their application is the following fatal exception during startup:

File "/opt/app-root/lib/python3.6/site-packages/pinax/blog/urls.py", line 4, in <module>
 from .views import (
File "/opt/app-root/lib/python3.6/site-packages/pinax/blog/views.py", line 25, in <module>
from .parsers.markdown_parser import parse
File "/opt/app-root/lib/python3.6/site-packages/pinax/blog/parsers/markdown_parser.py", line 2, in <module>
 from markdown.inlinepatterns import IMAGE_LINK_RE, ImagePattern
 ImportError: cannot import name 'ImagePattern'
@amhazeem
Copy link

This can be fixed by uninstalling markdown 3.0

pip uninstall markdown

Then install an earlier version

pip install Markdown==2.6.11

This worked for me

@doktormerlin
Copy link
Contributor

I created pull request #123 for this

For future people having the same problem:

Instead of uninstalling Markdown first, you can just use pip install -U markdown==2.6.11 for a step less

@KatherineMichel
Copy link
Member

Closed by #123

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

No branches or pull requests

4 participants