venv: activate.bat fails for venv with special characters in PATH

Open
#88,706 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by reading activate.bat and deactivate.bat, then reproduce the failure with a virtual environment whose PATH contains special characters. Trace how activation and deactivation handle that PATH, and consider the issue complete when activate.bat works correctly for the reported case without breaking deactivation.

Written by the indexing model from the issue text.

Description

3.10 3.11 3.9 (EOL) OS-windows stdlib type-bug
BPO 44540
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba
Files
  • activate.bat
  • deactivate.bat
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2021-06-30.12:44:01.750>
    labels = ['type-bug', '3.9', '3.10', '3.11', 'library', 'OS-windows']
    title = 'venv: activate.bat fails for venv with special characters in PATH'
    updated_at = <Date 2021-12-09.05:41:07.966>
    user = 'https://bugs.python.org/MB113'
    

    bugs.python.org fields:

    activity = <Date 2021-12-09.05:41:07.966>
    actor = 'eryksun'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'Windows']
    creation = <Date 2021-06-30.12:44:01.750>
    creator = 'MB113'
    dependencies = []
    files = ['50483', '50484']
    hgrepos = []
    issue_num = 44540
    keywords = []
    message_count = 2.0
    messages = ['396776', '408073']
    nosy_count = 6.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'MB113']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44540'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.