Hello All !
I tried to move on with this dash app deployment on Render (https://pm25-disease.onrender.com/) and get stopped with that error msg:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
I understood requirements.txt file may have different format. As the one used in Render must be “pip” compliant, I removed the one generated using conda environment, install pip and generated new one.
But this change did not work…
Here is project Git project structure,
Could you give ideas on where I am wrong ?
Many thanks for your time on this !
Your requirements.txt
file is in the pollution_analysis
sub-directory. But pip -r requirements.txt
is running in your repository’s root directory. That said, based on your screenshot it appears you can set the ‘Root Directory’ configuration option on Render to pollution_analysis
and the application will execute as you expect.
Many thanks for your time on this !
I made change accordingly, it improved things as requirements.txt file in now opened, but got following error msg,
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
<string>:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
<string>:212: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!
Would you have any idea of what’s wrong here ?
Thank you for your help !
Those listed lines are warnings, not errors. Are there any relevant log lines above what you copied? I don’t have an answer based off this output alone.