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

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

Closed
termim mannequin opened this issue Aug 15, 2015 · 3 comments
Closed

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

termim mannequin opened this issue Aug 15, 2015 · 3 comments

Comments

@termim
Copy link
Mannequin

termim mannequin commented Aug 15, 2015

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']

    @termim
    Copy link
    Mannequin Author

    termim mannequin commented Aug 15, 2015

    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.

    @vstinner
    Copy link
    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.

    @vstinner
    Copy link
    Member

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

    @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
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant