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

Error executing mapping_engine/main/main.go #3

Open
agonzalez-cloud39 opened this issue Aug 21, 2020 · 5 comments
Open

Error executing mapping_engine/main/main.go #3

agonzalez-cloud39 opened this issue Aug 21, 2020 · 5 comments
Assignees
Labels

Comments

@agonzalez-cloud39
Copy link

Hello.
When I am trying to execute the main.go file in mapping_engine/main/main.go I am receiving an error . The error is the following:

go: finding github.com/GoogleCloudPlatform/healthcare-data-harmonization latest
go: finding github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto latest
go: finding github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine latest
go: downloading github.com/GoogleCloudPlatform/healthcare-data-harmonization v0.0.0-20200819221702-ea901159760e
go: extracting github.com/GoogleCloudPlatform/healthcare-data-harmonization v0.0.0-20200819221702-ea901159760e
build github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/main: cannot load github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto: module github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto@latest (v0.0.0-20200819221702-ea901159760e) found, but does not contain package github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto

Regards,

@rpolyano
Copy link
Contributor

Please try running build_all.sh from the root directory.

That should generate the go code from the protos.

@rpolyano rpolyano self-assigned this Aug 21, 2020
@agonzalez-cloud39
Copy link
Author

Hello, I was able to execute the build_all.sh with this result:

go: finding google.golang.org v1.25.0
go: finding google.golang.org/protobuf/cmd/protoc-gen-go v1.25.0
go: finding google.golang.org/protobuf/cmd v1.25.0
proto/data_harmonization.proto:7:1: warning: Import proto/mapping.proto is unused.
Downloading ANTLR 4.7.1 to ./.antlr/antlr.jar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2187k  100 2187k    0     0  1493k      0  0:00:01  0:00:01 --:--:-- 1493k
./generate_grammar.sh: line 32: java: command not found

Then, when I ran the mapping_engine/main/main.go I received

go: finding github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_language latest
go: finding github.com/GoogleCloudPlatform/healthcare-data-harmonization latest
build command-line-arguments: cannot load github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_language/parser: module github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_language@latest found (v0.0.0-20200825174619-10aeb28a0c45, replaced by /mnt/c/ignw_repo/healthcare-data-harmonization-master/healthcare-data-harmonization-master/mapping_language), but does not contain package github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_language/parser

I have installed:
go1.13.9 linux/amd64
libprotoc 3.11.4

Thanks in advance

@rpolyano
Copy link
Contributor

rpolyano commented Aug 25, 2020

Please install a Java JRE (8 or 9) and make sure that it's in your PATH. This is required for ANTLR to generate code from the grammar.

We'll be adding a prerequisites section to the Readme to help with this.

@lastomato
Copy link
Collaborator

@agonzalez-cloud39 Have you tried the Jupyter notebooks environment we provide? It might be easier since the runtime will be built for you.

@AmmyRaj
Copy link

AmmyRaj commented Jul 21, 2024

@lastomato Hi i am getting below error,while running build_all.sh.

  • cd mapping_engine
  • ./build.sh
    google/protobuf/any.proto: File not found.
    proto/mapping.proto:5:1: Import "google/protobuf/any.proto" was not found or had errors.

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

No branches or pull requests

4 participants