Skip to content

freeze.py doesn't work on x86_64 Linux out of the box #69059

Closed

Description

@termim
mannequin
BPO 24871
Nosy @vstinner, @termim
Files
  • freeze-lib64.diff: patch against Python-3.4.3
  • 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 = <Date 2021-05-14.12:20:23.754>
    created_at = <Date 2015-08-15.03:13:46.742>
    labels = []
    title = "freeze.py doesn't work on x86_64 Linux out of the box"
    updated_at = <Date 2021-05-14.12:20:23.753>
    user = 'https://github.com/termim'

    bugs.python.org fields:

    activity = <Date 2021-05-14.12:20:23.753>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-05-14.12:20:23.754>
    closer = 'vstinner'
    components = ['Demos and Tools']
    creation = <Date 2015-08-15.03:13:46.742>
    creator = 'termim'
    dependencies = []
    files = ['40182']
    hgrepos = []
    issue_num = 24871
    keywords = ['patch']
    message_count = 3.0
    messages = ['248633', '363890', '393645']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'termim']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue24871'
    versions = ['Python 3.2', 'Python 3.3', 'Python 3.4', 'Python 3.5']

    Activity

    1. termim commented on Aug 15, 2015

      termimmannequin
      MannequinAuthor

      On 64-bit Linux freeze.py uses lib instead of lib64 when constructing
      path to Makefile etc. Using sysconfig fixes this issue.

      Without encodings.ascii resulting program fails with the following error:

      Fatal Python error: Py_Initialize: Unable to get the locale encoding
      LookupError: unknown encoding: ANSI_X3.4-1968
      Aborted

      Attached patch fixes both issues.

    2. vstinner commented on Mar 11, 2020

      @vstinner
      Member

      bpo-1294959 has been fixed by commit 8510f43: Python 3.9 now has sys.platlibdir which will be equal to "lib64" on Fedora and SuSE on 64-bit systems.

    3. vstinner commented on May 14, 2021

      @vstinner
      Member

      I consider that the issue is now fixed. If it's not the case, please reopen the issue (or open a new issue).

    4. transferred this issue fromon Apr 10, 2022
    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

      No labels
      No labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions