-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
JSBSim Python API documentation unavailable! #373
Comments
Thanks for the report. I'll investigate. Could you be more specific about |
Thanks for the feedback. Regarding the failure of I still need to investigate about the reason why the classes doc point to blank pages. I think this is due to the docs generation that is executed before the Python module is built (i.e. the steps jsbsim/.github/workflows/cpp-python-build.yml Lines 503 to 510 in f120ea9
|
Reported in issue #373. Also discard the MacOSX 11.0 platform for now (it is lagging too much).
This should now be fixed. Please check and let us know if you find some issues. |
Yes Sir. It works now. Thank you. One small query, since the Pardon me for my ignorance, for I am new to these things. |
The utility sphinx-build -b html documentation documentation/html/python The command must be run from the build directory. |
On running this command: The documentation build completes but raises a warning, as follows:
|
You most likely need to rebuild the docs since the commit f120ea9 that I mentioned above has not been taken into account. Just run: > rm -f documentation
> cmake ..
> sphinx-build -b html documentation documentation/html/python This should rebuild the docs first with |
Well, I deleted the documentation folder, and ran The warning persists. Note: I am using the latest version of the repository from github. |
I have no such warning message on my side. Could try to rebuild everything from scratch (i.e. either delete you build directory or create a new one) ? |
Sir, I have done exactly what you instructed. Well, the warning persists (on Ubuntu as well as Windows). However, I don't think it is affecting the generation of python documentation. I have attached a complete snapshot of the same. |
Looks like you have a version of the JSBSim python module installed that Sphinx is picking up that is older than the commit that added the Hence the reason @bcoconni suggested rebuilding the source code via But I'm wondering whether you've previously installed the JSBSim python module via |
Actually, I did have the
Taking @bcoconni and your suggestions, I have uninstalled the python jsbsim module and now the docs build successfully. Thanks a lot for that! I am running a x64 Windows machine. I have built the VS 2017 solution in Release - x64 mode. Lastly, how should I install the python module? Is it fine to do so via pip? |
It all depends on whether you want to use a stable version of JSBSim or not. The utility However if you want to use the bleeding edge features from JSBSim or plan to participate to the C++ development then you must build the Python module yourself and install it with > python python/setup.py bdist_wheel
> pip install jsbsim --no-index -f python/dist In the eventuality where you want to use both then I suggest to use Python virtual environments which allow you to use Python in different environments (different versions of the Python interpreter or different set of packages installed). You can then create a virtual environment with JSBSim stable and another environment for JSBSim development (this is what I do so that I can test against both versions of JSBSim i.e. |
So as @bcoconni mentioned this is the |
Thank you @bcoconni & @seanmcleod for all the support provided regarding the issue. Highly appreciated sir. As a small follow up to the above comment, I tried the steps mentioned by @bcoconni for installing the Python JSBSim module with the latest features of JSBSim. I am facing the following error, sir. If I am not wrong, is it due to no C++ compiler present in my system path? If so how to deal with it? While running Cmake, the script had identified a C++ compiler in my system. |
@viren3999 if you don't mind, I suggest that we close this issue and open a new one regarding the last point you brought. I am suspecting you have caught an entirely different bug 😄 |
Agreed Sir.
Well, I feel someone is on a streak 😜 Thank you! |
This link: https://jsbsim-team.github.io/jsbsim/python/index.html is supposedly for the JSBSim Python API documentation. However, it appears to be blank for all the classes.
Also, the
doxy2pydocs.py
python program fails at runtime. It is attempting to parse .XML; however, those names' files don't exist in the directory.Kindly help.
The text was updated successfully, but these errors were encountered: