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 ./build_all.sh #12

Open
roguelider opened this issue Dec 22, 2020 · 8 comments
Open

Error executing ./build_all.sh #12

roguelider opened this issue Dec 22, 2020 · 8 comments
Labels

Comments

@roguelider
Copy link

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
Copy link
Collaborator

bebinu commented Jan 13, 2021

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
Copy link
Author

Using libprotoc 3.11.4, go version 1.15.6 linux/amd64

@EugOSullivan
Copy link

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
Copy link

KilimAnnejaro commented Apr 6, 2023

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

@fabianheredia
Copy link

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
Copy link

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
Copy link

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
Copy link

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

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

6 participants