Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: (gcloud.preview.app.deploy) Error Response: [400] Invalid character in filename: flask/ext/setuptools/script (dev).tmpl

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

  1. What is Script (dev).tmpl
  2. Why am I getting this error.

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.

like image 232
Vinay Joseph Avatar asked Oct 19 '22 18:10

Vinay Joseph


1 Answers

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

like image 192
Eliel Haouzi Avatar answered Oct 21 '22 15:10

Eliel Haouzi