Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

What version of python? #2

Open
eldobbins opened this issue Sep 11, 2017 · 2 comments
Open

What version of python? #2

eldobbins opened this issue Sep 11, 2017 · 2 comments

Comments

@eldobbins
Copy link

I tried to install this in a Python 3.5 virtual environment, and it complained about missing parentheses in a sphinx-fortran print statement. What python version is this intended to work with?

Thanks,
Liz

PS Full error message:
sphinx-build -b html -d build/doctrees source build/html
Running Sphinx v1.4.6

Exception occurred:
File "/Users/EDobbins/anaconda2/envs/sphinx/lib/python3.5/site-packages/Sphinx-1.4.6-py3.5.egg/sphinx/application.py", line 473, in setup_extension
mod = import(extension, None, None, ['setup'])
File "/Users/EDobbins/anaconda2/envs/sphinx/lib/python3.5/site-packages/sphinxfortran/fortran_autodoc.py", line 1290
print 'Wrong fortran module name: '+module
^
SyntaxError: Missing parentheses in call to 'print'

@brorfred
Copy link
Member

I have developed it in 2.7 but I do have the ambition that it should work in 3.X. Just got back from a week of traveling - give me a day or two to take a look at the problem

/B

@eldobbins
Copy link
Author

I did get it to work using Python2.7 and conda. The requirements.txt file is a little out-of-date. "pip install sphinx-fortran" worked to install that package instead of the github build command. I can give more details if you want them.

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

No branches or pull requests

2 participants