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

object-detection-function tests do not run on M1 macbook pro #401

Closed
dmfrey opened this issue Oct 28, 2022 · 5 comments
Closed

object-detection-function tests do not run on M1 macbook pro #401

dmfrey opened this issue Oct 28, 2022 · 5 comments

Comments

@dmfrey
Copy link
Contributor

dmfrey commented Oct 28, 2022

There's an open issue on the dependent project to provide support for the protoc-3.7.0-osx-aarch_64.exe:

os72/protoc-jar#93

[ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.7.0:run (default) on project object-detection-function: Error extracting protoc for version 3.7.0: Unsupported platform: protoc-3.7.0-osx-aarch_64.exe -> [Help 1]
@corneil
Copy link
Contributor

corneil commented Jan 12, 2023

@dmfrey The dependencies have been updated with the latest snapshot. Please check if they make any difference.

@onobc
Copy link
Collaborator

onobc commented Jan 12, 2023

I will take a test drive @corneil as this was still broken for me as of yesterday.

@onobc
Copy link
Collaborator

onobc commented Jan 13, 2023

Failed w/ something else...

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:50 min
[INFO] Finished at: 2023-01-12T16:00:21-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project object-detection-function: Error extracting protoc for version 3.11.4: Unsupported platform: protoc-3.11.4-osx-aarch_64.exe -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

@corneil
Copy link
Contributor

corneil commented Jan 17, 2023

Found that I can add <protocArtifact>com.google.protobuf:protoc:${protobuf.version}</protocArtifact> to the configuration of protoc-jar-maven-plugin and it will download the official build of protoc from Maven.
Try newer versions if you experience issues. The protobuf-java and protoc versions should be the same.

@onobc
Copy link
Collaborator

onobc commented Jan 17, 2023

This now works locally on M1 - thanks @corneil .

Closing via 722fb91

@onobc onobc closed this as completed Jan 17, 2023
corneil pushed a commit that referenced this issue Jan 17, 2023
corneil pushed a commit that referenced this issue Jan 17, 2023
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

3 participants