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

py.exe cannot locate Store package #82314

Closed
zooba opened this issue Sep 12, 2019 · 9 comments
Closed

py.exe cannot locate Store package #82314

zooba opened this issue Sep 12, 2019 · 9 comments
Assignees
Labels
3.8 (EOL) end of life 3.9 only security fixes OS-windows type-bug An unexpected behavior, bug, or error

Comments

@zooba
Copy link
Member

zooba commented Sep 12, 2019

BPO 38133
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba, @miss-islington
PRs
  • bpo-38133: Allow py.exe launcher to locate installations from the Microsoft Store #16025
  • [3.8] bpo-38133: Allow py.exe launcher to locate installations from the Microsoft Store (GH-16025) #16073
  • bpo-38133: Update docs to reflect fixes to py.exe launcher #16791
  • [3.8] bpo-38133: Update docs to reflect fixes to py.exe launcher (GH-16791) #16798
  • 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-09-12.17:19:24.494>
    created_at = <Date 2019-09-12.11:05:13.950>
    labels = ['type-bug', '3.8', '3.9', 'OS-windows']
    title = 'py.exe cannot locate Store package'
    updated_at = <Date 2019-10-14.22:52:51.997>
    user = 'https://github.com/zooba'

    bugs.python.org fields:

    activity = <Date 2019-10-14.22:52:51.997>
    actor = 'miss-islington'
    assignee = 'steve.dower'
    closed = True
    closed_date = <Date 2019-09-12.17:19:24.494>
    closer = 'steve.dower'
    components = ['Windows']
    creation = <Date 2019-09-12.11:05:13.950>
    creator = 'steve.dower'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38133
    keywords = ['patch']
    message_count = 9.0
    messages = ['352107', '352112', '352121', '352137', '352143', '352218', '352220', '354675', '354676']
    nosy_count = 6.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'miss-islington']
    pr_nums = ['16025', '16073', '16791', '16798']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38133'
    versions = ['Python 3.8', 'Python 3.9']

    @zooba
    Copy link
    Member Author

    zooba commented Sep 12, 2019

    The py.exe launcher cannot locate installations from the Store (unless you have no other installations on your machine, which is unlikely).

    @zooba zooba added 3.8 (EOL) end of life 3.9 only security fixes labels Sep 12, 2019
    @zooba zooba self-assigned this Sep 12, 2019
    @zooba zooba added OS-windows type-bug An unexpected behavior, bug, or error labels Sep 12, 2019
    @zooba
    Copy link
    Member Author

    zooba commented Sep 12, 2019

    I added an "exe_display" override for listing paths, since the full path to the store app is not supposed to be used by users (it's different from sys.executable) and is only going to work when the shorter name is on PATH anyway (due to a limitation in Windows that I'm still trying to get fixed).

    I also enabled support for the ExecutablePath key, which has the added benefit of making the debug py_d.exe able to find release Python 3.5+ installs (as well as finding the Store install at all, which is now using python3.8.exe as the main file because of the limitation I mentioned above).

    @zooba
    Copy link
    Member Author

    zooba commented Sep 12, 2019

    Sample output after this change (some paths elided):

    Installed Pythons found by ...\py.exe Launcher for Windows
    (venv) C:\...\env\Scripts\python.exe *
    -3.8-64 python3.8.exe
    -3.7-32-32 C:\Python37_x86\python.exe
    -3.7-64 C:\Python37_x64\python.exe
    -3.6-32-32 C:\Python36_x86\python.exe
    -3.6-64 C:\Users\...\AppData\Local\Programs\Python\Python36\python.exe
    -3.5-32-32 C:\Python35_x86\python.exe
    -3.5-64 C:\Python35_x64\python.exe
    -3.4-64 C:\Python34_x64\python.exe
    -3.3-64 C:\Python33_x64\python.exe
    -3.3-32 C:\Python33_x86\python.exe
    -3.2-64 C:\Python32_x64\python.exe
    -3.2-32 C:\Python32_x86\python.exe
    -3.1-64 C:\Python31_x64\python.exe
    -3.1-32 C:\Python31_x86\python.exe
    -3.0-32 C:\Python30_x86\python.exe
    -2.7-64 C:\Python27_x64\python.exe
    -2.7-32 C:\Python27_x86\python.exe
    -2.6-32 C:\Python26_x86\python.exe
    -2.5-32 C:\Python25_x86\python.exe

    @eryksun
    Copy link
    Contributor

    eryksun commented Sep 12, 2019

    -3.7-32-32 C:\Python37_x86\python.exe
    -3.6-32-32 C:\Python36_x86\python.exe
    -3.5-32-32 C:\Python35_x86\python.exe

    MAX_VERSION_SIZE was increased, so the INSTALLED_PYTHON version string is now the full registry key name with the "-32" suffix. If that's intentional, you'll have to account for it in show_python_list. But I don't think the "-32" suffix belongs in the version string.

    @zooba
    Copy link
    Member Author

    zooba commented Sep 12, 2019

    Ah, good catch, I didn't notice that.

    Because those are special cases, we should strip it off the version string. One day when we implement PEP-514 properly then they'll come back (and we'll probably drop the -64 suffix for consistency with the PEP).

    @zooba
    Copy link
    Member Author

    zooba commented Sep 12, 2019

    New changeset ed93a88 by Steve Dower in branch 'master':
    bpo-38133: Allow py.exe launcher to locate installations from the Microsoft Store (GH-16025)
    ed93a88

    @zooba zooba closed this as completed Sep 12, 2019
    @miss-islington
    Copy link
    Contributor

    New changeset 664d56a by Miss Islington (bot) in branch '3.8':
    bpo-38133: Allow py.exe launcher to locate installations from the Microsoft Store (GH-16025)
    664d56a

    @zooba
    Copy link
    Member Author

    zooba commented Oct 14, 2019

    New changeset 4d20228 by Steve Dower in branch 'master':
    bpo-38133: Update docs to reflect fixes to py.exe launcher (GH-16791)
    4d20228

    @miss-islington
    Copy link
    Contributor

    New changeset 42308e8 by Miss Islington (bot) in branch '3.8':
    bpo-38133: Update docs to reflect fixes to py.exe launcher (GH-16791)
    42308e8

    @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.8 (EOL) end of life 3.9 only security fixes OS-windows type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants