Я не могу развернуть приложение в Google App Engine.
Кажется, проблема связана с моим requirements.txt
файлом:
- При развертывании примера building-an-app-1 , он хорошо работает.
- Когда я заменяю оригинальный файл
requirements.txt
на мой, он не работает *.
Здесь мой requirements.txt
:
Flask==1.1.1
flask-wtf==0.14.2
unidecode
numpy
openfoodfacts
os
Когда я удаляю последние 2 пакета, он работает.
В чем проблема?
*gcloud deploy app
возвращает:
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 813ab290-60a1-427c-830f-3a7e2d35f39b status: FAILURE.
Build error details: {"error":{"errorType":"BuildError","canonicalCode":"INVALID_ARGUMENT","errorId":"288DA415","errorMessage":"01 Feb 2020 17:23:53 INFO Arguments: ['--parser_script=/usr/local/bin/ftl.par', '--src=', '--entrypoint=', '--name=eu.gcr.io/skilful-alpha-259713/app-engine-tmp/app/ttl-2h:34df8d6c-74e5-4583-bd94-165295531608', '--directory=/workspace', '--destination=/srv', '--cache-repository=eu.gcr.io/skilful-alpha-259713/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=eu.gcr.io/gae-runtimes/python37:python37_20191019_3_7_4_RC00']
01 Feb 2020 17:23:53 INFO Unparsed arguments: ['--name=eu.gcr.io/skilful-alpha-259713/app-engine-tmp/app/ttl-2h:34df8d6c-74e5-4583-bd94-165295531608', '--directory=/workspace', '--destination=/srv', '--cache-repository=eu.gcr.io/skilful-alpha-259713/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=eu.gcr.io/gae-runtimes/python37:python37_20191019_3_7_4_RC00']
01 Feb 2020 17:23:53 INFO Executing ['/usr/local/bin/ftl.par', '--name=eu.gcr.io/skilful-alpha-259713/app-engine-tmp/app/ttl-2h:34df8d6c-74e5-4583-bd94-165295531608', '--directory=/workspace', '--destination=/srv', '--cache-repository=eu.gcr.io/skilful-alpha-259713/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=eu.gcr.io/gae-runtimes/python37:python37_20191019_3_7_4_RC00']
INFO FTL version python-v0.17.0
INFO Beginning FTL build for python
INFO FTL arg passed: virtualenv_dir /env
INFO FTL arg passed: ttl 168
INFO FTL arg passed: python_cmd /opt/python3.7/bin/python3.7
INFO FTL arg passed: cache True
INFO FTL arg passed: virtualenv_cmd virtualenv
INFO FTL arg passed: entrypoint None
INFO FTL arg passed: exposed_ports None
INFO FTL arg passed: pip_cmd /env/bin/python3.7 -m pip
INFO FTL arg passed: tar_base_image_path None
INFO FTL arg passed: export_cache_stats False
INFO FTL arg passed: builder_output_path \"\"
INFO FTL arg passed: destination_path /srv
INFO FTL arg passed: sh_c_prefix False
INFO FTL arg passed: base eu.gcr.io/gae-runtimes/python37:python37_20191019_3_7_4_RC00
INFO FTL arg passed: cache_key_version v0.17.0
INFO FTL arg passed: cache_salt
INFO FTL arg passed: cache_repository eu.gcr.io/skilful-alpha-259713/app-engine-tmp/build-cache/ttl-7d
INFO FTL arg passed: venv_cmd /opt/python3.7/bin/python3.7 -m venv /env
INFO FTL arg passed: name eu.gcr.io/skilful-alpha-259713/app-engine-tmp/app/ttl-2h:34df8d6c-74e5-4583-bd94-165295531608
INFO FTL arg passed: global_cache False
INFO FTL arg passed: upload True
INFO FTL arg passed: fail_on_error True
INFO FTL arg passed: output_path None
INFO FTL arg passed: directory /workspace
INFO FTL arg passed: additional_directory /.googleconfig
INFO FTL arg passed: verbosity DEBUG
INFO starting: full build
INFO starting: builder initialization
INFO Loading Docker credentials for repository 'eu.gcr.io/gae-runtimes/python37:python37_20191019_3_7_4_RC00'
INFO Loading Docker credentials for repository 'eu.gcr.io/skilful-alpha-259713/app-engine-tmp/app/ttl-2h:34df8d6c-74e5-4583-bd94-165295531608'
INFO builder initialization took 0 seconds
INFO starting: build process for FTL image
INFO starting: checking_cached_interpreter_layer
INFO starting: check python version
INFO `python version` full cmd:
/opt/python3.7/bin/python3.7 --version
I.