Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #89604

Re: Question Installing latest Python

Newsgroups comp.lang.python
Date 2015-04-29 23:00 -0700
References (9 earlier) <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> <mailman.84.1430308927.3680.python-list@python.org>
Message-ID <a1345e0e-67d8-447f-b147-c9001a7838e2@googlegroups.com> (permalink)
Subject Re: Question Installing latest Python
From Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com>

Show all headers | View raw


Τη Τετάρτη, 29 Απριλίου 2015 - 3:02:18 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
> On Wed, Apr 29, 2015 at 9:42 PM, Steven D'Aprano
> <steve+comp.lang.python@pearwood.info> wrote:
> > On Wed, 29 Apr 2015 04:57 pm, Φώντας Λαδοπρακόπουλος wrote:
> >
> >> Thank you very much Steven!
> >>
> >> Indeed it worked!!
> >>
> >> One last thing. Can you please explain to me inplain English what exactly
> >> was that weird problem?
> >
> > Probably not. I'm not a C expert and don't really understand in full detail
> > 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 my
> > 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 Φώντας, 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

No that you are mentioning it Chris, indeed the path to the shared libray seems weird.

 /opt/rh/python33/root/usr/bin/python

if we break it it will be

/opt/rh/python33   
and
/root/usr/bin/python

Weird installation path used by yum packaging system and indeed looked like chroot was used although i have never chrooted in my CentOS VPS.

Any ideas as to how we cna investigate this?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-04-26 08:00 -0700
  Re: Question Installing latest Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-04-27 01:05 +1000
    Re: Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-04-26 08:11 -0700
      Re: Question Installing latest Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-04-28 00:55 +1000
        Re: Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-04-28 00:02 -0700
          Re: Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-04-28 12:26 -0700
            Re: Question Installing latest Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-04-29 08:43 +1000
              Re: Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-04-28 19:50 -0700
                Re: Question Installing latest Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-04-29 15:57 +1000
                Re: Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-04-28 23:13 -0700
                Re: Question Installing latest Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-04-29 16:49 +1000
                Re: Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-04-28 23:57 -0700
                Re: Question Installing latest Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-04-29 21:42 +1000
                Re: Question Installing latest Python Chris Angelico <rosuav@gmail.com> - 2015-04-29 22:02 +1000
                Re: Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-04-29 23:00 -0700
                Re: Question Installing latest Python Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-05-01 05:22 -0700

csiph-web