J'essaie de déployer une application flask sur google cloud. En dépit de suivre leurs instructions, chaque fois que je démarre le serveur dev, il ne peut pas trouver la bibliothèque vendor.add('lib')
. Comment régler ceci?Google App Engine ne trouve pas lib depuis appengine_config
sudo /google-cloud-sdk/bin/dev_appserver.py app.yaml > file
INFO 2017-10-10 20:20:04,276 devappserver2.py:115] Skipping SDK update check.
INFO 2017-10-10 20:20:04,338 api_server.py:299] Starting API server at: http://localhost:53496
WARNING 2017-10-10 20:20:04,338 dispatcher.py:285] Your python27 micro version is below 2.7.12, our current production version.
INFO 2017-10-10 20:20:04,343 dispatcher.py:224] Starting module "default" running at: http://localhost:8080
INFO 2017-10-10 20:20:04,345 admin_server.py:116] Starting admin server at: http://localhost:8000
/deploy_10oct/lib
ERROR 2017-10-10 20:20:11,913 wsgi.py:263]
Traceback (most recent call last):
File "/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "deploy_10oct/main.py", line 11, in <module>
import h5py
ImportError: No module named h5py
INFO 2017-10-10 20:20:11,919 module.py:821] default: "GET/HTTP/1.1" 500 -
structure Répertoire
ls
app.yaml
env
lame.pyc
main.pyc
templates
appengine_config.py
lib
requirements.txt
uploads
appengine_config.pyc
lame.py
main.py
static
Pourriez-vous partager votre 'appengine_config.py'? –