Skip to content Skip to sidebar Skip to footer

Elastic Beanstalk Won't Recognize Absolute Path To File, Returns Filenotfounderror

I am running a Flask application using AWS Elastic Beanstalk. The application deploys successfully, but there is a task in my code where I use pandas read_csv to pull data out of a

Solution 1:

Problem solved! My process was being carried out by rq workers. The rq workers are running from my local machine and I did not realize that it would be the workers looking for the file path. I figured this out by printing os.getcwd() and noticing that the current working directory was still my local path. So, I threw an exception on a FileNotFoundError for the workers to use a local path instead as necessary.


Post a Comment for "Elastic Beanstalk Won't Recognize Absolute Path To File, Returns Filenotfounderror"