Unable to run dev_appserver.py with gcloud

前端 未结 2 951
野性不改
野性不改 2021-01-28 05:56

I\'m attempting to use the command dev_appserver.py ./ from my application directory, but it\'s throwing the following error.

ERROR    2016-01-04 04         


        
相关标签:
2条回答
  • 2021-01-28 06:35

    I did a bit of research on this, so... Okay, here's what you've got to do.

    takes a breath

    Head over to this gentleman's GitHub page, and download the package as a zip. https://github.com/dhermes/test-gcloud-on-gae

    Now, you need to add some folders/files from his folder into yours to get gcloud working.

    1) Open the application folder and put the vendor folder into your root directory. This folder contains the gcloud package, as well as many others. You can delete the others if you want.

    2) Add the appengine_config.py into your root directory as well. This file tells app engine where your third party packages are.

    3) Add darth.py to your root directory as well. This is just a help file.

    Actually, that should do it. This gentleman wrote some scripts for using third party apps with app engine, and they're quite useful. Let me know if your import works after doing that!

    I tested it locally and it works perfectly. Basically, any third party python packages work with app engine, as long as there are no other languages within them such as C.

    0 讨论(0)
  • 2021-01-28 06:38

    Is using the python development server from gcloud still a problem? I'm successfully using dev_appserver.py from the terminal. See reference.

    Perhaps the install and setup instructions have improved since a year ago. I believe the installation puts the file, dev_appserver.py, in your system path, even on Windows, so it is accessible from the terminal.

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