Failure to find file when building docs #26873
-
I am trying to build Sphinx documentation for my python project using Github Actions and I am hitting an error stating that the relevant file is not found. The documentation builds fine locally (it works on my machine!). I thought it was might be an issue with location of file but that doesnt seem to be the case as from as the paths in the error hold the correct relative position. I’ve checked the Sphinx and Github Actions documentation and I havent found anything to indicate what I am doing wrong. The file structure looks like this:
The error:
The Github Action yaml:
Any help would be appeciated! |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Your code was referencing a directory that does not exist. sent you a PR to correct this. Fix:
Hope that’s helpful ✌️t4: |
Beta Was this translation helpful? Give feedback.
-
Thank you, mate, I have no idea why it was ever Game instead of game! The PR seems to have fixed that issue (thank you!) but generated a new one. I’ve not seen anything like that before, have you? GitHubSnayff/notquiteparadisePossibly, one day, a roguelike. Contribute to Snayff/notquiteparadise development by creating an account on GitHub.
|
Beta Was this translation helpful? Give feedback.
-
If that’s from the Actions build, too, I’d guess it’s tests having issues with the runner VMs not having displays and sound cards. Could you run tests in a headless mode? If not you might need to set up some sort of emulation. |
Beta Was this translation helpful? Give feedback.
-
I think all the tests are headless but given this is just to build documentation I would have thought it was all headless anyway. I checked the pygame repo for their CI build and it flags video drivers so perhaps I need to do that, too. They’re using Travis so I need to check if there is anything that wouldn’t apply to Actions. https://github.com/pygame/pygame/blob/d43040e3825535bb543d72a270f1fa3a591875aa/.travis.yml |
Beta Was this translation helpful? Give feedback.
-
Snayff:
That depends: As noted in the documentation the call to If that is indeed the issue the ideal fix would be to change the module so that display and audio initialization is done only when any related code is called. |
Beta Was this translation helpful? Give feedback.
-
Ah, I am with you. That makes sense and it gives me a clear way forward. Thank you very much. I’ll refactor to avoid those sort of calls and see how it goes. |
Beta Was this translation helpful? Give feedback.
-
Legend, that did it! Thank you again! |
Beta Was this translation helpful? Give feedback.
-
Nice, thanks for the update! 😸 |
Beta Was this translation helpful? Give feedback.
Your code was referencing a directory that does not exist.
sent you a PR to correct this.
Fix:
Hope that’s helpful ✌️t4: