GoogleCloudPlatform / healthcare-data-harmonization

This is an engine that converts data of one structure to another, based on a configuration file which describes how. There is an accompanying syntax to make writing mappings easier and more robust.
https://cloud.google.com/solutions/healthcare-life-sciences
Apache License 2.0
204 stars 64 forks source link

Error executing ./build_all.sh #12

Open roguelider opened 3 years ago

roguelider commented 3 years ago

While executing ./build_all.sh from the root directory I get the following error message:

# github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/errors errors/proto.go:105:20: impossible type assertion: *"github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto".ValueSource does not implement protoreflect.ProtoMessage (missing ProtoReflect method) errors/proto.go:120:69: projDef.ProtoReflect undefined (type *"github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto".ProjectorDefinition has no field or method ProtoReflect)

bebinu commented 3 years ago

Hi @roguelider , in addition, what version of protoc do you have installed on your filesystem (e.g. what is the output of running the following command line protoc --version)?

roguelider commented 3 years ago

Using libprotoc 3.11.4, go version 1.15.6 linux/amd64

EugOSullivan commented 1 year ago

I'm getting this exact error too, new to Healthcare-data-Harmonzation and Go. Using libprotoc 3.12.4 / GoLang 1.18.1 / Running under WSL in windows. Any help appreciated

KilimAnnejaro commented 1 year ago

Try go install google.golang.org/protobuf/cmd/protoc-gen-go as a fix for this issue.

fabianheredia commented 1 year ago

Try go install google.golang.org/protobuf/cmd/protoc-gen-go as a fix for this issue.

i have tried to use this comand but the error say:

(base) xxx-macbookpro:healthcare-data-harmonization fabiancamilo$ go install google.golang.org/protobuf/cmd/protoc-gen-g
go: 'go install' requires a version when current directory is not in a module
    Try 'go install google.golang.org/protobuf/cmd/protoc-gen-g@latest' to install the latest version
(base) xxx-macbookpro:healthcare-data-harmonization fabiancamilo$ go install google.golang.org/protobuf/cmd/protoc-gen-g@latest
go: downloading google.golang.org/protobuf v1.30.0
go: google.golang.org/protobuf/cmd/protoc-gen-g@latest: module google.golang.org/protobuf@latest found (v1.30.0), but does not contain package google.golang.org/protobuf/cmd/protoc-gen-g
fabianheredia commented 1 year ago

when i use a ./build_all.sh the error say:

(base) xxx-macbookpro:healthcare-data-harmonization fabiancamilo$ ./build_all.sh
protoc-gen-go: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--go_out: protoc-gen-go: Plugin failed with status code 1.
protoc-gen-go: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--go_out: protoc-gen-go: Plugin failed with status code 1.
protoc-gen-go: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--go_out: protoc-gen-go: Plugin failed with status code 1.
protoc-gen-go: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--go_out: protoc-gen-go: Plugin failed with status code 1.
protoc-gen-go: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--go_out: protoc-gen-go: Plugin failed with status code 1.
protoc-gen-go: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--go_out: protoc-gen-go: Plugin failed with status code 1.
Entering /Users/fabiancamilo/fabian/Keralty/code/healthcare-data-harmonization/mapping_engine
errors/proto.go:23:2: no required module provides package github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto; to add it:
    go get github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto
EugOSullivan commented 1 year ago

Have you installed the following?

Also, check if you're using golang 1.15.

sudo apt install protobuf-compiler sudo apt install golang-go sudo apt install golang-goprotobuf-dev

fabianheredia commented 1 year ago

Try go install google.golang.org/protobuf/cmd/protoc-gen-go as a fix for this issue. in some cases is necessary to put a stable version go install github.com/golang/protobuf/protoc-gen-go@latest