Bug 552178 - Yum fails to upgrade rawhide
Summary: Yum fails to upgrade rawhide
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-04 09:43 UTC by Zdenek Kabelac
Modified: 2014-01-21 23:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-06 15:27:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zdenek Kabelac 2010-01-04 09:43:26 UTC
Description of problem:

Today upgrade of rawhide via yum returns this traceback:

Transaction Summary
================================================================================
Install       8 Package(s)
Upgrade     348 Package(s)
Remove        2 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Total size: 708 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 244, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 192, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 425, in doTransaction
    if msg.startswith('rpmlib('):
AttributeError: 'rpm.prob' object has no attribute 'startswith'


I've even upgraded to latest rpm and without any help.
I'll probably do upgrade manually.

Version-Release number of selected component (if applicable):

rpm-4.8.0-0.beta1.4.x86_64
yum-3.2.25-7.fc13.noarch

How reproducible:
yum upgrade

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Kabelac 2010-01-04 10:23:34 UTC
After some 'iterative' upgrade it looks like the problem is related to gnash upgrade.

Dependencies Resolved

============================================================================
 Package                        Arch                     Version                             Repository                     Size
============================================================================
Updating:
 gnash                          x86_64                   1:0.8.6-9.fc13                      development                   2.6 M
Updating for dependencies:
 gnash-klash                    x86_64                   1:0.8.6-9.fc13                      development                   228 k
 gnash-plugin                   x86_64                   1:0.8.6-9.fc13                      development                    28 k

Transaction Summary
============================================================================
Install       0 Package(s)
Upgrade       3 Package(s)

Total size: 2.8 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 244, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 192, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 425, in doTransaction
    if msg.startswith('rpmlib('):
AttributeError: 'rpm.prob' object has no attribute 'startswith'


rpm -qa | grep gnash
gnash-klash-0.9.0-0.6.20090809bzr11401.fc12.x86_64
gnash-plugin-0.9.0-0.6.20090809bzr11401.fc12.i686
gnash-0.9.0-0.6.20090809bzr11401.fc12.x86_64

Comment 2 Panu Matilainen 2010-01-04 13:21:38 UTC
This is due to rpm-python returing problem objects instead of just strings now. Something like this should work for both older and new bindings (but untested):

--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -4158,7 +4158,7 @@ class YumBase(depsolve.Depsolve):
         self.populateTs(test=1)
         self.ts.check()
         for prob in self.ts.problems():
-            results.append(prob)
+            results.append('%s' % prob)
 
         self.dsCallback = dscb
         return results

Comment 3 James Antill 2010-01-06 07:18:33 UTC
Sorry, meant to have fixed this before the latest rawhide update ... but forgot about it :o.

Being reviewed for upstream now.

Comment 4 Zdenek Kabelac 2010-01-07 08:45:00 UTC
Well not really sure whether I should reopen this bugzilla - but I still have the exact same problem.

Installed:

yum-3.2.25-8.fc13.noarch
python-2.6.4-4.fc13.x86_64

- with this version I still get today the problem from comment 1.

When I modify /usr/lib/python2.6/site-packages/yum/__init__.py
according to comment 2 it's different but still not perfect.

With my default Czech locales I get this error:
CHYBA v rpm_check_debug vs depsolve:
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 252, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 190, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 438, in doTransaction
    print to_utf8(msg)
  File "/usr/lib64/python2.6/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 46: ordinal not in range(128)

(Note I have another bugzilla opened for locales problem: Bug 543410 - so is my locales with python broken - or what could be the problem here ?)


With LANG=C I finally get this error:
ERROR with rpm_check_debug vs depsolve:
gnash = 0.9.0-0.6.20090809bzr11401.fc12 is needed by (installed) gnash-plugin-0.9.0-0.6.20090809bzr11401.fc12.i686
Please report this error in http://yum.baseurl.org/report
 You could try running: rpm -Va --nofiles --nodigest


Note You need to log in before you can comment on or make changes to this bug.