-
Notifications
You must be signed in to change notification settings - Fork 34
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
fix #78 (ImportError: cannot import name make_admonition in Sphinx 1.6) #79
base: master
Are you sure you want to change the base?
Conversation
Hi Ahmet, what do you think about my pull request? Did you see it at all? |
Where can I find Sphinx 1.6? I didn't see it in usual places. |
ablog/post.py
Outdated
from sphinx.util.compat import Directive, make_admonition | ||
from sphinx.util.compat import Directive | ||
# DeprecationWarning: make_admonition is deprecated, use docutils.parsers.rst.directives.admonitions.BaseAdmonition instead | ||
from docutils.parsers.rst.directives.admonitions import BaseAdmonition as make_admonition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above should be like
try:
from sphinx.util.compat import make_admonition
except ImportError:
from docutils.parsers.rst.directives.admonitions import BaseAdmonition as make_admonition
so that this still works with older versions of Sphinx.
ablog/post.py
Outdated
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These extra lines needs to be removed.
@Abakan, thanks for your explanations. I adapted my PR accordingly. I see that Travis build is still failing, but I have the impression that these failures are not caused by my changes (are they?) |
I noticed one unrelated line was deleted with the recent change. That might
be causing it.
…On Sun, Mar 12, 2017, 9:05 PM Luc Saffre ***@***.***> wrote:
@Abakan <https://github.com/abakan>, thanks for your explanations. I
adapted my PR accordingly. I see that Travis build is still failing, but I
have the impression that these failures are not caused by my changes (are
they?)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#79 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAMWGenfZlBJ_TL6cTlX6gDp2tt8VS6Cks5rlMBzgaJpZM4L3bMp>
.
|
Oops, you are right. I saw that it was not being used in that module, which was of course a naive assumption. I now restored that line. |
Thanks for this fix. Solved my problem. |
Still works with Sphinx 1.6.5 / Python 3.6. Would be great to see this integrated into a release. |
Note that this fix causes the
|
This has now been merged into here. |
This fixes #78 for me.