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

Drop support for python 2 and FIX: #22 - AttributeError: module 'docutils.nodes' has no attribute '… #23

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

antoinecollet5
Copy link
Contributor

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.

antoinecollet5 and others added 2 commits May 22, 2024 15:44
…ibute 'reprunicode'. reprunicode is a compatibility hack for python 2. It has been removed from docutils in v0.21.
@a-detiste
Copy link

Please remove Python2 support altogether

@jbloom
Copy link

jbloom commented Aug 25, 2024

It would be great if this pull request could be merged as I am having this same error when running with the newest docutils.

@antoinecollet5
Copy link
Contributor Author

antoinecollet5 commented Aug 29, 2024

Please remove Python2 support altogether

@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 ?

@jbloom
Copy link

jbloom commented Aug 30, 2024

I really think something like this needs to be merged if nbsphinx-link is going to stay usable, which I hope it will!

@vidartf
Copy link
Owner

vidartf commented Aug 31, 2024 via email

@antoinecollet5
Copy link
Contributor Author

@vidartf as requested, I ping you :)
If you do not have time to maintain the project, you need to find other maintainers. I can help you with that if needed.

@vidartf
Copy link
Owner

vidartf commented Sep 11, 2024

@antoinecollet5 I had a look, and agree with @a-detiste that py2 support should be dropped. Please remove that logic and instead add a python_requires phrase in the setup.py file. I have no particular opinions about which versions to include there, so probably just put >= 3.8 as that is all non-EOL Pythons?

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! :)

@a-detiste
Copy link

@antoinecollet5
Copy link
Contributor Author

antoinecollet5 commented Sep 12, 2024

@antoinecollet5 I had a look, and agree with @a-detiste that py2 support should be dropped. Please remove that logic and instead add a python_requires phrase in the setup.py file. I have no particular opinions about which versions to include there, so probably just put >= 3.8 as that is all non-EOL Pythons?

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! :)

Ok @a-detiste , @vidartf I renamed the PR to indicate drop of python2 and made the changes..

@antoinecollet5 antoinecollet5 changed the title FIX: #22 - AttributeError: module 'docutils.nodes' has no attribute '… Drop support for python 2 and FIX: #22 - AttributeError: module 'docutils.nodes' has no attribute '… Sep 12, 2024
@antoinecollet5
Copy link
Contributor Author

@vidartf @a-detiste could you please review this PR and merge it ?
AC

@vidartf
Copy link
Owner

vidartf commented Sep 18, 2024

Thanks a million for fixing! 🚀

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

Successfully merging this pull request may close these issues.

4 participants