You are not logged in.

#1 2024-07-11 03:21:31

ewab
Member
From: Japan
Registered: 2017-04-28
Posts: 13

[SOLVED]Python not found though it is definetely installed

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

#2 2024-07-11 10:18:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,824

Re: [SOLVED]Python not found though it is definetely installed

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

#3 2024-07-11 12:04:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,987

Re: [SOLVED]Python not found though it is definetely installed

What does `ls -l /usr/bin/python*` give you?

Offline

#4 2024-07-16 01:53:45

ewab
Member
From: Japan
Registered: 2017-04-28
Posts: 13

Re: [SOLVED]Python not found though it is definetely installed

Lone_Wolf wrote:

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

#5 2024-07-16 01:58:36

ewab
Member
From: Japan
Registered: 2017-04-28
Posts: 13

Re: [SOLVED]Python not found though it is definetely installed

Scimmia wrote:

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

#6 2024-07-16 06:38:51

seth
Member
Registered: 2012-09-03
Posts: 57,455

Offline

#7 2024-07-16 07:35:11

ewab
Member
From: Japan
Registered: 2017-04-28
Posts: 13

Re: [SOLVED]Python not found though it is definetely installed

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

Board footer

Powered by FluxBB