Giter Site home page Giter Site logo

Can't build web_app about loaner HOT 28 CLOSED

google avatar google commented on May 19, 2024
Can't build web_app

from loaner.

Comments (28)

daallgeier avatar daallgeier commented on May 19, 2024 5

Upon inspection of the output I saw that I needed to change line 248 in deploy.sh from
/bazel-out/k8-py3-fastbuild/bin/loaner/deployments/deploy_impl to
/bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl

I think this started the process of building the web_app. Sadly it still spit out the following errors.

gyp info ok 
Installed to /Users/da_allgeier/Development/loaner/loaner/node_modules/node-sass/vendor/darwin-x64-64/binding.node
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] license should be a valid SPDX license expression

added 1684 packages from 1182 contributors and audited 33532 packages in 389.063s
found 10 vulnerabilities (3 low, 3 moderate, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details

> [email protected] build:frontend /Users/da_allgeier/Development/loaner/loaner
> webpack --config web_app/frontend/config/webpack.aot.js

Hash: aa009c7d190c611bba85
Version: webpack 3.11.0
Time: 19352ms
 1 asset
   [0] ./web_app/frontend/src/main.aot.ts 0 bytes {0} [built]

**ERROR in shared/config.ts(22,15): error TS1005: ';' expected.
shared/config.ts(22,18): error TS1005: ';' expected.
shared/config.ts(23,1): error TS1128: Declaration or statement expected.
shared/config.ts(57,14): error TS1134: Variable declaration expected.
shared/config.ts(57,86): error TS1005: ';' expected.**

Child html-webpack-plugin for "index.html":
     1 asset
       [0] ./node_modules/html-webpack-plugin/lib/loader.js!./web_app/frontend/src/index.html 781 bytes {0} [built]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build:frontend: `webpack --config web_app/frontend/config/webpack.aot.js`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] build:frontend script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/da_allgeier/.npm/_logs/2019-04-15T21_47_16_756Z-debug.log

I've also edited the shared/config.ts in a bad way so some things were breaking.
ie: forgot quotes and deleted semicolons.

tomorrow I will setup a new config.ts as it is still sending out more and more errors...

I will get their -- somehow...

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024 1

yeah. that worked.

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

I think the error you're looking for is: "ERROR: /private/var/tmp/_bazel_da_allgeier/b8fe2dfec5c3e6f1134b315cf0fed080/external/local_config_cc/BUILD:55:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-armeabi-v7a: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, try: "bazel clean --expunge" to re-run Xcode configuration"

To me it sounds like your Xcode config/setup is incompatible. I've only ever done deployments from Linux (Debian/Ubuntu). Doing a search for this has landed a potential solution, though:

Can you try running the following:
bazel clean --expunge
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license
bazel clean --expunge

Steps from: https://stackoverflow.com/questions/45276830/xcode-version-must-be-specified-to-use-an-apple-crosstool

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024

Hi @helfrichmichael

Thank you for your help.

After running your suggestions I now get the following outputs:
~/D/loaner> bash loaner/deployments/deploy.sh web prod
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...
INFO: Analysed target //loaner/deployments:deploy_impl (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //loaner/deployments:deploy_impl up-to-date:
bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl
INFO: Elapsed time: 0.443s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
loaner/deployments/deploy.sh: line 248: ../bazel-out/k8-py3-fastbuild/bin/loaner/deployments/deploy_impl: No such file or directory

Their is still no App Engine Project deployed. Am I "just" missing the deploy_impl file and shall I re download the file OR am I still doing something wrong?

Thank you again for your help!

from loaner.

David-Promevo avatar David-Promevo commented on May 19, 2024

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

Can you share what folders exist in your ../bazel-out/* directory? I'm guessing that there's a mismatch between the output directory on Linux vs. Mac OS, but not 100% sure.

Additionally, which version of bazel are you running?

bazel version

Should provide the version.

from loaner.

templesnr avatar templesnr commented on May 19, 2024

Should I be trying the bazel clean - expunge with my build issue too? (Sorry, I don't mean to hijack). I'm Linux.

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

@templesnr for your issue, I haven't had a ton of time to dive into it. We're working internally on getting the package.json updated in coming pushes, but I have no ETA on when that will happen. The problem is that finding the right dependencies can be tricky. You could look into using NCU (https://www.npmjs.com/package/npm-check-updates) to update the packages, but know that you will likely still need to make modifications to support other dependencies.

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024

So I am running bazel v.0.24.1

And this is the output I am getting from ../bazel-out/*

../bazel-out/_tmp
../bazel-out/_tmp/action_outs
../bazel-out/darwin-fastbuild
../bazel-out/darwin-fastbuild/bin
../bazel-out/darwin-fastbuild/testlogs
../bazel-out/darwin-fastbuild/genfiles
../bazel-out/darwin-py3-fastbuild
../bazel-out/darwin-py3-fastbuild/bin
../bazel-out/darwin-py3-fastbuild/bin/loaner
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles_manifest
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/MANIFEST
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/six_archive
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/six_archive/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/six_archive/six.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags/_validators.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags/_flagvalues.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags/_defines.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags/_exceptions.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags/_helpers.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags/_argument_parser.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/flags/_flag.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/app.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/command_name.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/logging
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/logging/converter.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/absl/logging/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/absl_archive/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/loaner
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/loaner/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/loaner/deployments
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/loaner/deployments/deploy_impl.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/loaner/deployments/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/loaner/deployments/deploy_impl
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/six_archive
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/six_archive/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/six_archive/six.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags/_validators.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags/_flagvalues.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags/_defines.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags/_exceptions.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags/_helpers.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags/_argument_parser.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/flags/_flag.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/app.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/command_name.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/logging
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/logging/converter.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/absl/logging/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl.runfiles/gng/external/absl_archive/__init__.py
../bazel-out/darwin-py3-fastbuild/bin/loaner/deployments/deploy_impl
../bazel-out/stable-status.txt
../bazel-out/volatile-status.txt

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

You're so close! My recommendation would be to go to backup the config.ts and pull a fresh copy and reconfigure if possible just to make sure nothing is out-of-place.

As for the deploy_impl issue, that's likely a bug that we'll need to look into at some point since it seems we have two different behaviors now depending on the OS (Linux vs. Mac OS).

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024

Thank you so much @helfrichmichael! So the new config.ts doesn't make issues - I think. Now I am stuck again...

...
INFO: Build completed successfully, 1 total action
I0416 11:09:08.725621 4345533888 deploy_impl.py:326] The bundled frontend exists, we are replacing it with a new build.
I0416 11:09:08.733516 4345533888 deploy_impl.py:387] Deploying to the Google Cloud project: loaner-22d using gcloud...
ERROR: (gcloud.app.deploy) argument --version/-v: Bad value **[da_allgeier-20190416]**: May only contain lowercase letters, digits, and hyphens. Must begin and end with a letter or digit. Must not exceed 63 characters.
Usage: gcloud app deploy [DEPLOYABLES ...] [optional flags]
  optional flags may be  --bucket | --help | --image-url | --promote |
                         --stop-previous-version | --version

For detailed information on this command and its flags, run:
  gcloud app deploy --help

Changing the username from da_allgeier to dominik worked.

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

It looks like the issue is that your username has a underscore which is a forbidden character for the versioning. You can do the following:

  • Run your bash deployments/deploy.sh web prod --version SOMETHING-HERE

OR

  • Follow the steps in #15 to adjust the versioning.

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024

Changing the user name worked - and I really wanted to change it anyway :D

So now I have the following error (I am losing my mind 🤯)..

╠═ Uploading ~18832 files to Google Cloud Storage                ═╣

File upload done.
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app.
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: This deployment has too many files. New versions are limited to 10000
      files for this app.
    field: version.deployment.files[...]

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

That's likely my fault since I didn't test against a Mac OS device when I made the upgrade to our deploy_impl script due to some dependencies needing upgrading/dir name changes. In your bazel output directory (./bazel-loaner/external/), can you tell me if you have a folder resembling the following name?

"com_google_appengine_python"
"com_google_appengine_py"

Or anything similar to that?

Depending on what your appengine python package is, you need to adjust the deploy_impl script to remove that folder before deployment at the following line: https://github.com/google/loaner/blob/master/loaner/deployments/deploy_impl.py#L295

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024

I am seeing the com_google_appengine_py folder.

How do I remove that folder on this line?

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

In your local deploy_impl script, is it targetting com_google_appengine_py or com_google_appengine_python? The script will prevent dependencies such as these from being pushed to GCP.

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024

It is targeting com_google_appengine_python. So I just change it to com_google_appengine_py?

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

Yeah, there were some changes with Bazel dependencies that caused the folder structure to change. The latest push to master/HEAD includes these changes for what it's worth.

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024

Good to know. So the app engine is deployed now. I can see all 4 services.

When going to .appspot.com I now get an internal server error... 🙈 I am losing my patients now... Next time make a pro to do this...

Anyway here is the page output:

Traceback (most recent call last):
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/7679791231c143f9/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__
    rv = self.handle_exception(request, response, e)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/7679791231c143f9/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__
    rv = self.router.dispatch(request, response)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/7679791231c143f9/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/7679791231c143f9/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in __call__
    return handler.dispatch()
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/7679791231c143f9/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/base/alloc/tmpfs/dynamic_runtimes/python27g/7679791231c143f9/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/loaner/web_app/backend/handlers/frontend.py", line 73, in get
    self._sync_roles_if_necessary()
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/loaner/web_app/backend/handlers/frontend.py", line 98, in _sync_roles_if_necessary
    sync_users.sync_user_roles()
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/loaner/web_app/backend/lib/sync_users.py", line 34, in sync_user_roles
    client = directory.DirectoryApiClient(constants.ADMIN_EMAIL)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/loaner/web_app/backend/clients/directory.py", line 73, in __init__
    self._client = self._create_directory_service(user_email)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/loaner/web_app/backend/clients/directory.py", line 101, in _create_directory_service
    http=google_auth_httplib2.AuthorizedHttp(credentials=credentials))
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/oauth2client_archive/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/googleapiclient_archive/googleapiclient/discovery.py", line 229, in build
    requested_url, discovery_http, cache_discovery, cache)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/googleapiclient_archive/googleapiclient/discovery.py", line 276, in _retrieve_discovery_doc
    resp, content = http.request(actual_url)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/google_auth_httplib2_archive/google_auth_httplib2.py", line 187, in request
    self._request, method, uri, request_headers)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/gcloud_auth_archive/google/auth/credentials.py", line 121, in before_request
    self.refresh(request)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/gcloud_auth_archive/google/oauth2/service_account.py", line 322, in refresh
    request, self._token_uri, assertion)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/gcloud_auth_archive/google/oauth2/_client.py", line 144, in jwt_grant
    response_data = _token_endpoint_request(request, token_uri, body)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/gcloud_auth_archive/google/oauth2/_client.py", line 110, in _token_endpoint_request
    _handle_error_response(response_body)
  File "/base/data/home/apps/o~loaner-22d/dominik-20190416.417537111954268243/external/gcloud_auth_archive/google/oauth2/_client.py", line 60, in _handle_error_response
    error_details, response_body)
RefreshError: ('unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.', u'{\n  "error": "unauthorized_client",\n  "error_description": "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."\n}')

What can I do to fix this?

Additionally I can see the following error in a cron job:

/_cron/sync_user_roles | sync roles for users | every 30 minutes(GMT) | 2019-04-17 (11:39:00) On time | Failed

from loaner.

scassidy01 avatar scassidy01 commented on May 19, 2024

@daallgeier Did you add the service account to the Technical Admins group? You can do this by copying the email address for the service account IAM & Admin > Service Accounts and adding it to the technical_admins group you made within the Chrome Management console.

from loaner.

daallgeier avatar daallgeier commented on May 19, 2024

@scassidy01 I have just now and then rebuild - it still won't work... 😕

from loaner.

David-Promevo avatar David-Promevo commented on May 19, 2024

from loaner.

JoshSanchezG avatar JoshSanchezG commented on May 19, 2024

Hello all,

I'm getting this error:

x

Do you have any idea?

Thanks

from loaner.

JoshSanchezG avatar JoshSanchezG commented on May 19, 2024

Hi,

I have fixed my error, just opening the file: py_appengine.bzl, that is located in this folder: /home/gng2/.cache/bazel/_bazel_gng2/65a9a5e69e2d406d9df52991805e9eda/external/io_bazel_rules_appengine/appengine and editing the row: 165:
From: return struct(runfiles = runfiles, py = ctx.attr.binary.py)
To: return struct(runfiles = runfiles)

Kind regards!

from loaner.

kid-yume avatar kid-yume commented on May 19, 2024

You can also juse the Bazel Version 0.24.0 for anyone else running into this issue

Will not work with newer versions. Run the following versions:

Uninstall the version you have:
sudo apt-get remove bazel

Installing Bazel
sudo apt-get install -y --no-install-recommends \
bash-completion \
g++ \
zlib1g-dev \
&& curl -LO "https://github.com/bazelbuild/bazel/releases/download/0.24.0/bazel_0.24.0-linux-x86_64.deb"

Then Run the installation:
sudo dpkg -i bazel_*.deb

Check your version
bazel version

You can now even go into the web app folder and check the build processes with
bazel build runfiles --incompatible_disallow_filetype=false

from loaner.

jbaker10 avatar jbaker10 commented on May 19, 2024

For those on macOS, we had to roll back 0.22.0 in order to get around this build error.

from loaner.

gyoshi02 avatar gyoshi02 commented on May 19, 2024

@jbaker10 or @helfrichmichael can you guys provide the brew tap syntax to downgrade to bazel version 22?
And, is this the correct file?
https://github.com/bazelbuild/bazel/releases/download/0.22.0/bazel-0.22.0-installer-darwin-x86_64.sh

Thanks,
Grant

So I was able to figure out what corresponded to the Brew Version.

BAZEL 22
brew install https://raw.githubusercontent.com/bazelbuild/homebrew-tap/fb0de4b3883ee9ea0c39a29793e779c74e3a660e/Formula/bazel.rb

Not sure if this will be helpful to anyone, but as a total newb to Git/homebrew, here's a page that has the commits for the Master Formula for Bazel

https://github.com/bazelbuild/homebrew-tap/commits/master/Formula

from loaner.

helfrichmichael avatar helfrichmichael commented on May 19, 2024

Going to resolve this since there hasn't been any further update in some time. Thanks and let us know if this isn't resolved.

from loaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.