Skip to content

PYTHONPYCACHEPREFIX fails when importing a module from the root ("/") #82916

Open
@nedbat

Description

@nedbat
BPO 38735
Nosy @vstinner, @nedbat, @encukou
PRs
  • bpo-38735: Don't fail when importing from / with sys.pycache_prefix set #30456
  • 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 2019-11-07.12:06:03.297>
    labels = []
    title = 'PYTHONPYCACHEPREFIX fails when importing a module from the root ("/")'
    updated_at = <Date 2022-01-07.15:59:18.551>
    user = 'https://github.com/nedbat'

    bugs.python.org fields:

    activity = <Date 2022-01-07.15:59:18.551>
    actor = 'petr.viktorin'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2019-11-07.12:06:03.297>
    creator = 'nedbat'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38735
    keywords = ['patch']
    message_count = 3.0
    messages = ['356188', '356189', '409977']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'nedbat', 'petr.viktorin']
    pr_nums = ['30456']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue38735'
    versions = []

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibPython modules in the Lib dir

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions