Skip to content

pyodide venv doesn't work with a uv-managed Python installation on macOS due to a space in "Application Support" (platformdirs.user_data_dir) #399

Description

@agriyakhetarpal

To reproduce:

# install a uv-managed Python 
uv python install 3.14

# create venv from that Python
uvx --python 3.14 --from pyodide-cli --with pyodide-build pyodide venv .venv-pyodide

# activate it
source .venv-pyodide/bin/activate

# try to use it
pip install numpy

This reports:

env: Support/uv/python/cpython-3.14-macos-aarch64-none: No such file or directory

I guess we tripped up at Application Support, i.e., platformdirs.user_data_dir, since that folder contains a space.

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