wxPython problem: /_core_.so: cannot open shared object file: No such file or directo
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
After struggling for a while, I eventually managed to install wxPython-2.6.3.3 unicode version in my Red Hat Linux system. But now I am getting the following error.
[root@rh-aee-07-iw Desktop]# python
Python 2.4.4 (#1, Apr 17 2007, 13:24:25)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/__init__.py", line 42, in ?
from wx._core import *
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 4, in ?
import _core_
ImportError: /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core_.so: cannot open shared object file: No such file or directory
>>>
I made sure that _core_.so file is in the directory. The file is there but for some reason it couldn't open the file. I tried installing the ansi version, installing it in another location but of no avail.
I would also thankful if somebody could shed some light on the situations and circumstances where an error like that(not being able to access a shared object file) would pop up and hints and clues to fix such situation.
I have an update for you guys if anybody is reading these posts:
I went to the folder where _core_.so is and tried
$ ldd _core_.so
and got the following. I can see that it could not find a lot of libraries. Is this a serious issue? Then I did a locate to find one of the missing library and i found it in /opt/pango/lib folder. Then I added this path in /etc/ld.so.conf and ran ldconfig. Then I tried ldd _core_.so again and still getting the same list and a lot of not found.
linux-gate.so.1 => (0xffffe000)
libwx_gtk2ud-2.6.so.0 => /usr/lib/wxPython-2.6.3.3-gtk2-unicode/lib/libwx_gtk2ud-2.6.so.0 (0xf783a000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xf775c000)
libm.so.6 => /lib/tls/libm.so.6 (0xf7739000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7731000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xf771f000)
libc.so.6 => /lib/tls/libc.so.6 (0xf75f4000)
libz.so.1 => /usr/lib/libz.so.1 (0xf75e3000)
libdl.so.2 => /lib/libdl.so.2 (0xf75df000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xf732b000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xf72bf000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xf72a5000)
libgdk_pixbuf-2.0.so.0 => not found
libpangoxft-1.0.so.0 => not found
libpangox-1.0.so.0 => not found
libpango-1.0.so.0 => not found
libgobject-2.0.so.0 => not found
libgmodule-2.0.so.0 => not found
libgthread-2.0.so.0 => not found
libglib-2.0.so.0 => not found
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xf727f000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xf7261000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0xf7214000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0xf71f4000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xf7176000)
/lib/ld-linux.so.2 (0x56555000)
libgdk_pixbuf-2.0.so.0 => not found
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xf7097000)
libpangoxft-1.0.so.0 => not found
libpangox-1.0.so.0 => not found
libpango-1.0.so.0 => not found
libgobject-2.0.so.0 => not found
libgmodule-2.0.so.0 => not found
libglib-2.0.so.0 => not found
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0xf7092000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0xf708a000)
libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0xf7087000)
libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0xf7075000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xf700a000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xf6fe4000)
libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0xf6fda000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0xf6fd2000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xf6fc4000)
libpangoxft-1.0.so.0 => not found
libpangox-1.0.so.0 => not found
libpango-1.0.so.0 => not found
libgobject-2.0.so.0 => not found
libgmodule-2.0.so.0 => not found
libglib-2.0.so.0 => not found
libgdk_pixbuf-2.0.so.0 => not found
libgobject-2.0.so.0 => not found
libgmodule-2.0.so.0 => not found
libglib-2.0.so.0 => not found
libasound.so.2 => /lib/libasound.so.2 (0xf6f1b000)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.