Traceback on invalid XML

Bug #420164 reported by Anders F Björklund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Smart Package Manager
Fix Released
Undecided
Unassigned
smart (Fedora)
Fix Released
High

Bug Description

When using the "mdclean" branch, there was a problem with error reporting.

NameError: global name 'repomd' is not defined

Related branches

Revision history for this message
In , Edwin (edwin-redhat-bugs) wrote :

Description of problem:
smart starts up with a traceback.

Version-Release number of selected component (if applicable):
$ rpm -q smart
smart-1.2-64.fc11.i586

How reproducible:
Always.

Steps to Reproduce:
1. Start smart.

Actual results:
Traceback (most recent call last):

  File "/usr/bin/smart", line 195, in <module>
    main(sys.argv[1:])

  File "/usr/bin/smart", line 168, in main
    exitcode = iface.run(opts.command, opts.argv)

  File "/usr/lib/python2.6/site-packages/smart/interfaces/gtk/interactive.py", line 373, in run
    self._ctrl.reloadChannels()

  File "/usr/lib/python2.6/site-packages/smart/control.py", line 359, in reloadChannels
    if not channel.fetch(self._fetcher, progress):

  File "/usr/lib/python2.6/site-packages/smart/channels/rpm_md.py", line 100, in fetch
    oldinfo = self.loadMetadata(path)

  File "/usr/lib/python2.6/site-packages/smart/channels/rpm_md.py", line 66, in loadMetadata
    (metadatafile, repomd, str(e))

NameError: global name 'repomd' is not defined

Expected results:
Normal startup.

Additional info:
-

Revision history for this message
Anders F Björklund (afb) wrote :
Revision history for this message
Anders F Björklund (afb) wrote :
Changed in smart:
status: New → Fix Committed
Changed in smart (Fedora):
status: Unknown → Confirmed
Revision history for this message
In , Axel (axel-redhat-bugs) wrote :

I cannot reproduce it and no one else seems to confirm this bug. Is this still an issue, or was it fixed locally?

Revision history for this message
In , Edwin (edwin-redhat-bugs) wrote :

Yes, this is still present on my system. Current version I'm running is still:

$ rpm -q smart
smart-1.2-64.fc11.i586

Revision history for this message
Anders F Björklund (afb) wrote :

Fixed in Rev 871.

Changed in smart:
status: Fix Committed → Fix Released
Revision history for this message
In , Adrian (adrian-redhat-bugs) wrote :

I'm having exactly the same problem over here.
Version and messages matching.

Revision history for this message
In , peter (peter-redhat-bugs-1) wrote :

I was also getting this problem on FC12, ie:
smart-1.2-66.fc12.i686

I get the error specifically whenever I manually run "smart channel --check", or when smart runs this automatically as part of a channel refresh.

This problem was solved by Anders F Björklund's solution here:
https://bugs.launchpad.net/fedora/+source/smart/+bug/420164

If, like me, you can't wait for this to be packaged into a fedora update rpm, then you can fix your installed version of smart by:
1) edit /usr/lib/python2.6/site-packages/smart/channels/rpm_md.py
and make the changes specified in the difference listing in the above solution description.
2) Delete the precompiled binary versions of this same executable:
/usr/lib/python2.6/site-packages/smart/channels/rpm_md.pyc
/usr/lib/python2.6/site-packages/smart/channels/rpm_md.pyo
3) Run "smart channel --check".

.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

smart-1.3-65.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/smart-1.3-65.fc12

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

smart-1.3-65.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.

Changed in smart (Fedora):
importance: Unknown → High
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.