Why is dev_appserver.py reporting “no such file or directory” after today's gcloud components update

前端 未结 5 1730
挽巷
挽巷 2020-12-03 21:47

I\'ve been successfully running the local development server daily and have made no changes except that I called \"gcloud components update\" just before it stopped working.

相关标签:
5条回答
  • 2020-12-03 22:16

    You may create make file and have something like this:

    export SDK=dev_appserver.py
    export APP_PATH=${CURDIR}
    
    run:
        $(SDK) $(APP_PATH)/path-to/app.yaml
    

    And just use it with: make run so you don't have to worry about paths.

    0 讨论(0)
  • 2020-12-03 22:17

    On Windows, dev_appserver.py %CD% is enough if your .yaml file has the default app.yaml name. Otherwise dev_appserver.py %CD%/your-file-name.yaml

    0 讨论(0)
  • 2020-12-03 22:18

    This worked for me: in app.yaml, change

    runtime: go

    to

    runtime: go111

    0 讨论(0)
  • 2020-12-03 22:31

    It looks like there's an active issue on Google's issue tracker (opened on Oct 2, 2018) pertaining to this:

    After updating to the Python (2.7) extensions for GAE to version 1.9.76, I am no longer able to run my code with dev_appserver.py

    As of Oct 3, a fix appears to be in the works, but for now they suggest downgrading Google Cloud SDK to version 218.0.0:

    It seems like you are affected by a known issue regarding ‘dev_appserver.py’ breaks in Google Cloud SDK version [219.0.1]. App Engine specialists are currently working to resolve it. However there is no ETA at this moment. As a workaround you can downgrade the Google Cloud SDK version using this command:

    gcloud components update --version 218.0.0
    

    The assignee of the issue will post an update on that issue when it has been resolved.

    UPDATE (OCT 9, 2018): Cloud SDK version 220.0.0, which fixes the dev_appserver.py issue, is now available. I updated (via gcloud components update) and verified that it works. (Note: there are already a couple of complaints on the Issue Tracker that dev_appserver.py takes too long to load now. I didn't notice a significant difference from version 218, but I didn't compare timings.)

    0 讨论(0)
  • 2020-12-03 22:38

    cd to the directory with app.yaml in it and try again

    0 讨论(0)
提交回复
热议问题