git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: `git p4` broken on machines which do not have python on path

From
Illia Bobyr <illia.bobyr@gmail.com>
Date
Feb 6, 2025, 02:16 UTC
Message-ID
<101b03c5-dfad-41f0-8156-e541b8e6c68f@gmail.com>
In-Reply-To
<Z6QUeaoH_tV2ncwn@tapette.crustytoothpaste.net>
On 2/5/25 17:46, brian m. carlson wrote:
Show 5 quoted lines
> I realize that Python 3 is now the default, but there were apparently
> still some people who want to use Python 2.7 last time this came up, so
> the default shebang hasn't changed. According to Python upstream,
> `python` can be of any version, although for all distros I'm aware of,
> `python` is always version 2.
I just checked my Ubuntu 24.10 and `python` is `python3`.

❯ python --version Python 3.12.7

❯ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 24.10 Release:        24.10 Codename:       oracular

❯ whereis python python: /usr/bin/python

❯ dpkg -S /usr/bin/python python-is-python3: /usr/bin/python

There are both `python-is-python2` and `python-is-python3` packages. They just provide a symlink for convenience. And one can use Python version managers to manage what `python` means, of cause.

Previous: brian m. carlsonNext: brian m. carlson
Message 3 of 5 in “`git p4` broken on machines which do not have python on path”
  1. Kapil SomaniFeb 6, 2025
  2. brian m. carlsonFeb 6, 2025
  3. Illia BobyrFeb 6, 2025
  4. brian m. carlsonFeb 6, 2025
  5. Junio C HamanoFeb 6, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.