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

Python 2.7.5 installation broken on OpenSuse 12.2 #62292

Closed
AndreasJung mannequin opened this issue May 29, 2013 · 3 comments
Closed

Python 2.7.5 installation broken on OpenSuse 12.2 #62292

AndreasJung mannequin opened this issue May 29, 2013 · 3 comments
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@AndreasJung
Copy link
Mannequin

AndreasJung mannequin commented May 29, 2013

BPO 18092
Nosy @ned-deily
Superseder
  • bpo-1294959: Add sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE
  • 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 2020-02-12.01:21:56.237>
    created_at = <Date 2013-05-29.06:25:00.234>
    labels = ['type-bug', 'build']
    title = 'Python 2.7.5 installation broken on OpenSuse 12.2'
    updated_at = <Date 2020-02-12.01:21:56.236>
    user = 'https://bugs.python.org/AndreasJung'

    bugs.python.org fields:

    activity = <Date 2020-02-12.01:21:56.236>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-02-12.01:21:56.237>
    closer = 'vstinner'
    components = ['Build']
    creation = <Date 2013-05-29.06:25:00.234>
    creator = 'Andreas.Jung'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 18092
    keywords = []
    message_count = 3.0
    messages = ['190274', '190275', '198794']
    nosy_count = 3.0
    nosy_names = ['ned.deily', 'Andreas.Jung', 'Tom.Gross']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '1294959'
    type = 'behavior'
    url = 'https://bugs.python.org/issue18092'
    versions = ['Python 2.7']

    @AndreasJung
    Copy link
    Mannequin Author

    AndreasJung mannequin commented May 29, 2013

    I tried to install 2.7.5 on my OpenSuse 12.2 (latest patches)

    ajung@blackmoon2:~/sandboxes/mib.portal> cat /etc/issue
    Welcome to openSUSE 12.2 "Mantis" - Kernel \r (\l).

    Compilation went fine (no visible errors).

    Starting the interpreter gives me:

    ajung@blackmoon2:~/sandboxes/mib.portal> /opt/python-2.7.5/bin/python
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    Python 2.7.5 (default, May 29 2013, 08:19:10)
    [GCC 4.7.1 20120723 [gcc-4_7-branch revision 189773]] on linux2
    Type "help", "copyright", "credits" or "license" for more information.

    >>

    Trying to bootstrap a Pyramid project using zc.buildout gives me:

    ajung@blackmoon2:~/sandboxes/mib.portal> /opt/python-2.7.5/bin/python bootstrap.py 
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    Traceback (most recent call last):
      File "bootstrap.py", line 21, in <module>
        import os, shutil, sys, tempfile, urllib, urllib2, subprocess
      File "/opt/python-2.7.5/lib/python2.7/shutil.py", line 12, in <module>
        import collections
      File "/opt/python-2.7.5/lib/python2.7/collections.py", line 8, in <module>
        from _collections import deque, defaultdict
    ImportError: No module named _collections

    @AndreasJung AndreasJung mannequin added type-bug An unexpected behavior, bug, or error build The build process and cross-build labels May 29, 2013
    @ned-deily
    Copy link
    Member

    Without more information, it is difficult to guess what is going wrong. Please provide exactly what ./configure options you used to build Python and any "make install" options. When you start Python, what values do "sys.prefix", "sys.exec_prefix", and "sys.path" have? Does "python -E" give any different results?

    @TomGross
    Copy link
    Mannequin

    TomGross mannequin commented Oct 1, 2013

    I guess you are on a 64bit os an the issue is a variant of bpo-1294959. Some of the components (scripts) are installed in the $PREFIX/lib folder and some are (libs) installed in the $PREFIX/lib64 folder. a workaround which worked for me (on OpenSuse 12.3 which faced the same issue) is specifying a lib directory on configure like this:

    ./configure --prefix=/opt/Python275 --libdir=/opt/Python275/lib

    All components (scripts & libs) are in the $PREFIX/lib folder then.

    @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
    build The build process and cross-build type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants