Skip to content

Eagerly warn/error when a project is under a path with : (because unix will cry when you put it on PATH) #8983

@lemorage

Description

@lemorage

I used uv venv --python 3.10 to create a virtual env and activated it. Under this venv, I created a main.py containing a single line of code print('Hello world!'). However, when I ran the script using uv run, I got the error saying path segment contains separator ':'.

(me) ☁  me [master] ⚡  uv run main.py --verbose
error: path segment contains separator `:`
(me) ☁  me [master] ⚡  python main.py
Hello world!
  • macos version: Sequoia 15.1
  • The current uv version: uv 0.5.1 (Homebrew 2024-11-08)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionalityerror messagesMessaging when something goes wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions