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

protoc failed: error executing command #852

Open
epris opened this issue Jun 26, 2024 · 3 comments
Open

protoc failed: error executing command #852

epris opened this issue Jun 26, 2024 · 3 comments

Comments

@epris
Copy link

epris commented Jun 26, 2024

Dear all,

I installed Bazel 5.4.0 and the last version version of waymo-open-dataset.git. I'm on Ubuntu 22.04

When I run the command
sudo bazel build waymo_open_dataset/metrics/tools/compute_tracking_metrics_main

I get the following error

INFO: Analyzed target //waymo_open_dataset/metrics/tools:compute_tracking_metrics_main (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
**ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/protos/BUILD:159:18: Generating C++ proto_library //waymo_open_dataset/protos:camera_tokens_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' '-Iwaymo_open_dataset/protos/camera_tokens.proto=waymo_open_dataset/protos/camera_tokens.proto' ... (remaining 9 arguments skipped)**

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/protos/camera_tokens.proto: warning: directory does not exist.
waymo_open_dataset/dataset.proto: warning: directory does not exist.
waymo_open_dataset/label.proto: warning: directory does not exist.
waymo_open_dataset/protos/keypoint.proto: warning: directory does not exist.
waymo_open_dataset/protos/vector.proto: warning: directory does not exist.
waymo_open_dataset/protos/map.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/protos/camera_tokens.proto: No such file or directory
**ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/protos/BUILD:112:18: Generating C++ proto_library //waymo_open_dataset/protos:keypoint_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' '-Iwaymo_open_dataset/protos/keypoint.proto=waymo_open_dataset/protos/keypoint.proto' ... (remaining 5 arguments skipped)**

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/protos/keypoint.proto: warning: directory does not exist.
waymo_open_dataset/protos/vector.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/protos/keypoint.proto: No such file or directory
**ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/protos/BUILD:27:18: Generating C++ proto_library //waymo_open_dataset/protos:metrics_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' '-Iwaymo_open_dataset/protos/metrics.proto=waymo_open_dataset/protos/metrics.proto' ... (remaining 13 arguments skipped)**

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/protos/metrics.proto: warning: directory does not exist.
waymo_open_dataset/protos/breakdown.proto: warning: directory does not exist.
waymo_open_dataset/label.proto: warning: directory does not exist.
waymo_open_dataset/protos/keypoint.proto: warning: directory does not exist.
waymo_open_dataset/protos/vector.proto: warning: directory does not exist.
waymo_open_dataset/protos/scenario.proto: warning: directory does not exist.
waymo_open_dataset/protos/camera_tokens.proto: warning: directory does not exist.
waymo_open_dataset/dataset.proto: warning: directory does not exist.
waymo_open_dataset/protos/map.proto: warning: directory does not exist.
waymo_open_dataset/protos/compressed_lidar.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/protos/metrics.proto: No such file or directory
**ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/protos/BUILD:86:18: Generating C++ proto_library //waymo_open_dataset/protos:scenario_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' '-Iwaymo_open_dataset/protos/scenario.proto=waymo_open_dataset/protos/scenario.proto' ... (remaining 11 arguments skipped)**

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/protos/scenario.proto: warning: directory does not exist.
waymo_open_dataset/protos/camera_tokens.proto: warning: directory does not exist.
waymo_open_dataset/dataset.proto: warning: directory does not exist.
waymo_open_dataset/label.proto: warning: directory does not exist.
waymo_open_dataset/protos/keypoint.proto: warning: directory does not exist.
waymo_open_dataset/protos/vector.proto: warning: directory does not exist.
waymo_open_dataset/protos/map.proto: warning: directory does not exist.
waymo_open_dataset/protos/compressed_lidar.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/protos/scenario.proto: No such file or directory
**ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/protos/BUILD:103:18: Generating C++ proto_library //waymo_open_dataset/protos:vector_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' '-Iwaymo_open_dataset/protos/vector.proto=waymo_open_dataset/protos/vector.proto' ... (remaining 4 arguments skipped)**

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/protos/vector.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/protos/vector.proto: No such file or directory
**ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/protos/BUILD:152:18: Generating C++ proto_library //waymo_open_dataset/protos:compressed_lidar_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' ... (remaining 10 arguments skipped)**

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/protos/compressed_lidar.proto: warning: directory does not exist.
waymo_open_dataset/dataset.proto: warning: directory does not exist.
waymo_open_dataset/label.proto: warning: directory does not exist.
waymo_open_dataset/protos/keypoint.proto: warning: directory does not exist.
waymo_open_dataset/protos/vector.proto: warning: directory does not exist.
waymo_open_dataset/protos/map.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/protos/compressed_lidar.proto: No such file or directory
ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/protos/BUILD:37:18: Generating C++ proto_library //waymo_open_dataset/protos:motion_metrics_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' '-Iwaymo_open_dataset/protos/motion_metrics.proto=waymo_open_dataset/protos/motion_metrics.proto' ... (remaining 12 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/protos/motion_metrics.proto: warning: directory does not exist.
waymo_open_dataset/protos/scenario.proto: warning: directory does not exist.
waymo_open_dataset/protos/camera_tokens.proto: warning: directory does not exist.
waymo_open_dataset/dataset.proto: warning: directory does not exist.
waymo_open_dataset/label.proto: warning: directory does not exist.
waymo_open_dataset/protos/keypoint.proto: warning: directory does not exist.
waymo_open_dataset/protos/vector.proto: warning: directory does not exist.
waymo_open_dataset/protos/map.proto: warning: directory does not exist.
waymo_open_dataset/protos/compressed_lidar.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/protos/motion_metrics.proto: No such file or directory
ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/BUILD:23:18: Generating C++ proto_library //waymo_open_dataset:dataset_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' '-Iwaymo_open_dataset/dataset.proto=waymo_open_dataset/dataset.proto' ... (remaining 8 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/dataset.proto: warning: directory does not exist.
waymo_open_dataset/label.proto: warning: directory does not exist.
waymo_open_dataset/protos/keypoint.proto: warning: directory does not exist.
waymo_open_dataset/protos/vector.proto: warning: directory does not exist.
waymo_open_dataset/protos/map.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/dataset.proto: No such file or directory
ERROR: /home/ccc/Desktop/waymo-od/src/waymo_open_dataset/protos/BUILD:23:18: Generating C++ proto_library //waymo_open_dataset/protos:map_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--cpp_out=bazel-out/k8-opt/bin' '-Iwaymo_open_dataset/protos/map.proto=waymo_open_dataset/protos/map.proto' --direct_dependencies ... (remaining 3 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
waymo_open_dataset/protos/map.proto: warning: directory does not exist.
Could not make proto path relative: waymo_open_dataset/protos/map.proto: No such file or directory
Target //waymo_open_dataset/metrics/tools:compute_tracking_metrics_main failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.269s, Critical Path: 0.04s
INFO: 13 processes: 13 internal.
FAILED: Build did NOT complete successfully

@epris
Copy link
Author

epris commented Jun 26, 2024

It seems that something doesn't work because it cannot resolve
import "waymo_open_dataset/label.proto";
import "waymo_open_dataset/protos/map.proto";
import "waymo_open_dataset/protos/vector.proto";

@xDido
Copy link

xDido commented Aug 13, 2024

any updates? I'm facing the same issue with logs (.venv) PS C:\Users\Dido\Desktop\waymo-open-dataset> protoc --python_out=. src/waymo_open_dataset/dataset.proto waymo_open_dataset/label.proto: File not found. waymo_open_dataset/protos/map.proto: File not found. waymo_open_dataset/protos/vector.proto: File not found. src/waymo_open_dataset/dataset.proto:20:1: Import "waymo_open_dataset/label.proto" was not found or had errors. src/waymo_open_dataset/dataset.proto:21:1: Import "waymo_open_dataset/protos/map.proto" was not found or had errors. src/waymo_open_dataset/dataset.proto:22:1: Import "waymo_open_dataset/protos/vector.proto" was not found or had errors. src/waymo_open_dataset/dataset.proto:150:16: "Label.Type" is not defined. src/waymo_open_dataset/dataset.proto:372:12: "Label" is not defined. src/waymo_open_dataset/dataset.proto:413:12: "Label" is not defined. src/waymo_open_dataset/dataset.proto:430:12: "Polygon2dProto" is not defined. src/waymo_open_dataset/dataset.proto:435:12: "MapFeature" is not defined. src/waymo_open_dataset/dataset.proto:439:12: "Vector3d" is not defined.
I'm on Windows and using Protobuf.

@kaanguler14
Copy link

You can download manually dataset_pb2.py and label_pb2.py from https://github.com/yyuuliang/waymo-dataset-viewer/tree/master/waymo_open_dataset

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