-
Notifications
You must be signed in to change notification settings - Fork 15
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
Drop support for python 2 and FIX: #22 - AttributeError: module 'docutils.nodes' has no attribute '… #23
Conversation
…ibute 'reprunicode'. reprunicode is a compatibility hack for python 2. It has been removed from docutils in v0.21.
Please remove Python2 support altogether |
It would be great if this pull request could be merged as I am having this same error when running with the newest |
@a-detiste I am not sure this is desired by contributors ? But the last update to the repo was 5 years ago... @vidartf could you give us your opinion and merge this PR ? |
I really think something like this needs to be merged if |
I am currently on vacation, but will look at this next week. Please ping me
again if I forget!
…On Sat, 31 Aug 2024, 06:57 Jesse Bloom, ***@***.***> wrote:
I really think something like this needs to be merged if nbsphinx-link is
going to stay usable, which I hope it will!
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD4WKDPABZ4GDDERKNLY2LZUDTFZAVCNFSM6AAAAABIDWCJSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRSGM4TSNZTGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@vidartf as requested, I ping you :) |
@antoinecollet5 I had a look, and agree with @a-detiste that py2 support should be dropped. Please remove that logic and instead add a Help with maintenance is always appreciated, but this is a very lightweight package, and the only reason I didn't reply was that I didn't spot the activity until I was pinged (I'll blame my configuration of GH notifications for that). Please do continue opening PRs though! :) |
Here's the patch used in Debian https://sources.debian.org/src/nbsphinx-link/1.3.0-4/debian/patches/patch_1078311_reprunicode.patch/ |
Ok @a-detiste , @vidartf I renamed the PR to indicate drop of python2 and made the changes.. |
@vidartf @a-detiste could you please review this PR and merge it ? |
Thanks a million for fixing! 🚀 |
See #22 .
AttributeError: module 'docutils.nodes' has no attribute 'reprunicode'. reprunicode is a compatibility hack for python 2. It has been removed from docutils in v0.21.
In this PR, we check if python is v2 or v3 and implement the correct behavior.