Chris Carlson | 5 Jul 01:36

Problem with system-config-printer.py

Is there some dependency issue here?  Has anybody else seen this?

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 
29, in <module>
    import gtk.glade
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 
48, in <module>
    from gtk import _gtk
ImportError: /usr/lib/libcairo.so.2: symbol 
png_set_expand_gray_1_2_4_to_8, version PNG12_0 not defined in file 
libpng12.so.0 with link time reference

Thanks for any help you might have.
Chris

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Chris Carlson | 5 Jul 01:53

Re: Problem with system-config-printer.py

Sorry, I should have indicated that I'm running F9.  I'm not sure what 
else one would need to know.  I click on the 
System->Administration->Printing pulldown, and this is what gets printed 
in my .xsession-errors file.

Chris

Chris Carlson wrote:
> Is there some dependency issue here?  Has anybody else seen this?
>
>
> Traceback (most recent call last):
>  File "/usr/share/system-config-printer/system-config-printer.py", 
> line 29, in <module>
>    import gtk.glade
>  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 
> 48, in <module>
>    from gtk import _gtk
> ImportError: /usr/lib/libcairo.so.2: symbol 
> png_set_expand_gray_1_2_4_to_8, version PNG12_0 not defined in file 
> libpng12.so.0 with link time reference
>
>
> Thanks for any help you might have.
> Chris
>

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
(Continue reading)

Michael Schwendt | 5 Jul 09:45

Re: Problem with system-config-printer.py

On Fri, 04 Jul 2008 16:39:33 -0700, Chris Carlson wrote:

> Is there some dependency issue here?  Has anybody else seen this?
> 
> 
> Traceback (most recent call last):
>   File "/usr/share/system-config-printer/system-config-printer.py", line 
> 29, in <module>
>     import gtk.glade
>   File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 
> 48, in <module>
>     from gtk import _gtk
> ImportError: /usr/lib/libcairo.so.2: symbol 
> png_set_expand_gray_1_2_4_to_8, version PNG12_0 not defined in file 
> libpng12.so.0 with link time reference

What do you get for

  rpm -q libpng
  rpm -V libpng
  ldd /usr/lib/libcairo.so.2|grep libpng
  objdump -T /usr/lib/libpng12.so.0|grep expand

?

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

(Continue reading)

Chris Carlson | 5 Jul 20:50

Re: Problem with system-config-printer.py

Thank you, Michael, for responding.

Here's what I get when I enter the commands you suggested:

[root <at> rolf ~]# rpm -q libpng
libpng-1.2.29-1.fc9.i386
[root <at> rolf ~]# rpm -V libpng
[root <at> rolf ~]# ldd /usr/lib/libcairo.so.2 | grep libpng
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00ab0000)
[root <at> rolf ~]# objdump -T /usr/lib/libpng12.so.0 | grep expand
00ac5a50 g    DF .text  0000001d  PNG12_0     png_set_expand
00ac5a90 g    DF .text  0000001d  PNG12_0     png_set_expand_gray_1_2_4_to_8

I hope that helps.

Thanks, again.
Chris

Michael Schwendt wrote:
> On Fri, 04 Jul 2008 16:39:33 -0700, Chris Carlson wrote:
>
>   
>> Is there some dependency issue here?  Has anybody else seen this?
>>
>>
>> Traceback (most recent call last):
>>   File "/usr/share/system-config-printer/system-config-printer.py", line 
>> 29, in <module>
>>     import gtk.glade
>>   File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 
(Continue reading)

Michael Schwendt | 5 Jul 23:14

Re: Problem with system-config-printer.py

On Sat, 05 Jul 2008 11:50:16 -0700, Chris Carlson wrote:

> Thank you, Michael, for responding.
> 
> Here's what I get when I enter the commands you suggested:
> 
> [root <at> rolf ~]# rpm -q libpng
> libpng-1.2.29-1.fc9.i386
> [root <at> rolf ~]# rpm -V libpng
> [root <at> rolf ~]# ldd /usr/lib/libcairo.so.2 | grep libpng
>         libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00ab0000)
> [root <at> rolf ~]# objdump -T /usr/lib/libpng12.so.0 | grep expand
> 00ac5a50 g    DF .text  0000001d  PNG12_0     png_set_expand
> 00ac5a90 g    DF .text  0000001d  PNG12_0     png_set_expand_gray_1_2_4_to_8
> 
> I hope that helps.

It looks okay. However, you should have executed those commands
as your normal user, not "root". Most often, when I've seen such
an error message, which you refer to, the reason was a modified
$LD_LIBRARY_PATH pointing to incompatible libs in /usr/local/lib.

-- 
Can't access F9 i386 currently to see whether this is reproducible.
libpng-1.2.29-1.fc9 is an update from early June.

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
(Continue reading)

Chris Carlson | 6 Jul 21:44

Re: Problem with system-config-printer.py

Again, thank you for your response.

The LD_LIBRARY_PATH as my user is set to /usr/local/lib.  This is the 
default setting by a default user with F9.  There are no libraries in 
/usr/local/lib, so there isn't a conflict.

Since this is repeatable simply by trying to set up a printer from the 
desktop, I would think others would be running into it as well.  Am I 
the only one?  Or does everyone else know the manual process so well 
that no one bothers to test/fix the wizard?  This is not meant as a 
criticism.  I'm just looking for a solution, and I want to know the odds 
of finding someone that has figured it out or is working on it.

Thanks again,
Chris

Michael Schwendt wrote:
> On Sat, 05 Jul 2008 11:50:16 -0700, Chris Carlson wrote:
>
>   
>> Thank you, Michael, for responding.
>>
>> Here's what I get when I enter the commands you suggested:
>>
>> [root <at> rolf ~]# rpm -q libpng
>> libpng-1.2.29-1.fc9.i386
>> [root <at> rolf ~]# rpm -V libpng
>> [root <at> rolf ~]# ldd /usr/lib/libcairo.so.2 | grep libpng
>>         libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00ab0000)
>> [root <at> rolf ~]# objdump -T /usr/lib/libpng12.so.0 | grep expand
(Continue reading)

Tim Waugh | 6 Jul 23:20

Re: Problem with system-config-printer.py

On Sun, 2008-07-06 at 12:44 -0700, Chris Carlson wrote:
> Since this is repeatable simply by trying to set up a printer from the 
> desktop, I would think others would be running into it as well.  Am I 
> the only one? 

I'm afraid you are.  The printer configuration tool is working fine for
me on all my test installations, and on my main working installation of
Fedora 9. (I'm the maintainer of the program.)

You will probably find that this command fails in the same way:

python -c 'import gtk.glade'

What output does this give?:

strace -eopen python -c 'import gtk.glade' 2>&1 | grep -v NOENT

Tim.
*/

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Chris Carlson | 6 Jul 23:30

Re: Problem with system-config-printer.py

Thanks for helping me look into this.  I'm not versed in Python, and I 
didn't want to learn it just to debug this.

Are you sure you want to see all the output that is *not* ENOENT?  It 
doesn't seem very informative to me.

The last few lines are:

open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = 4
open("/usr/share/X11/locale/iso8859-1/XLC_LOCALE", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = 4
open("/usr/share/X11/locale/iso8859-1/XLC_LOCALE", O_RDONLY) = 4
open("/usr/share/locale/locale.alias", O_RDONLY) = 4
open("/etc/nsswitch.conf", O_RDONLY)    = 4
open("/etc/ld.so.cache", O_RDONLY)      = 4
open("/lib/libnss_files.so.2", O_RDONLY) = 4
open("/etc/passwd", O_RDONLY|0x80000 /* O_??? */) = 4
open("/usr/lib/gtk-2.0/modules/libgnomebreakpad.so", O_RDONLY) = 4
open("/usr/lib/bug-buddy/libbreakpad.so.0", O_RDONLY) = 4
open("/etc/ld.so.cache", O_RDONLY)      = 4
open("/usr/lib/libelf.so.1", O_RDONLY)  = 4
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 4
open("/lib/libgcc_s.so.1", O_RDONLY)    = 4
open("/var/run/gdm/auth-cookie-XXRCSCEU-for-carlson", O_RDONLY) = 5
open("/usr/lib/python2.5/site-packages/gtk-2.0/gtk/glade.so", 
O_RDONLY|O_LARGEFILE) = 3
open("/usr/lib/python2.5/site-packages/gtk-2.0/gtk/glade.so", O_RDONLY) = 5
open("/etc/ld.so.cache", O_RDONLY)      = 5
(Continue reading)

Tim Waugh | 7 Jul 10:37

Re: Problem with system-config-printer.py

On Sun, 2008-07-06 at 14:30 -0700, Chris Carlson wrote:
> Are you sure you want to see all the output that is *not* ENOENT?  It 
> doesn't seem very informative to me.

Yes, to see which libraries are actually getting loaded.  Something is
obviously different on your system compared to those of other people,
including my 'fresh install plus updates' installations here.

> The last few lines are:

The entire output please.  Can you confirm/deny that the python command
gives the same traceback message for you?

Tim.
*/

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Chris Carlson | 7 Jul 17:04

Re: Problem with system-config-printer.py

Okay, sorry for doubting you.

When I run the python line you suggested, nothing happens.  Here's the 
output:

rolf:carlson [911] $ python -c 'import gtk.glade'
rolf:carlson [912] $

When I run the strace version of it, here's the whole output (note that 
the command is slightly different for tcsh):

rolf:carlson [913] $ strace -eopen python -c 'import gtk.glade' |& grep 
-v NOENT
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/lib/libpython2.5.so.1.0", O_RDONLY) = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libutil.so.1", O_RDONLY)     = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/proc/meminfo", O_RDONLY)         = 3
open("/usr/lib/python2.5/site.py", O_RDONLY|O_LARGEFILE) = 3
open("/usr/lib/python2.5/site.pyc", O_RDONLY|O_LARGEFILE) = 4
open("/usr/lib/python2.5/os.py", O_RDONLY|O_LARGEFILE) = 4
open("/usr/lib/python2.5/os.pyc", O_RDONLY|O_LARGEFILE) = 5
open("/usr/lib/python2.5/posixpath.py", O_RDONLY|O_LARGEFILE) = 5
open("/usr/lib/python2.5/posixpath.pyc", O_RDONLY|O_LARGEFILE) = 6
open("/usr/lib/python2.5/stat.py", O_RDONLY|O_LARGEFILE) = 6
open("/usr/lib/python2.5/stat.pyc", O_RDONLY|O_LARGEFILE) = 7
open("/usr/lib/python2.5/UserDict.py", O_RDONLY|O_LARGEFILE) = 5
(Continue reading)

| 8 Jul 15:34

Re: Problem with system-config-printer.py

I have the same problem that Chris has.
There is a program called DeVeDe, it was runnig fine until last month,
but after (I think) an update of some packages of Fedora 9, it stop working.
The message is:

[german <at> aquarius ~]$ devede
Traceback (most recent call last):
  File "/usr/bin/devede", line 28, in ?
    import gtk.glade
ImportError: No module named glade

When running system-config-printer, the problem seems to be the same:

[german <at> aquarius ~]$ system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py",
line 29, in ?
    import gtk.glade
ImportError: No module named glade

What to do? (Sorry for my English, I'm Argentinian...)

Thanks in advance,
German.

On Mon, Jul 7, 2008 at 12:04 PM, Chris Carlson <cwcarlson <at> cox.net> wrote:
> Okay, sorry for doubting you.
>
> When I run the python line you suggested, nothing happens.  Here's the
> output:
(Continue reading)

Michael Schwendt | 8 Jul 15:40

Re: Problem with system-config-printer.py

On Tue, 8 Jul 2008 10:34:31 -0300, Germán Racca wrote:

> I have the same problem that Chris has.

No, that's not true.

> There is a program called DeVeDe, it was runnig fine until last month,
> but after (I think) an update of some packages of Fedora 9, it stop working.
> The message is:
> 
> [german <at> aquarius ~]$ devede
> Traceback (most recent call last):
>   File "/usr/bin/devede", line 28, in ?
>     import gtk.glade
> ImportError: No module named glade

Are you missing the "pygtk2-libglade" package?
Or is it damaged?

> When running system-config-printer, the problem seems to be the same:
> 
> [german <at> aquarius ~]$ system-config-printer
> Traceback (most recent call last):
>   File "/usr/share/system-config-printer/system-config-printer.py",
> line 29, in ?
>     import gtk.glade
> ImportError: No module named glade

This is a different error than what Chris has reported.

(Continue reading)

| 8 Jul 15:54

Re: Problem with system-config-printer.py

Sorry Michael, I thought it was the same problem...

I have pygtk2-libglade-2.12.1-6.fc9.i386.
How to know if it is damaged?

Thanks,
German.

On Tue, Jul 8, 2008 at 10:40 AM, Michael Schwendt <mschwendt <at> gmail.com> wrote:
> On Tue, 8 Jul 2008 10:34:31 -0300, Germán Racca wrote:
>
>> I have the same problem that Chris has.
>
> No, that's not true.
>
>> There is a program called DeVeDe, it was runnig fine until last month,
>> but after (I think) an update of some packages of Fedora 9, it stop working.
>> The message is:
>>
>> [german <at> aquarius ~]$ devede
>> Traceback (most recent call last):
>>   File "/usr/bin/devede", line 28, in ?
>>     import gtk.glade
>> ImportError: No module named glade
>
> Are you missing the "pygtk2-libglade" package?
> Or is it damaged?
>
>> When running system-config-printer, the problem seems to be the same:
>>
(Continue reading)

Michael Schwendt | 8 Jul 16:08

Re: Problem with system-config-printer.py

On Tue, 8 Jul 2008 10:54:34 -0300, Germán Racca wrote:

> Sorry Michael, I thought it was the same problem...
> 
> I have pygtk2-libglade-2.12.1-6.fc9.i386.
> How to know if it is damaged?

rpm -V pygtk2-libglade libglade2

Also show the full output of the command Tim Waugh has requested earlier
in this thread:

strace -eopen python -c 'import gtk.glade' 2>&1 | grep -v NOENT

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

| 8 Jul 17:02

Re: Problem with system-config-printer.py

Here are the results:

[german <at> aquarius ~]$ rpm -V pygtk2-libglade libglade2
prelink: /usr/lib/libglade-2.0.so.0.0.7: at least one of file's
dependencies has changed since prelinking
S.?.....    /usr/lib/libglade-2.0.so.0.0.7

[german <at> aquarius ~]$ strace -eopen python -c 'import gtk.glade' 2>&1 |
grep -v NOENT
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libutil.so.1", O_RDONLY)     = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/proc/meminfo", O_RDONLY)         = 3
open("/scisoft/lib/python2.4/site.py", O_RDONLY|O_LARGEFILE) = 3
open("/scisoft/lib/python2.4/site.pyc", O_RDONLY|O_LARGEFILE) = 4
open("/scisoft/lib/python2.4/os.py", O_RDONLY|O_LARGEFILE) = 4
open("/scisoft/lib/python2.4/os.pyc", O_RDONLY|O_LARGEFILE) = 5
open("/scisoft/lib/python2.4/posixpath.py", O_RDONLY|O_LARGEFILE) = 5
open("/scisoft/lib/python2.4/posixpath.pyc", O_RDONLY|O_LARGEFILE) = 6
open("/scisoft/lib/python2.4/stat.py", O_RDONLY|O_LARGEFILE) = 6
open("/scisoft/lib/python2.4/stat.pyc", O_RDONLY|O_LARGEFILE) = 7
open("/scisoft/lib/python2.4/UserDict.py", O_RDONLY|O_LARGEFILE) = 5
open("/scisoft/lib/python2.4/UserDict.pyc", O_RDONLY|O_LARGEFILE) = 6
open("/scisoft/lib/python2.4/copy_reg.py", O_RDONLY|O_LARGEFILE) = 5
open("/scisoft/lib/python2.4/copy_reg.pyc", O_RDONLY|O_LARGEFILE) = 6
open("/scisoft/lib/python2.4/types.py", O_RDONLY|O_LARGEFILE) = 6
open("/scisoft/lib/python2.4/types.pyc", O_RDONLY|O_LARGEFILE) = 7
(Continue reading)

Michael Schwendt | 8 Jul 17:36

Re: Problem with system-config-printer.py

On Tue, 8 Jul 2008 12:02:29 -0300, Germán Racca wrote:

> Here are the results:
> 
> [german <at> aquarius ~]$ rpm -V pygtk2-libglade libglade2
> prelink: /usr/lib/libglade-2.0.so.0.0.7: at least one of file's
> dependencies has changed since prelinking
> S.?.....    /usr/lib/libglade-2.0.so.0.0.7

That is a command you should run as "root". It's not the cause
of your problems, however, because:

> open("/scisoft/lib/python2.4/site-packages/gtk-2.0/gtk/_gtk.so", O_RDONLY) = 5

> But I don't understand what does it means :-(
> Thank you Michael, I hope you can help me!

Isn't it obvious? You've damaged your installation with a Python 2.4 that
overrides Fedora 9's Python 2.5.x. It's incompatible, incomplete and
hides Python 2.5.x completely as you can see in the strace. Everything
is searched for only in your private /scisoft/... tree instead of
/usr/lib/python2.5/...  I guess if you run

  which python ; python -V

it doesn't point to Fedora 9's /usr/bin/python

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
(Continue reading)

| 8 Jul 17:48

Re: Problem with system-config-printer.py

Yes, I have installed an astronomical program called IRAF from a
Scisoft package. It is clear now...but how do I can solve this problem now?
Do I have to uninstall the Scisoft package?
Thanks,
German.

On Tue, Jul 8, 2008 at 12:36 PM, Michael Schwendt <mschwendt <at> gmail.com> wrote:
> On Tue, 8 Jul 2008 12:02:29 -0300, Germán Racca wrote:
>
>> Here are the results:
>>
>> [german <at> aquarius ~]$ rpm -V pygtk2-libglade libglade2
>> prelink: /usr/lib/libglade-2.0.so.0.0.7: at least one of file's
>> dependencies has changed since prelinking
>> S.?.....    /usr/lib/libglade-2.0.so.0.0.7
>
> That is a command you should run as "root". It's not the cause
> of your problems, however, because:
>
>> open("/scisoft/lib/python2.4/site-packages/gtk-2.0/gtk/_gtk.so", O_RDONLY) = 5
>
>> But I don't understand what does it means :-(
>> Thank you Michael, I hope you can help me!
>
> Isn't it obvious? You've damaged your installation with a Python 2.4 that
> overrides Fedora 9's Python 2.5.x. It's incompatible, incomplete and
> hides Python 2.5.x completely as you can see in the strace. Everything
> is searched for only in your private /scisoft/... tree instead of
> /usr/lib/python2.5/...  I guess if you run
>
(Continue reading)

Michael Schwendt | 8 Jul 19:04

Re: Problem with system-config-printer.py

On Tue, 8 Jul 2008 12:48:15 -0300, Germán Racca wrote:

> Yes, I have installed an astronomical program called IRAF from a
> Scisoft package. It is clear now...but how do I can solve this problem now?
> Do I have to uninstall the Scisoft package?

There are scisoft packages which alter /etc/profile to modify the default
$PATH and other environment variables. You could revert those installation
steps. Then create a separate shell script which you use to alter your
environment *only* if you want to run IRAF.

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

| 8 Jul 19:20

Re: Problem with system-config-printer.py

Thanks, by now I commented the lines in .bashrc related to Scisoft,
and then I have again python in /usr/bin and not in /scisoft/bin...but
if I want to use IRAF it doesn't work obviously...I will see how to
deal with that. Can I consult you if I have some problems with that?
Many thanks Michael!
German.

On Tue, Jul 8, 2008 at 2:04 PM, Michael Schwendt <mschwendt <at> gmail.com> wrote:
> On Tue, 8 Jul 2008 12:48:15 -0300, Germán Racca wrote:
>
>> Yes, I have installed an astronomical program called IRAF from a
>> Scisoft package. It is clear now...but how do I can solve this problem now?
>> Do I have to uninstall the Scisoft package?
>
> There are scisoft packages which alter /etc/profile to modify the default
> $PATH and other environment variables. You could revert those installation
> steps. Then create a separate shell script which you use to alter your
> environment *only* if you want to run IRAF.
>
> --
> fedora-list mailing list
> fedora-list <at> redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

--

-- 
Germán A. Racca
Instituto Nacional de Pesquisas Espaciais - INPE
Divisão de Astrofísica - DAS/CEA
São José dos Campos - SP - Brasil
(Continue reading)


Gmane