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

Currently defined Sphinx version (3.5.4) doesn't support python 3.10 #9074

Closed
j-n-c opened this issue Oct 18, 2022 · 2 comments · Fixed by #9076
Closed

Currently defined Sphinx version (3.5.4) doesn't support python 3.10 #9074

j-n-c opened this issue Oct 18, 2022 · 2 comments · Fixed by #9076
Milestone

Comments

@j-n-c
Copy link
Contributor

j-n-c commented Oct 18, 2022

What steps does it take to reproduce the issue?

  • Have python 3.10 installed on host (tested with 3.10.6)
  • Install Sphinx as stated in the documentation
  • Build Sphynx guides
  • When does this issue occur?
    When building Sphynx guides using Python 3.10

  • What happens?
    An error is returned:

from types import Union as types_Union
ImportError: cannot import name 'Union' from 'types' (/usr/lib64/python3.10/types.py)
  • What did you expect to happen?
    The Sphynx docs to be built successfully

Which version of Dataverse are you using?
v5.11.1

Any related open or closed issues to this bug report?

This issue is seconded by issues from in Sphynx repository:

@pdurbin
Copy link
Member

pdurbin commented Oct 18, 2022

Oh! Is that why make html stopped working for me?! I accidentally upgraded to Python 3.10.7 the other day (I was messing with nodejs stuff).

Thanks for opening this issue, @j-n-c!

@pdurbin
Copy link
Member

pdurbin commented Oct 24, 2022

As I mentioned, I'm suffering from this as well. For now my workaround is to follow https://guides.dataverse.org/en/5.12/developers/documentation.html#installing-sphinx but replace

python3 -m venv venv

with

python3.9 -m venv venv

to make sure I'm using Python 3.9 instead of 3.10 until the fix from @j-n-c (thanks! 🎉 ) is merged:

pdurbin added a commit to j-n-c/dataverse that referenced this issue Dec 16, 2022
pdurbin added a commit to j-n-c/dataverse that referenced this issue Dec 16, 2022
kcondon added a commit that referenced this issue Dec 16, 2022
#9074 - Added support for building sphinx docs using python 3.10+
@pdurbin pdurbin added this to the 5.13 milestone Dec 16, 2022
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 a pull request may close this issue.

3 participants