-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[BUG] Running make html-noplot
yields errors.
#3373
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
Comments
make html-noplot
yields errors.make html-noplot
yields errors.
Hi, @phonokoye . Virtualenv should work but you can also try
We will update instructions for conda as well. |
sorry, I just realized that you are on Win. Can you use something like WSL? |
Hello, @svekars. Thank you for responding. Regarding your suggestion above, you are going to think that I am being a stubborn billy goat. I cannot change environment at this point. I will be using a |
I initially wrote that I do not dig into any code that runs on more than one process or thread, but while I was waiting, I had a peek. It didn't have much to do with I modified the makefile to make more verbose outputs during the build and recognized that the following code was the source of the problem. From lines 65 to 88, we have the following:
Since we are already hinted that the code runs fine on Ubuntu/Linux, one has to guess that the error is as a result of a different implementation in Windows. The error which I initially posted reveals that
With a little more looking around, one finds that there is a bug in the python implementation and that it has been reported here. It has to do with an incorrect order of the arguments passed to Well, then I should not be getting errors. It's a known bug since September 2019 and would have been fixed by now, so what's the catch? < My current python version was built in 2022. Yeah but that is after the bug was known |
Hello @svekars. I came across hud.pytorch.org some time ago. I suspect that I should be able to get a built documentation there as an artifact. Is this inaccurate? |
Add Link
I ran the following command about 10 hours ago, around 12:20:00 utc and it gave me errors. (I am being specific about the time, because I was unable to find a release that I could point to).
git clone --depth 1 https://github.com/pytorch/tutorials.git
Describe the bug
What errors did you encounter?
What did you expect to happen?
As stated in the README.md file, I expected a basic html version of the tutorial to be built at
_build/html
Steps to Reproduce the error
Run the git command below
git clone --depth 1 https://github.com/pytorch/tutorials.git
Run
pip install -r .ci/docker/requirements.txt
. I am aware the instruction was topip install -r requirements.txt
. ButI keep encountering the errors below, so I improvised.
Run
make html-noplot
. For this one, I gnuWin32 make. This is what is available on Windows.I noticed that this error is similar to that found when I run re.compile('\c'). I am familiar with this scenario and so I looked further and traced the error to the code here. I was able to move on from this error by modifying my local version of the code to
SPHINX_SHOULD_RUN = "|".join(get_files_for_sphinx()).replace('\\', '\\\\')
I want to note that I do not feel confident in that action because I notice that code was last modified 2 years ago, unless I have a wrong interpretation of what the "2 years ago" that I see around there means. It was last modified 2 years ago! That means that working tutorials have been built with that piece of code. This makes me feel very strongly that something is wrong with my setup. But I resisted raising any issues because I considered that it might not be worth it to distract the attention of our dear conscientious developers whose efforts to maintain this codebase does not go unnoticed.
Run
make html-noplot
once more.The error above appears. I look at the error and I see
multiprocessing.py
there. I do not know how to do anything with code that runs on more than one thread or process. I would appreciate knowing what I have done wrong in my environment because surely the code in this repository works as it has been tested as required.Describe your environment
Environment
python -m venv doc-env
.The text was updated successfully, but these errors were encountered: