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
[Bug]: Extension error (sphinx.ext.linkcode) while building docs #24574
Comments
You need to run with |
here is the traceback from Sphinx with
|
On windows you gotta do: set O=-T & make html https://matplotlib.org/devdocs/devel/documenting_mpl.html#building-the-docs |
That is a pretty unique error message, so I think it is coming from https://github.com/python/cpython/blob/0547a981ae413248b21a6bb0cb62dda7d236fe45/Lib/ntpath.py#L780-L782 which is in Without information about how everything is checked out and installed I am not sure if there is anything do to help and suspect it is unlikely that there is anything we can do in Matplotlib (other than document to not do what ever it is that is causing this situation). |
ok my bad. i saw the documentation there was written just like that. |
You can work around this by setting |
This may happen if Python is installed on C: and Matplotlib is installed on some other drive. As the point of this extension is to create GitHub links for Matplotlib *only*, we should ignore all paths that cannot be relativized to it. Fixes matplotlib#24574
sajjad-ali60 commentedDec 1, 2022
•
edited by oscargus
Bug summary
while building documentation the execution throws the below error and exit
here is the log of
make html
Code for reproduction
followed the documentation for writing matplotlib docs
Actual outcome
Expected outcome
it should print successfully build documentation and shows the html files in
build/html
folderAdditional information
requirements.txt file
gcc version : 12.2.0
clang version : 14.0.6
VC++ compiler tools version : 14.34.31933
Operating system
Windows 10 Pro Version 22H2
Matplotlib Version
3.7.0.dev817+g9b7c902fd72e
Matplotlib Backend
agg
Python version
3.10.8
Jupyter version
not installed
Installation
from source (.tar.gz)
The text was updated successfully, but these errors were encountered: