tulsi icon indicating copy to clipboard operation
tulsi copied to clipboard

Cannot generate a mediapipe project on Tulsi

Open livic54 opened this issue 4 years ago • 10 comments

I'm using M1 pro macbookpro with macos Monatery 12.1 and bazel -6.0.0-pre-release. I cannot generate the mediapipe project. Major errors are: //* Failed to query information about the Bazel workspace. Bazel exited with code 1.

Was not able to extract the execution root from the workspace. This is a Tulsi or Bazel bug, please report.

Was not able to extract the bazel bin symlink name from the workspace. This is a Tulsi or Bazel bug, please report.

Failed to retrieve information about the Bazel workspace. This usually means that the contents of a BUILD file are incorrect or flags are missing. Read the message log carefully for details.

Generate[FAIL]: 0.0233s [Details]: General failure: Bazel aspects could not be built. *//

Please help me with this problem! Thank you!

livic54 avatar Jan 14 '22 15:01 livic54

Can you include the full error report?

keith avatar Jan 14 '22 18:01 keith

Can you include the full error report?

image Thank you!!!!

livic54 avatar Jan 14 '22 18:01 livic54

Interesting, I expected there to be more in that output. Can you test with HEAD of rules_apple and tulsi?

keith avatar Jan 14 '22 18:01 keith

Interesting, I expected there to be more in that output. Can you test with HEAD of rules_apple and tulsi?

Sorry sir, I don't quite understand. Do you mean using the method from https://github.com/bazelbuild/rules_apple and then building it in Tulsi?

livic54 avatar Jan 14 '22 19:01 livic54

mediapipe depends on rules_apple, I just want to make sure it's a new enough version since you're using a new version of bazel

keith avatar Jan 14 '22 19:01 keith

mediapipe depends on rules_apple, I just want to make sure it's a new enough version since you're using a new version of bazel

Sorry, still confused... Do I have to try bazel 5.0.0?

livic54 avatar Jan 15 '22 07:01 livic54

@livic54 hi livic54, I want to ask a question Can you install tulsi on M1 pro macbookpro with macos Monatery? I suffered many ERROR when I run ./build_and_run.sh script. I need someone help me

Thanks for you reply.

PentonBin avatar Jan 17 '22 13:01 PentonBin

@livic54 hi livic54, I want to ask a question Can you install tulsi on M1 pro macbookpro with macos Monatery? I suffered many ERROR when I run ./build_and_run.sh script. I need someone help me

Thanks for you reply.

You should make sure you are using bazel 5.x or 6.x , use the binary installer instead of homebrew https://docs.bazel.build/versions/4.2.2/install-os-x.html#install-with-installer-mac-os-x

If you can generate a mediapipe project after successfully install the tulsi, please let me know your procedure. Thank you!

livic54 avatar Jan 17 '22 15:01 livic54

It's a bit confusing but Tulsi needs Bazel 5.0+ to build (which I think you have already built it with a pre-release of Bazel 6.0), but Mediapipe needs Bazel 4.2.1, so after building Tulsi, you'll need to switch to Bazel 4.2.1 to generate an Xcode project for Mediapipe.

thii avatar Jan 19 '22 01:01 thii

@thii Thanks for your suggestion! It works well for me now

livic54 avatar Jan 19 '22 05:01 livic54

Thanks for submitting this issue but this tool is being deprecated. Please checkout rules_xcodeproj for a more complete and maintained Xcode integration.

keith avatar Feb 15 '23 17:02 keith