I am trying to launch my app into app engine using the following command.
gcloud --project=xxx preview app deploy app.yaml
I am then given the following error message
Updating module [default]...|
Updating module [default].../
Updating module [default]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [400] Invalid character in filename: server/lib/flask/ext/setuptools/script (dev).tmpl
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Contents of Script (dev).tmpl
# EASY-INSTALL-DEV-SCRIPT: %(spec)r,%(script_name)r
__requires__ = %(spec)r
__import__('pkg_resources').require(%(spec)r)
__file__ = %(dev_path)r
exec(compile(open(__file__).read(), __file__, 'exec'))
Questions
updated based on the first response
I have added the following to app.yaml file.
skip_files: - server/lib/flask/ext/setuptools/script (dev).tmpl
However, it still gives me the same error.
So the skip_files works you must antislash the special characters. Add this to your app.yaml
skip_files:
- server/lib/flask/ext/setuptools/script\ \(dev\).tmpl
set your relative path according to your .yaml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With