You are not logged in.
When I try to build the Japanese input method mozc-ut from aur, I get the following error and cannot build it.
Neither 'python3' nor 'python' were found on the target platform's PATH, which is: /usr/local/sbin:/usr/local/bin:/usr/bin
but python3.12 is installed in /usr/bin.
I have tried reinstalling python, but no change.
Is there any way to solve this problem?
Run this command to start an interactive shell in an identical sandboxed environment:
(exec env - \
TMPDIR=/tmp \
/home/hogehoge/.cache/bazel/_bazel_hogehoge/install/1c0a950fb12634c813bd1ff8320349c0/linux-sandbox -t 15 -w /dev/shm -w /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/execroot/mozc -w /tmp -M /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/_hermetic_tmp -m /tmp -S /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/stats.out -D /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/debug.out -- /bin/sh -i)
ERROR: /home/hogehoge/.cache/yay/mozc-ut/src/mozc-ut-git/src/usage_stats/BUILD.bazel:145:11: RunBinary usage_stats/usage_stats_list.inc failed: (Exit 1): linux-sandbox failed: error executing RunBinary command
(cd /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/execroot/mozc && \
exec env - \
TMPDIR=/tmp \
/home/hogehoge/.cache/bazel/_bazel_hogehoge/install/1c0a950fb12634c813bd1ff8320349c0/linux-sandbox -t 15 -w /dev/shm -w /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/execroot/mozc -w /tmp -M /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/_hermetic_tmp -m /tmp -S /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/stats.out -D /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/2/debug.out -- bazel-out/k8-opt-exec-ST-a828a81199fe/bin/usage_stats/gen_stats_list '--output=bazel-out/k8-opt/bin/usage_stats/usage_stats_list.inc' data/usage_stats/stats.def)
Error occurred while attempting to use the default Python toolchain (@rules_python//python:autodetecting_toolchain).
Neither 'python3' nor 'python' were found on the target platform's PATH, which is:
/usr/local/sbin:/usr/local/bin:/usr/bin
Please ensure an interpreter is available on this platform (and marked executable), or else register an appropriate Python toolchain as per the documentation for py_runtime_pair (https://github.com/bazelbuild/rules_pyt … ntime_pair).
ERROR: /home/hogehoge/.cache/yay/mozc-ut/src/mozc-ut-git/src/dictionary/BUILD.bazel:255:11: RunBinary dictionary/pos_map.inc failed: (Exit 1): linux-sandbox failed: error executing RunBinary command
(cd /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/1/execroot/mozc && \
exec env - \
TMPDIR=/tmp \
/home/hogehoge/.cache/bazel/_bazel_hogehoge/install/1c0a950fb12634c813bd1ff8320349c0/linux-sandbox -t 15 -w /dev/shm -w /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/1/execroot/mozc -w /tmp -M /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/1/_hermetic_tmp -m /tmp -S /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/1/stats.out -D /home/hogehoge/.cache/bazel/_bazel_hogehoge/bf3b30acbba6bad4e91d0a05a9554be3/sandbox/linux-sandbox/1/debug.out -- bazel-out/k8-opt-exec-ST-a828a81199fe/bin/dictionary/gen_pos_map '--user_pos_file=data/rules/user_pos.def' '--third_party_pos_map_file=data/rules/third_party_pos_map.def' '--output=bazel-out/k8-opt/bin/dictionary/pos_map.inc')
Error occurred while attempting to use the default Python toolchain (@rules_python//python:autodetecting_toolchain).
Neither 'python3' nor 'python' were found on the target platform's PATH, which is:
/usr/local/sbin:/usr/local/bin:/usr/bin
Please ensure an interpreter is available on this platform (and marked executable), or else register an appropriate Python toolchain as per the documentation for py_runtime_pair (https://github.com/bazelbuild/rules_pyt … ntime_pair).
INFO: Elapsed time: 15.157s, Critical Path: 0.80s
INFO: 8 processes: 8 internal.
ERROR: Build did NOT complete successfully
==> エラー: build() で問題が発生しました。
中止...
Last edited by ewab (2024-07-16 07:37:09)
Offline
Please use [ code ] [ /code] tags for such output to keep them readable , see https://wiki.archlinux.org/title/Genera … s_and_code
Have you tried deleting your bazel cache as mentioned in the pinned comments on the mozc-ut aur page ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
What does `ls -l /usr/bin/python*` give you?
Offline
Have you tried deleting your bazel cache as mentioned in the pinned comments on the mozc-ut aur page ?
Thank you for your reply.
Yes, I have. but the result was same.
Offline
What does `ls -l /usr/bin/python*` give you?
Here.
lrwxrwxrwx 1 root root 7 6月 7 15:33 /usr/bin/python -> python3
lrwxrwxrwx 1 root root 54 7月 10 16:35 /usr/bin/python-build -> /usr/share/pyenv/plugins/python-build/bin/python-build
lrwxrwxrwx 1 root root 14 6月 7 15:33 /usr/bin/python-config -> python3-config
lrwxrwxrwx 1 root root 10 6月 7 15:33 /usr/bin/python3 -> python3.12
lrwxrwxrwx 1 root root 17 6月 7 15:33 /usr/bin/python3-config -> python3.12-config
-rwxr-xr-x 1 root root 14384 6月 7 15:33 /usr/bin/python3.12
-rwxr-xr-x 1 root root 3322 6月 7 15:33 /usr/bin/python3.12-config
Offline
https://github.com/bazelbuild/bazel/issues/22535
Seems like bazel engages in whichcraft
https://archlinux.org/packages/core/x86_64/which/
Offline
https://github.com/bazelbuild/bazel/issues/22535
Seems like bazel engages in whichcraft
https://archlinux.org/packages/core/x86_64/which/
It worked!!
After installing which, I successfully built the package without any errors! I was worried that I wouldn't be able to update the input method for a long time, but for the first time in months, I have finally updated it. Thank you for your help.
Offline