What am I missing:

I am using Red Hat Linux Fedora Core 4.
Python 2.4.1

  I have the following 3 rpms installed:
wxPython-common-gtk2-unicode-2.6.2.1-fc2_py2.4
wxPython2.6-gtk2-unicode-2.6.2.1-fc2_py2.4
wxPython2.6-devel-gtk2-unicode-2.6.2.1-fc2_py2.4

  I also installed winpdb, which is what I wanted wxPython for:
winpdb-1.0.5-1

ldd /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core_.so
gave me:

[m.yanowitz@a400m01 ~]$ ldd
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unico
e/wx/_core_.so
        linux-gate.so.1 => (0xffffe000)
        libwx_gtk2ud-2.6.so.0 =>
/usr/lib/wxPython-2.6.2.1-gtk2-unicode/lib/li
x_gtk2ud-2.6.so.0 (0xf784a000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xf776e000)
        libm.so.6 => /lib/libm.so.6 (0xf774a000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7740000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf772d000)
        libc.so.6 => /lib/libc.so.6 (0xf7603000)
        libz.so.1 => /usr/lib/libz.so.1 (0xf75f0000)
        libdl.so.2 => /lib/libdl.so.2 (0xf75ec000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xf72f6000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xf7273000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xf725b000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0
(0xf7245000)
        libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0xf723f000)
        libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0xf7234000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xf71fe000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xf71c2000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xf71bd000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xf71b8000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xf712f000)
        libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0xf712c000)
        libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0xf7127000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xf7103000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xf70e3000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0xf708e000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0xf706f000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xf6fe5000)
        /lib/ld-linux.so.2 (0x56555000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xf6f11000)
        libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0xf6f0c000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0xf6f04000)
        libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0xf6ef1000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xf6e89000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xf6e5f000)
        libXfixes.so.3 => /usr/X11R6/lib/libXfixes.so.3 (0xf6e5a000)
        libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0xf6e4f000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0xf6e47000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xf6e38000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xf6e13000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf6d29000)

Thanks in advance

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Tuesday, February 28, 2006 7:19 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] What am I missing:

Michael Yanowitz wrote:

Hello:

  I am new to Python and wxPython. I thought I installed wxPython
ok. However, when I try to import it in Python, I get errors in
_core_.so. Saying that it can't find the file, though I know it
exists. Any ideas, what I am missing?

[m.yanowitz@a400m01 winpdb-1.0.6]$ python
Python 2.4.1 (#1, May 16 2005, 15:15:14)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] 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
[root@a400m01 m.yanowitz]# ls -l
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core_* -rwxr-xr-x
1 root root 974320 Jan 10 20:24
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core_.so

What Linux are you on? Which wxpython packages did you install?

Try running this to see if there are any dependent libs that are missing:

    "ldd /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core_.so"

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Yes, FC4 uses libstdc++.so.6, but FC2 - libstdc++.so.5:
$ rpm -qf /usr/lib/libstdc++.so.5
compat-libstdc++-33-3.2.3-47.fc4
You can use 'yum localinstall' instead of rpm to install the packages,
and yum will fetch dependencies automatically.

Regards,
Nerijus

···

On Fri, 03 Mar 2006 11:31:46 -0800 Christopher Barker <Chris.Barker@noaa.gov> wrote:

>> these are FC2 rpms, they should not be expected to work with FC4.
>
> They work well on a few FC4 systems here.

That's odd. They never worked for me. I wonder if they depend on some
backward compatible libs that you have installed, and I don't.