what does this error mean?

34 views
Skip to first unread message

Willy Kouagnia

unread,
Sep 30, 2019, 12:42:28 PM9/30/19
to Google App Engine

hi, 


i am new with on gcp. i work on django project. I want deploy my project on app engine but, i have a mistake with command line gcloup app deploy. i saw logs but, i not understand. Please can you help me? thanks. PS: sorry for my english
this is my logs

Capture d’écran, le 2019-09-28 à 14.33.56.png

Kevin Trejo Garcia

unread,
Oct 1, 2019, 8:58:50 AM10/1/19
to Google App Engine
Hey, 

Your error seems to be related to your implementation. Having the error "IOError: Errno 2 No such file or directory" points that you're trying to write or read a file that doesn't exist. Or at least, is not where you're indicating. In this case, the error thrown is because the file "**/output" is not where you expect.

Most likely, the problem is that you're using a relative file path to open the file, but the current working directory isn't set to what you think it is.
It's a common misconception that relative paths are relative to the location of the python script, but this is untrue. 

Relative file paths are always relative to the current working directory, and the current working directory doesn't have to be the location of your python script.

Please take a look at the following blogs [1, 2, 3] where users have found different approaches to solve this.


[2] - https://help.pythonanywhere.com/pages/NoSuchFileOrDirectory/

Reply all
Reply to author
Forward
0 new messages