Errors While Deploying

11 views
Skip to first unread message

Mason Greene

unread,
Dec 12, 2019, 11:25:47 PM12/12/19
to loa...@googlegroups.com
Hello,

In trying to deploy the GnG app I'm getting the following errors in the Terminal (launching in Ubunut 18.04 x64):

INFO: Checking for gcloud on PATH and version...
SUCCESS: gcloud was found on PATH and is at or above the minimum version.
INFO: Checking for bazel on PATH and version...
SUCCESS: bazel was found on PATH and is at or above the minimum version.
INFO: Checking for npm on PATH and version...
SUCCESS: npm was found on PATH and is at or above the minimum version.
INFO: Checking gcloud authentication...
INFO: Going to the loaner directory...
INFO: Initiating the build of the python deployment script...
ERROR: /home/gmedia/.cache/bazel/_bazel_gmedia/edb1a3171eacfa8b405489f8474c0b2d/external/io_bazel_rules_appengine/appengine/py_appengine.bzl:211:48: Traceback (most recent call last):
File "/home/gmedia/.cache/bazel/_bazel_gmedia/edb1a3171eacfa8b405489f8474c0b2d/external/io_bazel_rules_appengine/appengine/py_appengine.bzl", line 205
rule(_py_appengine_binary_base_impl, at..."]))}, <2 more arguments>)
File "/home/gmedia/.cache/bazel/_bazel_gmedia/edb1a3171eacfa8b405489f8474c0b2d/external/io_bazel_rules_appengine/appengine/py_appengine.bzl", line 211, in rule
attr.label_list(allow_files = FileType([".yaml",..."]))
File "/home/gmedia/.cache/bazel/_bazel_gmedia/edb1a3171eacfa8b405489f8474c0b2d/external/io_bazel_rules_appengine/appengine/py_appengine.bzl", line 211, in attr.label_list
FileType([".yaml", ".py"])
FileType function is not available. You may use a list of strings instead. You can temporarily reenable the function by passing the flag --incompatible_disallow_filetype=false
ERROR: error loading package '': Extension file 'appengine/py_appengine.bzl' has errors
ERROR: error loading package '': Extension file 'appengine/py_appengine.bzl' has errors
INFO: Elapsed time: 0.119s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)


Here is the line of the file it is pointing to:

py_appengine_binary_base = rule(
    _py_appengine_binary_base_impl,
    attrs = {
        "binary": attr.label(),
        "devappserver": attr.label(default=Label("@com_google_appengine_python//:dev_appserver")),
        "appcfg": attr.label(default=Label("@com_google_appengine_python//:appcfg")),
        "configs": attr.label_list(allow_files=FileType([".yaml", ".py"])),
    },
    executable = True,
    outputs = {
        "deploy_sh": "%{name}_deploy.sh",
    },
)



Any thoughts why I'm getting this error?

Thank you,
Mason





Mike Helfrich

unread,
Dec 13, 2019, 10:10:16 AM12/13/19
to Mason Greene, Grab n Go Loaners
What version of Bazel are you running? The current release only supports version 0.26 or earlier.

You can get the bazel version by running bazel version in your terminal.

--
You received this message because you are subscribed to the Google Groups "Grab n Go Loaners" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loaner+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loaner/CAKJDHujPkiADjBwLcL0drX5hrim-hoS44m70-_iR3an_%2BNcbXQ%40mail.gmail.com.


--

Google NYC
Mike Helfrich
Corporate Operations Engineer
mikehe...@google.com

Reply all
Reply to author
Forward
0 new messages