Comments (4)
I know that this is closed, but when I tried to run sphinx-fortran, I got a crash. After tracing back to find the issue, I found out that the problem was that I had a file with multiple types. It seems like the problem was fixed, but perhaps I am mistaken?
sphinx-err-0fk2jd2l.log
from sphinx-fortran.
@Lebam360 This issue was indeed fixed, but a new release is still pending, as far as I can tell. The latest release version on PyPi is 1.1.1 which does not include the fix.
However, you can try to install the plugin via Git source:
pip3 install git+https://github.com/VACUMM/sphinx-fortran.git@master
This command should checkout the latest state of the repo (master
branch) and build the plugin from it.
from sphinx-fortran.
I installed the plugin through the Git source like you suggested, but sphinx-fortran is still crashing when I try to include a module with multiple types. I am still getting the same issues as before. This might just be because I need to wait until the new release or something, but it also could be something else. I just wanted to let you know.
sphinx-err-i9z70kum.log
from sphinx-fortran.
@Lebam360 Sorry for the late reply, but your log file indicates that you are still using an older version of the plugin:
File "/home/aand/.local/lib/python3.8/site-packages/sphinxfortran/fortran_autodoc.py", line 1246, in format_quickaccess
tlist = sorted(self.get_blocklist('types', module))
TypeError: '<' not supported between instances of 'dict' and 'dict'
The line in question now looks a bit different (does not use sorted()
function):
tlist = self.get_blocklist('types', module)
Please check that you are indeed installing the correct state, you can use the following command to remove any previously installed version of the plugin:
pip3 uninstall sphinx-fortran
Then, try to reinstall it from the Git state:
pip3 install git+https://github.com/VACUMM/sphinx-fortran.git@master
PIP should be quite verbose that it is indeed building from source:
Collecting git+https://github.com/VACUMM/sphinx-fortran.git@master
Cloning https://github.com/VACUMM/sphinx-fortran.git (to revision master) to /private/var/folders/zk/bw8t57f168z5_c1_d68yk5cm0000gn/T/pip-req-build-vj7ci0il
Running command git clone -q https://github.com/VACUMM/sphinx-fortran.git /private/var/folders/zk/bw8t57f168z5_c1_d68yk5cm0000gn/T/pip-req-build-vj7ci0il
Building wheels for collected packages: sphinx-fortran
Building wheel for sphinx-fortran (setup.py) ... done
Created wheel for sphinx-fortran: filename=sphinx_fortran-1.1.1-py3-none-any.whl size=36936 sha256=11199db111e657368ccfd468558883318324dbd79f0855204e0f923f8a20e92a
Stored in directory: /private/var/folders/zk/bw8t57f168z5_c1_d68yk5cm0000gn/T/pip-ephem-wheel-cache-3cvmsf0j/wheels/9e/11/c7/9b90a9abd360d6d4ef0fed924b25ae3fb378b60198d3527f23
Successfully built sphinx-fortran
Installing collected packages: sphinx-fortran
Successfully installed sphinx-fortran-1.1.1
(Ignore the version number in the output, it's simply using the same value defined by the sources, e.g. current release.)
from sphinx-fortran.
Related Issues (20)
- I have solved an error "KeyError: 'vardescsearch'". HOT 1
- optional argument not detected as optional for autodoc
- Why lowercase filenames ?
- Consider adding the sphinx-extension GitHub topic
- exception: 'fromsky' with abstract interface HOT 3
- Error for autodoc on empty module HOT 1
- Error when parsing source with abstract interface HOT 1
- Missing dependencies on 'six' and 'numpy' HOT 2
- error processing files on windows NT system HOT 1
- Modules are found by autodoc only if written in lower case in the .rst, even if they are upper case in the code
- fortran_domain doesn't handle arguments declared as "double precision" correctly. HOT 1
- Type-bound procedures
- broken link in Readme
- Let the comment header as raw text or literal block HOT 1
- fortran_parse error in the fortran_autodoc module for a basic example
- TypeError in sort in "fortran_autodoc.py" HOT 3
- [Meta] Gathering interest in a "Framework :: Sphinx :: Domain" PyPi classifier
- Autodocumentation of parameters
- Autodoc inconsistency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sphinx-fortran.