Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create venv with debug binaries installed #80622

Closed
chrullrich mannequin opened this issue Mar 26, 2019 · 5 comments
Closed

Cannot create venv with debug binaries installed #80622

chrullrich mannequin opened this issue Mar 26, 2019 · 5 comments
Assignees
Labels
3.7 (EOL) end of life OS-windows type-bug An unexpected behavior, bug, or error

Comments

@chrullrich
Copy link
Mannequin

chrullrich mannequin commented Mar 26, 2019

BPO 36441
Nosy @pfmoore, @tjguk, @zware, @zooba, @chrullrich, @miss-islington
PRs
  • bpo-36441: Fixes creating a venv when debug binaries are installed. #12566
  • [3.7] bpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566) #12590
  • 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 = 'https://github.com/zooba'
    closed_at = <Date 2019-03-28.20:47:33.656>
    created_at = <Date 2019-03-26.16:45:44.676>
    labels = ['type-bug', '3.7', 'OS-windows']
    title = 'Cannot create venv with debug binaries installed'
    updated_at = <Date 2019-03-28.20:47:33.647>
    user = 'https://github.com/chrullrich'

    bugs.python.org fields:

    activity = <Date 2019-03-28.20:47:33.647>
    actor = 'steve.dower'
    assignee = 'steve.dower'
    closed = True
    closed_date = <Date 2019-03-28.20:47:33.656>
    closer = 'steve.dower'
    components = ['Windows']
    creation = <Date 2019-03-26.16:45:44.676>
    creator = 'chrullrich'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36441
    keywords = ['patch']
    message_count = 5.0
    messages = ['338904', '338905', '338911', '338966', '338970']
    nosy_count = 6.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'chrullrich', 'miss-islington']
    pr_nums = ['12566', '12590']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36441'
    versions = ['Python 3.7']

    @chrullrich
    Copy link
    Mannequin Author

    chrullrich mannequin commented Mar 26, 2019

    Creating a venv using "py -m venv" fails when the debug binaries are installed in the system-wide installation.

    Note the below uses the 32-bit installation, but that is probably not significant.

    C:\Daten\pyv>py -3.7-32 -m venv v37-32
    Error: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\Python37-32\\lib\\venv\\scripts\\nt\\python_d.exe'

    The same command line works fine when using a Python installation that does not have the debug binaries installed.

    @chrullrich chrullrich mannequin added 3.7 (EOL) end of life OS-windows type-bug An unexpected behavior, bug, or error labels Mar 26, 2019
    @chrullrich
    Copy link
    Mannequin Author

    chrullrich mannequin commented Mar 26, 2019

    Python version is 3.7.3.

    @zooba
    Copy link
    Member

    zooba commented Mar 26, 2019

    Thanks! Two issues here:

    • symlink_or_copy doesn't verify that the source file exists after rewriting the path
    • Tools/msi/lib/lib_files.wxs doesn't include the debug launchers

    @zooba
    Copy link
    Member

    zooba commented Mar 27, 2019

    New changeset 4a9a505 by Steve Dower in branch 'master':
    bpo-36441: Fixes creating a venv when debug binaries are installed. (bpo-12566)
    4a9a505

    @miss-islington
    Copy link
    Contributor

    New changeset 65445f6 by Miss Islington (bot) in branch '3.7':
    bpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566)
    65445f6

    @zooba zooba closed this as completed Mar 28, 2019
    @zooba zooba self-assigned this Mar 28, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life OS-windows type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants