/usr/bin/env: ‘python’: No such file or directory

724 views
Skip to first unread message

Meenakshi Thiyagarajan

unread,
Apr 15, 2021, 8:29:39 PM4/15/21
to tast-...@chromium.org
Hi all, 
/usr/bin/env: ‘python’: No such file or directory error while using "repo upload ." command. let me know if anyone facing this issue, b/185528819. Thanks.

Regards,
Meena

Seewai Fu

unread,
Apr 15, 2021, 8:34:26 PM4/15/21
to Meenakshi Thiyagarajan, tast-users
There was an email about removing python from glinux. I think we still have python executable inside chroot. Please see if doing "repo upload" inside chroot would work.

Seewai

--
You received this message because you are subscribed to the Google Groups "tast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tast-users+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/tast-users/CAEBwfAhx-EgE6bHWMidaDg1V8QhzpqPDtkL2XG7A8RGDKdSVXw%40mail.gmail.com.

Renuga Nanjappan

unread,
Apr 15, 2021, 8:35:10 PM4/15/21
to Meenakshi Thiyagarajan, tast-...@chromium.org
Solution suggested on other threads to so "sudo apt-get install python-is-python3"

Thanks and Regards, Renuga.N

On Thu, Apr 15, 2021 at 5:29 PM 'Meenakshi Thiyagarajan' via tast-users <tast-...@chromium.org> wrote:
--

Meenakshi Thiyagarajan

unread,
Apr 15, 2021, 8:44:28 PM4/15/21
to seew...@google.com, Renuga Nanjappan, tast-...@chromium.org
Thanks seewaifu@ and rnanjappan@ for the suggestions!
"sudo apt-get install python-is-python3" command worked for me. Thanks.

Regards,
Meena

Pranav Batra

unread,
Apr 15, 2021, 8:46:16 PM4/15/21
to Meenakshi Thiyagarajan, seew...@google.com, Renuga Nanjappan, tast-...@chromium.org
I would recommend python-is-python2 over python-is-python3 (many scripts are not compatible with python3). Alternatively sudo ln -s /usr/bin/python2 /usr/bin/python also seems to work okay.

Best,
Pranav

Reply all
Reply to author
Forward
0 new messages