question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: Bazel fails to run when a different version is installed by brew

See original GitHub issue

What happened?

I was trying to generate the atom for Get Text by using the following bazel command:

bazel build //javascript/atoms/fragments:get-text

But that failed with:

ERROR: The project you're trying to build requires Bazel 5.1.1 (specified in /Users/henrik/code/selenium/.bazelversion), but it wasn't found in /opt/homebrew/Cellar/bazel/5.3.0/libexec/bin.

Note that I have a newer version of Bazel installed which I assume should also work and that 5.1.1 is more or less the minimum required version?

How can we reproduce the issue?

On MacOS install `bazel` via `brew` and then run the above mentioned command to build the atom.

Relevant log output

ERROR: The project you're trying to build requires Bazel 5.1.1 (specified in /Users/henrik/code/selenium/.bazelversion), but it wasn't found in /opt/homebrew/Cellar/bazel/5.3.0/libexec/bin.

Bazel binaries for all official releases can be downloaded from here:
  https://github.com/bazelbuild/bazel/releases

You can download the required version directly using this command:
  (cd "/opt/homebrew/Cellar/bazel/5.3.0/libexec/bin" && curl -fLO https://releases.bazel.build/5.1.1/release/bazel-5.1.1-darwin-arm64 && chmod +x bazel-5.1.1-darwin-arm64)

Operating System

MacOS 12.6

Selenium version

Latest trunk

What are the browser(s) and version(s) where you see this issue?

Firefox 107

What are the browser driver(s) and version(s) where you see this issue?

geckodriver 0.31.0

Are you using Selenium Grid?

No

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
whimboocommented, Oct 12, 2022

Ok so you can probably close this issue.

0reactions
github-actions[bot]commented, Nov 12, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

problem about installing bazel with homebrew - Stack Overflow
I do not want to install two javas in my mac. You have to, or remove the version you currently have. Bazel needs...
Read more >
Having trouble installing bazel on Mac OS - Reddit
I am trying to set up protobufs on my Mac and seemingly Bazel needs to be installed. ... ERROR: No installed Bazel version...
Read more >
Installing Bazel on Ubuntu
Step 1: Install required packages; Step 2: Run the installer ... the APT repository does not contain an arm64 release, and there is...
Read more >
Installation | mediapipe - Google
If you run into a build error, please read Troubleshooting to find the solutions of several common build issues. Installing on macOS. Prework:...
Read more >
Building Ray from Source — Ray 2.1.0 - the Ray documentation
brew update brew install wget # Install Bazel. ray/ci/env/install-bazel.sh ... pip install -e . --verbose # Add --user if you see a permission...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found