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

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

From
KSKapil Somani <kmsomani@alumni.ncsu.edu>
Date
Feb 6, 2025, 01:27 UTC
Message-ID
<CANF_+=4dG7bVF5n+s4ezHR=HneeMgvYNhsOjsz7e7bFapG2f2w@mail.gmail.com>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue) Run `git p4 clone //path/to/p4/depot --destination=/tmp/localcopy`

What did you expect to happen? (Expected behavior) The command should have imported perforce depot to a git repository

What happened instead? (Actual behavior) The command threw error fatal: 'p4' appears to be a git command, but we were not able to execute it. Maybe git-p4 is broken?

What's different between what you expected and what actually happened? The command did not perform desired operation

Anything else you want to add: The machine does not have python on path I noticed `git-p4`'s shebang line points to python. On my local git installation, i was able to update shebang line on git-p4 to python3 and the command worked as expected. With python3 now being default should be update git-p4 to run using python3 ?

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.30.2 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64 compiler info: gnuc: 10.2 libc info: glibc: 2.31 $SHELL (typically, interactive shell): /bin/tcsh

[Enabled Hooks] not run from a git repository - no hooks to show

Next: brian m. carlson
Message 1 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.