Skip to content

uv run fails with <(...) process substitution #13279

@Bobronium

Description

@Bobronium

Summary

Opening this as a bug report since python supports this:

~
❯ python <(echo 'print(__name__)')
__main__

~
❯ uv run <(echo 'print(__name__)')
error: Failed to spawn: `/dev/fd/11`
  Caused by: Permission denied (os error 13)

Use case (similar to #6862)

uv run <(pbpaste)

Workaround

uv run python <(echo 'print(__name__)')

References

pipx has the same issue pypa/pipx#1292 with potential fix being pypa/pipx#1293

Platform

Darwin 24.1.0 arm64

Version

uv 0.7.2 (481d05d 2025-04-30)

Python version

Python 3.12.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions