Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on Mac #8

Open
shumon07 opened this issue Apr 29, 2022 · 5 comments
Open

Unable to build on Mac #8

shumon07 opened this issue Apr 29, 2022 · 5 comments

Comments

@shumon07
Copy link

Hi tried to build this on Mac. I am getting following error

/Users/shumonalam/Documents/simhospital/WORKSPACE:58:15: in
/private/var/tmp/_bazel_shumonalam/335dd65aaaca9d8a54966ea18af5f74a/external/io_bazel_rules_docker/repositories/deps.bzl:35:12: in deps
/private/var/tmp/_bazel_shumonalam/335dd65aaaca9d8a54966ea18af5f74a/external/io_bazel_rules_docker/repositories/py_repositories.bzl:36:19: in py_deps
Repository rule pip_import defined at:
/private/var/tmp/_bazel_shumonalam/335dd65aaaca9d8a54966ea18af5f74a/external/rules_python/python/pip.bzl:42:29: in
ERROR: An error occurred during the fetch of repository 'pip_deps':
Traceback (most recent call last):
File "/private/var/tmp/_bazel_shumonalam/335dd65aaaca9d8a54966ea18af5f74a/external/rules_python/python/pip.bzl", line 40, column 13, in _pip_import_impl
fail("pip_import failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: pip_import failed: (src/main/tools/process-wrapper-legacy.cc:80: "execvp(python, ...)": No such file or directory
)
ERROR: /Users/shumonalam/Documents/simhospital/WORKSPACE:58:15: fetching pip_import rule //external:pip_deps: Traceback (most recent call last):
File "/private/var/tmp/_bazel_shumonalam/335dd65aaaca9d8a54966ea18af5f74a/external/rules_python/python/pip.bzl", line 40, column 13, in _pip_import_impl
fail("pip_import failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: pip_import failed: (src/main/tools/process-wrapper-legacy.cc:80: "execvp(python, ...)": No such file or directory
)
ERROR: no such package '@pip_deps//': pip_import failed: (src/main/tools/process-wrapper-legacy.cc:80: "execvp(python, ...)": No such file or directory
)

@shumon07
Copy link
Author

shumon07 commented May 4, 2022

Please help

@Vera-Spoettl
Copy link

Same problem here. :-(
Any idea what's going wrong?

@archit47
Copy link

@shumon07 What is your Mac OS version and do you have python installed on your machine?

@lexsoul
Copy link

lexsoul commented Mar 28, 2023

You need to install Python 2.7.16 https://www.python.org/downloads/release/python-2716/

And install bazel@5.4.0 following “Installing using the binary installer” https://bazel.build/install/os-x#install-with-installer-mac-os-x

@chrisdutz
Copy link

I got it to build on my M2 Mac, by simply deleting all ".bazel" files, using GoLand (Jetbrains GO IDE) and added a new "go.mod". I then simply left it at it's defaults and in any random go-file, I simply had it "syncronise". After a few seconds it added all the dependencies to the go.mod and I was able to instantly start simhospital locally on my mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants