PDA

View Full Version : pirut not working on FC8 Test 3



gary1975
10th October 2007, 11:09 PM
Hi,

I'm getting the following error on launching pirut as root. Any ideas?

Loading "refresh-updatesd" plugin
args: ()
kwargs: {'mediaid': '1191241688.811639', 'name': 'Fedora 7.92', 'url': None, 'text': <yum.yumRepo.YumRepository object at 0x8e0d5ec>, 'relative': 'repodata/repomd.xml', 'range': (None, None), 'checkfunc': (<bound method YumRepository._checkRepoXML of <yum.yumRepo.YumRepository object at 0x8e0d5ec>>, (), {}), 'copy_local': 1, 'discnum': 1, 'local': '//var/cache/yum/InstallMedia/repomd.xml'}
Component: pirut
Summary: TB19ba829d __init__.py:158:pirutCDHandler:NameError: global name 'DBusException' is not defined

Traceback (most recent call last):
File "/usr/sbin/pirut", line 474, in <module>
main()
File "/usr/sbin/pirut", line 470, in main
pm.run()
File "/usr/sbin/pirut", line 398, in run
self.doRefresh()
File "/usr/sbin/pirut", line 414, in doRefresh
self.doRefreshRepos(self._onlyrepo)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 302, in doRefreshRepos
self.reposSetup(pbar, thisrepo)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 268, in reposSetup
self.doTsSetup()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 64, in doTsSetup
return self._getTs()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 78, in _getTs
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 522, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 381, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 239, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 142, in populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 199, in _check_db_version
if repo.repoXML.repoData.has_key(mdtype):
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 758, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 750, in _getRepoXML
self._loadRepoXML(text=self)
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 733, in _loadRepoXML
cache=self.http_caching == 'all')
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 563, in _getFile
result = self.mediafunc(local = local, checkfunc = checkfunc, relative = relative, text = text, copy_local = copy_local, url = url, mediaid = self.mediaid, name = self.name, discnum = discnum, range = (start, end))
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 158, in pirutCDHandler
except DBusException, e:
NameError: global name 'DBusException' is not defined

Local variables in innermost frame:
cddevs: dbus.Array([dbus.String(u'/org/freedesktop/Hal/devices/storage_model_DVD__RW_ND_6650A')], signature=dbus.Signature('s'))
hal: <Interface <ProxyObject wrapping <dbus._dbus.SystemBus (system) at 0x8e1902c> :1.4 /org/freedesktop/Hal/Manager at 0x8e1826c> implementing 'org.freedesktop.Hal.Manager' at 0x8e1812c>
name: Fedora 7.92
self: <__main__.PackageManager object at 0x8d6caac>
args: ()
umount: False
mediaid: 1191241688.811639
HalCD: <module 'pirut.HalCD' from '/usr/lib/python2.5/site-packages/pirut/HalCD.pyc'>
dev: <pirut.HalCD.HALBlockDevice instance at 0x8e13f2c>
discnum: 1
kwargs: {'mediaid': '1191241688.811639', 'name': 'Fedora 7.92', 'url': None, 'text': <yum.yumRepo.YumRepository object at 0x8e0d5ec>, 'relative': 'repodata/repomd.xml', 'range': (None, None), 'checkfunc': (<bound method YumRepository._checkRepoXML of <yum.yumRepo.YumRepository object at 0x8e0d5ec>>, (), {}), 'copy_local': 1, 'discnum': 1, 'local': '//var/cache/yum/InstallMedia/repomd.xml'}
found: False
cdudi: /org/freedesktop/Hal/devices/storage_model_DVD__RW_ND_6650A

Thanks

gary1975
10th October 2007, 11:15 PM
Never mind.. It got fixed on doing "yum install pirut".

I guess the updates needed to be installed first.

Dan
11th October 2007, 02:39 AM
Ayup. Just hit this too. Fixed 'er right up.


Dan