-
Notifications
You must be signed in to change notification settings - Fork 30
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
running "bazel build //cc/google/fhir_examples:ParsePatients" on Ubuntu creates errors #9
Comments
Python is version 3.8.6, Bazel is verison 3.7.0, Java 11.0.9, Ubuntu 20.10 64 bit. |
Hi @KiwiFPVHarry! Could you confirm whether there's a
The Bazel workspace installs pip requirements during setup, and in doing so will require Based on the error message you may need to install
shows anything? |
We'll look at to see if there's any way we can split this more cleanly too -- as for someone just interested in |
after installing pip it has now completed only to get the next error when tryignt o run bazel-bin bazel build //cc/google/fhir_examples:ParsePatients |
Ah I see -- this looks to be an error in the Try running:
Which is just a relative path to the compiled binary created from the Let me know if that ends up fixing things for you! |
Thank you - running now..should taht take quite some time? running on a Ubuntu VM inside of WIndows |
It shouldn't be considerably long, maybe a minute or so, to parse all 1000 records. It should be dumping to |
Reading /home/h/fhirdata and blinking cursor...for about 10 minutes already |
did just run it again...cursor stops blinking after a few seconds |
Yeah something's not right. I'm guessing that the
|
all good now..have re-run the synthea script after deleting all but top folder and then all the commands executed successfully..:) thnaks for all the help..:) |
Glad to hear it! :) To add some additional context for what you might have encountered -- unfortunately the Because of this, when we eventually would try to execute the compiled I've added additional safety to Glad things are working, thanks for your help and patience! :) |
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Repository fhir_bazel_pip_dependencies instantiated at:
/home/h/fhir-examples/WORKSPACE:23:12: in
/home/h/.cache/bazel/_bazel_h/53cd8c1ffe775ea94a7e4204fd2a4fc0/external/rules_python/python/pip.bzl:128:15: in pip3_import
Repository rule pip_import defined at:
/home/h/.cache/bazel/_bazel_h/53cd8c1ffe775ea94a7e4204fd2a4fc0/external/rules_python/python/pip.bzl:51:29: in
ERROR: An error occurred during the fetch of repository 'fhir_bazel_pip_dependencies':
Traceback (most recent call last):
File "/home/h/.cache/bazel/_bazel_h/53cd8c1ffe775ea94a7e4204fd2a4fc0/external/rules_python/python/pip.bzl", line 49, column 13, in _pip_import_impl
fail("pip_import failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: pip_import failed: (Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in run_code
exec(code, run_globals)
File "/home/h/.cache/bazel/bazel_h/53cd8c1ffe775ea94a7e4204fd2a4fc0/external/rules_python/tools/piptool.par/main.py", line 71, in
File "/tmp/tmpusr4m7d/pip-tmp/pip/init.py", line 43, in
from pip.utils import get_installed_distributions, get_prog
File "/tmp/tmpusr4m7d/pip-tmp/pip/utils/init.py", line 23, in
from pip.locations import (
File "/tmp/tmpusr4m7d/pip-tmp/pip/locations.py", line 9, in
from distutils import sysconfig
ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/python3.8/distutils/init.py)
)
ERROR: no such package '@fhir_bazel_pip_dependencies//': pip_import failed: (Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in run_code
exec(code, run_globals)
File "/home/h/.cache/bazel/bazel_h/53cd8c1ffe775ea94a7e4204fd2a4fc0/external/rules_python/tools/piptool.par/main.py", line 71, in
File "/tmp/tmpusr4m7d/pip-tmp/pip/init.py", line 43, in
from pip.utils import get_installed_distributions, get_prog
File "/tmp/tmpusr4m7d/pip-tmp/pip/utils/init.py", line 23, in
from pip.locations import (
File "/tmp/tmpusr4m7d/pip-tmp/pip/locations.py", line 9, in
from distutils import sysconfig
ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/python3.8/distutils/init.py)
)
The text was updated successfully, but these errors were encountered: