This doesn't seem to fit OP's case, but for anyone else encountering this error, make sure your function's CodeUri
matches the directory of your app.py
. I had a slight spelling mistake which made it check in an empty directory instead of the intended one, even though the builds had succeeded.