GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — In python3.11 getpath.py calculates zip path with default prefix in a venv which breaks venv created fron non-installed python · Issue #99370 · python/cpython

In python3.11 getpath.py calculates zip path with default prefix in a venv which breaks venv created fron non-installed python #99370

New issue
Copy link
New issue
Copy link
Closed
Closed
In python3.11 getpath.py calculates zip path with default prefix in a venv which breaks venv created fron non-installed python#99370
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@kkpattern
kkpattern
opened on Nov 11, 2022
Issue body actions

Bug report

In python3.11, getpath.py calculates zip path with default prefix in a venv. Before python3.11, the zip path is calculated with prefix instead if in a venv.

This change breaks a venv created from a non-installed python with a stdlib zip file.

Related discussion: https://discuss.python.org/t/python3-11-seems-to-break-venv-created-from-non-system-python-with-zipped-stdlib/20874/7

Your environment

  • CPython versions tested on: python3.11.0, main
  • Operating system and architecture:
    Debian 11. AMD64.
  • PR: gh-99370: calculate zip path from prefix when in a venv #99371
  • PR: [3.11] gh-99370: Calculate zip path from prefix when in a venv (GH-99371) #99477
  • PR: gh-99370: fix test_zippath_from_non_installed_posix #99483
  • PR: [3.11] gh-99370: fix test_zippath_from_non_installed_posix (GH-99483) #99498
  • PR: gh-99370: Prefer LIBDIR from sysconfig when locating libpython for test #99523
  • PR: gh-99442: Fix handling in py.exe launcher when argv[0] does not include a file extension #99542
  • PR: [3.11] gh-99370: Prefer LIBDIR from sysconfig when locating libpython for test (GH-99523) #99550

Activity

  1. kkpattern
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Nov 11, 2022
  2. zooba
    added a commit that references this issue on Nov 14, 2022

    gh-99370: Calculate zip path from prefix when in a venv (GH-99371)

    e3d4fed
  3. miss-islington
    added 3 commits that reference this issue on Nov 14, 2022

    pythongh-99370: Calculate zip path from prefix when in a venv (python…

    0adeeb9

    pythongh-99370: Calculate zip path from prefix when in a venv (python…

    206e529

    gh-99370: Calculate zip path from prefix when in a venv (GH-99371)

    5971a65
  4. kkpattern commented on Nov 14, 2022

    @kkpattern
    kkpattern
    on Nov 14, 2022
    ContributorAuthor
    More actions

    Sorry, seems the newly added test case will fail with shared enabled python builds. I'm preparing a fix here.

    Reacted by Zachary Ware and Steve Dower
  5. zooba
    added a commit that references this issue on Nov 15, 2022

    gh-99370: fix test_zippath_from_non_installed_posix (GH-99483)

    1df0752
  6. miss-islington
    added a commit that references this issue on Nov 15, 2022

    pythongh-99370: fix test_zippath_from_non_installed_posix (pythonGH-9…

    ed733fa
  7. zooba commented on Nov 15, 2022

    @zooba
    zooba
    on Nov 15, 2022
    Member
    More actions

    Thanks for the quick fix!

    Reacted by Kai Zhang
  8. zooba
    closed this as completedon Nov 15, 2022
  9. miss-islington
    added a commit that references this issue on Nov 15, 2022

    gh-99370: fix test_zippath_from_non_installed_posix (GH-99483)

    b189f42
  10. zooba
    added a commit that references this issue on Nov 16, 2022

    pythongh-99370: Prefer LIBDIR from sysconfig when locating libpython …

    fd6f008
  11. CuriousLearner
    added a commit that references this issue on Nov 16, 2022

    Merge branch 'main' into fix-issue21914

    abd206e
  12. zooba
    added 2 commits that reference this issue on Nov 16, 2022

    pythongh-99370: Fix handling in py.exe launcher when argv[0] does not…

    e0128ba

    gh-99370: Prefer LIBDIR from sysconfig when locating libpython for te…

    7c57857
  13. miss-islington
    added 2 commits that reference this issue on Nov 16, 2022

    pythongh-99370: Prefer LIBDIR from sysconfig when locating libpython …

    14eafdd

    gh-99370: Prefer LIBDIR from sysconfig when locating libpython for te…

    0014ce7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.