Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'importing': 0.05; 'subject:Python': 0.06; 'level,': 0.07; 'problem?': 0.07; 'result,': 0.07; 'subject:Question': 0.07; 'executable': 0.09; 'linker': 0.09; 'skip:/ 10': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'binary,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'guessing': 0.16; 'reason.': 0.16; 'weird': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'bit': 0.19; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'error': 0.23; 'library,': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'posts': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'correct': 0.29; 'on,': 0.29; 'thus': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'work.': 0.31; 'boundary': 0.31; "d'aprano": 0.31; 'file:': 0.31; 'libraries': 0.31; 'loading': 0.31; 'skip:\xce 30': 0.31; 'steven': 0.31; 'file': 0.32; 'probably': 0.32; 'open': 0.33; 'guess': 0.33; 'not.': 0.33; 'maybe': 0.34; 'problem': 0.35; 'something': 0.35; 'beyond': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'library.': 0.36; 'module.': 0.36; 'replies': 0.36; "didn't": 0.36; 'entry': 0.36; 'possible': 0.36; 'detail': 0.37; 'list': 0.37; 'starting': 0.37; 'thank': 0.38; 'pm,': 0.38; 'that,': 0.38; 'explain': 0.39; "couldn't": 0.39; 'sure': 0.39; 'enough': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'tell': 0.60; 'full': 0.61; 'such': 0.63; 'skip:n 10': 0.64; '8bit%:92': 0.71; '8bit%:100': 0.72; '2015': 0.84; 'skip:/ 30': 0.84; 'subject:latest': 0.84; 'sorry.': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=hxEZLxiO8/WKLDK0fUwgGs7obP9p2w6nj2lji87eFBY=; b=gSqqgpasH79clnmFpJmM7qv+44rTgVYEjDaeu1bVWRyCBvSlzk3MUIrNPffgYBWV22 ndteAjan1EUUMtFpNo4WUUFtCUjngBqy2Ns9z6i4zT2vX23W2GOcppYgB99l48YziSZt yllMq4CyDevPlBiZpaYn3WPW0nvCJBEjH6FfpV/gEiPnnIyamWQLcpzoQm5NnoCNeGUK QCiFS6pmy/Xce/zjNVOAMuODHFDVbDcUEJ1n4FPOg5vMOGDdQDPMq8EPPzSjjjzSOvaa chZwasaKVJ6hmCZtls2tG6B8hczLc0+9AA72mJacYSUtuQ5+Ac7vBlJcBtEaJ7hE8tDX xnSQ== MIME-Version: 1.0 X-Received: by 10.50.114.35 with SMTP id jd3mr27014847igb.14.1430308924061; Wed, 29 Apr 2015 05:02:04 -0700 (PDT) In-Reply-To: <5540c3bd$0$12998$c3e8da3$5496439d@news.astraweb.com> References: <70cf8ca0-beea-4f01-b962-beab1d54d2fd@googlegroups.com> <553cfec1$0$12998$c3e8da3$5496439d@news.astraweb.com> <553e4dd4$0$13004$c3e8da3$5496439d@news.astraweb.com> <55400cf5$0$13009$c3e8da3$5496439d@news.astraweb.com> <4d416348-6918-4674-b0c6-7ac2c04c5307@googlegroups.com> <554072b7$0$11102$c3e8da3@news.astraweb.com> <61c897c7-d5bc-4c14-8c38-9850981a8858@googlegroups.com> <55407f05$0$2924$c3e8da3$76491128@news.astraweb.com> <45e48150-1ebc-40aa-90b0-af18109d33da@googlegroups.com> <5540c3bd$0$12998$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 29 Apr 2015 22:02:04 +1000 Subject: Re: Question Installing latest Python From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430308927 news.xs4all.nl 2905 [2001:888:2000:d::a6]:40612 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 6347 X-Received-Body-CRC: 2199291803 Xref: csiph.com comp.lang.python:89544 On Wed, Apr 29, 2015 at 9:42 PM, Steven D'Aprano wrote: > On Wed, 29 Apr 2015 04:57 pm, =CE=A6=CF=8E=CE=BD=CF=84=CE=B1=CF=82 =CE=9B= =CE=B1=CE=B4=CE=BF=CF=80=CF=81=CE=B1=CE=BA=CF=8C=CF=80=CE=BF=CF=85=CE=BB=CE= =BF=CF=82 wrote: > >> Thank you very much Steven! >> >> Indeed it worked!! >> >> One last thing. Can you please explain to me inplain English what exactl= y >> was that weird problem? > > Probably not. I'm not a C expert and don't really understand in full deta= il > how dynamic shared libraries work. > > I *think* the problem was that Python was built to use dynamic libraries, > but couldn't find them. I'm not sure how that works at the C level, but m= y > guess is that it is something like importing a Python module. The Python > executable couldn't find the libpython3.3m.so.1.0 shared library, so you > used ldconfig to tell it where to find it. I haven't been seeing posts from =CE=A6=CF=8E=CE=BD=CF=84=CE=B1=CF=82, only= the replies from Steven, so I'm guessing something isn't crossing the news->mailing list boundary for some reason. As a result, my understanding of the problem is a bit spotty, but it seems there may be a chroot involved here. >> [root@secure ~]# /opt/rh/python33/root/usr/bin/python -V >> /opt/rh/python33/root/usr/bin/python: error while loading shared >> libraries: libpython3.3m.so.1.0: cannot open shared object file: No such >> file or directory So it's possible that the chroot didn't have the correct /etc/ld.so.conf.d entry for your Python binary, and thus the dynamic linker couldn't find the shared library. Beyond that, I don't really know enough about what's going on, sorry. But maybe that's a starting point for an investigation. ChrisA