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

Missing dependencies on 'six' and 'numpy' #33

Open
jhaiduce opened this issue Feb 11, 2021 · 2 comments
Open

Missing dependencies on 'six' and 'numpy' #33

jhaiduce opened this issue Feb 11, 2021 · 2 comments

Comments

@jhaiduce
Copy link

jhaiduce commented Feb 11, 2021

sphinx_fortran uses the packages 'six' and 'numpy' but they are not automatically installed by pip when sphinx-fortran is installed. Attempting to use sphinx_fortran without first manually installing 'six' produces the following error:

Extension error:
Could not import extension sphinxfortran.fortran_domain (exception: No module named 'six')

Similarly, if numpy is missing:

Extension error:
Could not import extension sphinxfortran.fortran_autodoc (exception: No module named 'numpy')
@jhaiduce jhaiduce changed the title Missing dependency on six Missing dependencies on 'six' and 'numpy' Feb 11, 2021
@tuoping
Copy link

tuoping commented May 25, 2021

I already installed six and numpy. And "import sphinxfortran.fortran_domain" works fine in python command line interface. But this Error still occurs when I put

extensions = ['sphinxfortran.fortran_domain']

in conf.py.

@Guymer
Copy link

Guymer commented May 27, 2023

I have come across this using the "Read The Docs" platform, as it is a very lightweight installation. I have to put "numpy" and "six" in a "requirements.txt" file and link it in using a ".readthedocs.yaml" configuration file, only then does Sphinx not complain about it.

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

No branches or pull requests

3 participants