Skip to content

GIT_LFS_SKIP_SMUDGE=1 required when installing using UV #3

@BryonLewis

Description

@BryonLewis

Was installing using uv
uv add git+https://github.com/Kitware/batbot
Was getting some errors from git lfs and the examples not being properly configured.
Pulling go and running git lfs pull worked properly but UV was resulting in errors that required be setting GIT_LFS_SKIP_SMUDGE=1 before adding the repository.

(base) bryon.lewis@bryonmacpro scripts % uv add --script batbot_spectrogram.py git+https://github.com/Kitware/batbot

error: Git operation failed
  Caused by: process didn't exit successfully: `/opt/homebrew/bin/git reset --hard 5703a1d1dea3059dffe085d28c1792d43d7c37f3` (exit status: 128)
--- stderr
Downloading examples/example1.wav (5.0 MB)
Error downloading object: examples/example1.wav (391efce): Smudge error: Error downloading examples/example1.wav (391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925): error transferring "391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925": [0] remote missing object 391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925

Errors logged to '/Users/bryon.lewis/.cache/uv/git-v0/checkouts/6d8cfad6f2a48a74/5703a1d/.git/lfs/logs/20260116T095647.05409.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: examples/example1.wav: smudge filter lfs failed

The Log file:

git-lfs/3.5.1 (GitHub; darwin arm64; go 1.22.1)
git version 2.43.0

$ git-lfs filter-process
Error downloading object: examples/example1.wav (391efce): Smudge error: Error downloading examples/example1.wav (391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925): error transferring "391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925": [0] remote missing object 391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925

error transferring "391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925": [0] remote missing object 391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925
github.com/git-lfs/git-lfs/v3/errors.New
	github.com/git-lfs/git-lfs/v3/errors/errors.go:62
github.com/git-lfs/git-lfs/v3/tq.(*customAdapter).DoTransfer
	github.com/git-lfs/git-lfs/v3/tq/custom.go:311
github.com/git-lfs/git-lfs/v3/tq.(*adapterBase).worker
	github.com/git-lfs/git-lfs/v3/tq/adapterbase.go:183
runtime.goexit
	runtime/asm_arm64.s:1222
Error downloading examples/example1.wav (391efce5433d1057caddb4ce07b9712c523d6a815e4ee9e64b62973569982925)
github.com/git-lfs/git-lfs/v3/errors.newWrappedError
	github.com/git-lfs/git-lfs/v3/errors/types.go:229
github.com/git-lfs/git-lfs/v3/errors.Wrapf
	github.com/git-lfs/git-lfs/v3/errors/errors.go:85
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).downloadFile
	github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:134
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge
	github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:85
github.com/git-lfs/git-lfs/v3/commands.smudge
	github.com/git-lfs/git-lfs/v3/commands/command_smudge.go:128
github.com/git-lfs/git-lfs/v3/commands.filterCommand
	github.com/git-lfs/git-lfs/v3/commands/command_filter_process.go:131
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/[email protected]/command.go:944
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/[email protected]/command.go:992
github.com/git-lfs/git-lfs/v3/commands.Run
	github.com/git-lfs/git-lfs/v3/commands/run.go:154
main.main
	./git-lfs.go:34
runtime.main
	runtime/proc.go:271
runtime.goexit
	runtime/asm_arm64.s:1222
Smudge error
github.com/git-lfs/git-lfs/v3/errors.newWrappedError
	github.com/git-lfs/git-lfs/v3/errors/types.go:229
github.com/git-lfs/git-lfs/v3/errors.NewSmudgeError
	github.com/git-lfs/git-lfs/v3/errors/types.go:315
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge
	github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:102
github.com/git-lfs/git-lfs/v3/commands.smudge
	github.com/git-lfs/git-lfs/v3/commands/command_smudge.go:128
github.com/git-lfs/git-lfs/v3/commands.filterCommand
	github.com/git-lfs/git-lfs/v3/commands/command_filter_process.go:131
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/[email protected]/command.go:944
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/[email protected]/command.go:992
github.com/git-lfs/git-lfs/v3/commands.Run
	github.com/git-lfs/git-lfs/v3/commands/run.go:154
main.main
	./git-lfs.go:34
runtime.main
	runtime/proc.go:271
runtime.goexit
	runtime/asm_arm64.s:1222

Current time in UTC:
2026-01-16 14:59:23

Environment:
LocalWorkingDir=/Users/bryon.lewis/.cache/uv/git-v0/checkouts/6d8cfad6f2a48a74/5703a1d
LocalGitDir=/Users/bryon.lewis/.cache/uv/git-v0/checkouts/6d8cfad6f2a48a74/5703a1d/.git
LocalGitStorageDir=/Users/bryon.lewis/.cache/uv/git-v0/checkouts/6d8cfad6f2a48a74/5703a1d/.git
LocalMediaDir=/Users/bryon.lewis/.cache/uv/git-v0/checkouts/6d8cfad6f2a48a74/5703a1d/.git/lfs/objects
LocalReferenceDirs=
TempDir=/Users/bryon.lewis/.cache/uv/git-v0/checkouts/6d8cfad6f2a48a74/5703a1d/.git/lfs/tmp
ConcurrentTransfers=8
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneVerifyUnreachableAlways=false
PruneRemoteName=origin
LfsStorageDir=/Users/bryon.lewis/.cache/uv/git-v0/checkouts/6d8cfad6f2a48a74/5703a1d/.git/lfs
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic,lfs-standalone-file,ssh
UploadTransfers=basic,lfs-standalone-file,ssh
GIT_PREFIX=
GIT_ASKPASS=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh
GIT_EXEC_PATH=/opt/homebrew/opt/git/libexec/git-core

Client IP addresses:
redacted (I removed my client IP Addresses from this copy of the log)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions