[wxPython] Help ! gdk_imlib ERROR: Cannot load image

Hi,

Whenever I import certain libraries in wxPython, such as wxc.so, I would
get an error:

  gdk_imlib ERROR: Cannot load image:
  /usr/share/themes/BeCool/gtk/greybg.png
  All fallbacks failed.

Please note that wxPython (v 2.3.2) and its related packages, such as
wxGTK (v 2.3.2), pygtk & pygnome (gnome-python 1.4.4) and including
Python (v 2.2) itself are all compiled locally using gcc-3.0.4.

AL

Whenever I import certain libraries in wxPython, such as wxc.so, I would
get an error:

gdk_imlib ERROR: Cannot load image:
/usr/share/themes/BeCool/gtk/greybg.png
All fallbacks failed.

Please note that wxPython (v 2.3.2) and its related packages, such as
wxGTK (v 2.3.2), pygtk & pygnome (gnome-python 1.4.4) and including
Python (v 2.2) itself are all compiled locally using gcc-3.0.4.

I think there was some discussion of this a while back on wx-dev, and I
think it had something to do with incompatible libpng shared libraries used
in GTK and wxGTK. If you can't figure out how to get them to use the same
libpng then you could try configuring wxGTK with "--with-libpng=builtin"

···

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

I had been trying to trace this problem in the last few days. I traced
the source code where the message is coming from, and it is coming from
'load.c' of the package 'imlib'.

Initially, the problem seems to be caused by the wrong location of
'libimlib-png.so'. When the function 'g_module_open' is called from
'modules.c', it tried to load the library from the location
'/usr/local/lib'. But this library resides in '/usr/lib'.

But even if I placed a copy of this library in the '/usr/local/lib', the
error message still appears. This time the failure seems to come from
the function 'g_module_symbol'.

Looking at the wxGTK libraries, I noticed that it is dependent to
'libpng.so' libray. Perhaps this is what 'incompatible libpng shared
libraries' means. I don't know, I'm still checking. But I'll try Robin's
suggestion and compile wxGTK with "--with-libpng=builtin". I'll let you
know the result.

Al

···

On Wed, 2002-09-11 at 00:56, Robin Dunn wrote:

>
> Whenever I import certain libraries in wxPython, such as wxc.so, I would
> get an error:
>
> gdk_imlib ERROR: Cannot load image:
> /usr/share/themes/BeCool/gtk/greybg.png
> All fallbacks failed.
>
> Please note that wxPython (v 2.3.2) and its related packages, such as
> wxGTK (v 2.3.2), pygtk & pygnome (gnome-python 1.4.4) and including
> Python (v 2.2) itself are all compiled locally using gcc-3.0.4.

I think there was some discussion of this a while back on wx-dev, and I
think it had something to do with incompatible libpng shared libraries used
in GTK and wxGTK. If you can't figure out how to get them to use the same
libpng then you could try configuring wxGTK with "--with-libpng=builtin"

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

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

Just to let you know that compiling wxGTK with "--with-libpng=builtin"
worked.

···

On Wed, 2002-09-11 at 11:38, Alfredo P. Ricafort wrote:

I had been trying to trace this problem in the last few days. I traced
the source code where the message is coming from, and it is coming from
'load.c' of the package 'imlib'.

Initially, the problem seems to be caused by the wrong location of
'libimlib-png.so'. When the function 'g_module_open' is called from
'modules.c', it tried to load the library from the location
'/usr/local/lib'. But this library resides in '/usr/lib'.

But even if I placed a copy of this library in the '/usr/local/lib', the
error message still appears. This time the failure seems to come from
the function 'g_module_symbol'.

Looking at the wxGTK libraries, I noticed that it is dependent to
'libpng.so' libray. Perhaps this is what 'incompatible libpng shared
libraries' means. I don't know, I'm still checking. But I'll try Robin's
suggestion and compile wxGTK with "--with-libpng=builtin". I'll let you
know the result.

Al

On Wed, 2002-09-11 at 00:56, Robin Dunn wrote:
> >
> > Whenever I import certain libraries in wxPython, such as wxc.so, I would
> > get an error:
> >
> > gdk_imlib ERROR: Cannot load image:
> > /usr/share/themes/BeCool/gtk/greybg.png
> > All fallbacks failed.
> >
> > Please note that wxPython (v 2.3.2) and its related packages, such as
> > wxGTK (v 2.3.2), pygtk & pygnome (gnome-python 1.4.4) and including
> > Python (v 2.2) itself are all compiled locally using gcc-3.0.4.
>
> I think there was some discussion of this a while back on wx-dev, and I
> think it had something to do with incompatible libpng shared libraries used
> in GTK and wxGTK. If you can't figure out how to get them to use the same
> libpng then you could try configuring wxGTK with "--with-libpng=builtin"
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org Java give you jitters? Relax with wxPython!
>
>
>
>
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users@lists.wxwindows.org
> http://lists.wxwindows.org/mailman/listinfo/wxpython-users