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


Groups > comp.lang.python > #96179 > unrolled thread

Python 3.3 couldnt find its libraries.

Started byΦώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com>
First post2015-09-09 02:37 -0700
Last post2015-09-09 13:49 -0700
Articles 5 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Python 3.3 couldnt find its libraries. Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-09-09 02:37 -0700
    Re: Python 3.3 couldnt find its libraries. Steven D'Aprano <steve@pearwood.info> - 2015-09-10 03:36 +1000
      Re: Python 3.3 couldnt find its libraries. Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-09-09 13:19 -0700
      Re: Python 3.3 couldnt find its libraries. Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-09-09 13:46 -0700
      Re: Python 3.3 couldnt find its libraries. Φώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com> - 2015-09-09 13:49 -0700

#96179 — Python 3.3 couldnt find its libraries.

FromΦώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com>
Date2015-09-09 02:37 -0700
SubjectPython 3.3 couldnt find its libraries.
Message-ID<f85d7e4a-6ab0-4792-bef5-e997e4ab9452@googlegroups.com>
[root@superhost ~]# find / -name python
/usr/share/gcc-4.8.2/python
/usr/bin/python
/root/python
/opt/rh/python33/root/usr/bin/python

[root@superhost ~]# /usr/bin/python -V
Python 2.7.5

[root@superhost ~]# /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
[root@superhost ~]# 


I followed this artcile to install python 3.3 as an rpm package on my fresh centos system 

https://devops.profitbricks.com/tutorials/install-python-3-in-centos-7/

but his gives me the above error about not finding its libraries.


can you help please?

[toc] | [next] | [standalone]


#96199

FromSteven D'Aprano <steve@pearwood.info>
Date2015-09-10 03:36 +1000
Message-ID<55f06e20$0$1640$c3e8da3$5496439d@news.astraweb.com>
In reply to#96179
On Wed, 9 Sep 2015 07:37 pm, Φώντας Λαδοπρακόπουλος wrote:

[...]
> [root@superhost ~]# /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

Again?

Nikos, this looks like exactly the same error you got back in April, in the
thread with subject line "Question Installing latest Python". The date was
around 29 Apr 2015, possibly a couple of days either side. I suggest you go
back and read the replies to that.


If this is the same problem, then I think these were the steps you followed
last time.


Try running this as a regular user:

python3 -c "import sys; print(sys.executable)"


Does it work? If not, run this as the root user:

ldconfig

That will tell your system to cache any shared libraries it knows about. yum
is supposed to do that for you, but perhaps it didn't. Now try running the
python3 test above. Does it work? Then the problem is solved and you can
stop reading.


If you get the same error, then run this as root:

find /opt -name libpython3.3m.so.1.0

If it returns a single result, that's good. If it returns no results, try
this instead:

find / -name libpython3.3m.so.1.0 2> /dev/null

It may take a while: it's going to search your entire hard drive. Hopefully
that will return a single result: let's say it returns

/this/that/libpython3.3m.so.1.0

then you need to edit /etc/ld.so.conf and add this line to the end:

/this/that


Save your changes, run ldconfig again, and hopefully python3 will now work.



-- 
Steven

[toc] | [prev] | [next] | [standalone]


#96221

FromΦώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com>
Date2015-09-09 13:19 -0700
Message-ID<17a3504d-8331-4daa-b87e-a32394b8dfac@googlegroups.com>
In reply to#96199
Τη Τετάρτη, 9 Σεπτεμβρίου 2015 - 8:36:48 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε:
......
> then you need to edit /etc/ld.so.conf and add this line to the end:
> 
> /this/that
> 
> 
> Save your changes, run ldconfig again, and hopefully python3 will now work.

Steven once again thank you.
Indeed a few month ago same thing occured and i totally forgot that it happened back then along with the process.

Thanks for reminding me man.

[toc] | [prev] | [next] | [standalone]


#96226

FromΦώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com>
Date2015-09-09 13:46 -0700
Message-ID<7e16ca89-ff87-4a38-9ffe-178629dfb456@googlegroups.com>
In reply to#96199
Also steve another thing.

I have downloaded & installed Python3.5rc3 from source
and 
./configure
make
make install

Now because i ahve many Pythons installed how do i remove the aforementioned?

[toc] | [prev] | [next] | [standalone]


#96227

FromΦώντας Λαδοπρακόπουλος <nikos.gr33k@gmail.com>
Date2015-09-09 13:49 -0700
Message-ID<c946eae4-a08c-4f15-9930-add9dc5c97dc@googlegroups.com>
In reply to#96199
One more think Steve.

I have downloaded and installed Python 3.5rc3 from source and then:

./configure
make
make isntall

and then because having an rpm python pakcgae installed along with the compiled source, how do i remove Python 3.5?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web