Skip to content
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

Build fails searching for docs/requirements.txt #3140

Closed
rb2745 opened this issue Oct 3, 2017 · 10 comments
Closed

Build fails searching for docs/requirements.txt #3140

rb2745 opened this issue Oct 3, 2017 · 10 comments
Labels
Bug A bug

Comments

@rb2745
Copy link

rb2745 commented Oct 3, 2017

Details

Expected Result

Build succeeds using etc/requirements.txt (file in repo) and as specified in advanced settings

A description of what you wanted to happen
Build to succeed using the requirements in etc/requirements.txt as it has until today.
-or-
A confirmation that there has been a change that requirements must always be in the docs folder.

Actual Result

Build fails with message -
Could not open requirements file: [Errno 2] No such file or directory: 'docs/requirements.txt'

Wiping the build environment and resubmitting the advanced settings with etc/requirements specified does not fix the problem.

@RichardLitt RichardLitt added the Bug A bug label Oct 3, 2017
@safwanrahman
Copy link
Member

I can successfully build your project locally with etc/requirements.txt in requirements. Maybe something is missing in production

@rb2745
Copy link
Author

rb2745 commented Nov 14, 2017

I duplicated the requirements.txt file in the docs folder to continue.

This worked until today 11/14/17 about 6am EST, now all builds are failing with an error message:

Error
Problem parsing YAML configuration. Invalid "requirements_file": path docs/requirements.txt does not exist

@agjohnson
Copy link
Contributor

Closing this as a duplicate. We put a hotfix out today and a proper fix coming shortly.

@Benjamin-Lee
Copy link

This is happening to me; I am having the same problem, especially since there is a docs/requirements.txt file in the repo.

@davtoh
Copy link

davtoh commented Jul 17, 2018

hi, same issue over here. I already tried relative paths of all sort and even the direct link to the requirements.txt file on the root of the project.

case: https://readthedocs.org/projects/intelligent-tracker/builds/7495674/
project: https://github.com/davtoh/intelligent-tracker

@stsewd
Copy link
Member

stsewd commented Jul 17, 2018

@davtoh please see #4378 for more details

@rb2745
Copy link
Author

rb2745 commented Jul 17, 2018

The problem reported at the top of this thread was caused by an algorithm at read the docs that searched throughout a repository looking for a configuration yaml file, finding one or more files that were not related to a configuration and trying to use them as configuration. The problem was resolved by providing a configuration yaml file in the root of repository. For example: https://gerrit.onap.org/r/gitweb?p=doc.git;a=blob;f=readthedocs.yml;h=6e6b9af07e6d523a60342e76bf181288bf826c63;hb=HEAD

@davtoh
Copy link

davtoh commented Jul 17, 2018

ok, updating the repo with the yaml file prevents it from having this error. Maybe it could be useful to inform the user about the used yaml file and suggest to use readthedocs.yml in case of conflict?

@stsewd
Copy link
Member

stsewd commented Jul 17, 2018

@davtoh the problem is a bug, users don't need to have a readthedocs.yml file, but I think is the recommended way of using rtd now.

@nomeata
Copy link

nomeata commented Sep 7, 2018

Had to do

$ cat readthedocs.yml 
requirements_file: null

to fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug
Projects
None yet
Development

No branches or pull requests

8 participants