<---- template headericclude ----->
pirut crash
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 13 of 13
  1. #1
    tayyy Guest

    pirut crash

    Hi people need help here. Pirut crashes whenever I try to install a .rpm file from the desktop. Here is the bugzilla report:

    Component: pirut
    Summary: TBaa979ac4 priorities.py:88:exclude_hook:AttributeError: 'NoneType' object has no attribute 'samearch'

    Traceback (most recent call last):
    File "/usr/sbin/system-install-packages", line 355, in <module>
    main()
    File "/usr/sbin/system-install-packages", line 351, in main
    pkginst.run()
    File "/usr/sbin/system-install-packages", line 339, in run
    self.doRefresh()
    File "/usr/sbin/system-install-packages", line 98, in doRefresh
    self.populatePackages()
    File "/usr/sbin/system-install-packages", line 279, in populatePackages
    self._populateLocalPackages(locals)
    File "/usr/sbin/system-install-packages", line 154, in _populateLocalPackages
    self.tsInfo.addInstall(po = po)
    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 535, in <lambda>
    tsInfo = property(fget=lambda self: self._getTsInfo(),
    File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 83, in _getTsInfo
    self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 526, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 393, in _getSacks
    self.plugins.run('exclude')
    File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 169, in run
    func(conduitcls(self, self.base, conf, **kwargs))
    File "/usr/lib/yum-plugins/priorities.py", line 88, in exclude_hook
    if opts.samearch:
    AttributeError: 'NoneType' object has no attribute 'samearch'

    Local variables in innermost frame:
    conduit: <yum.plugins.MainPluginConduit instance at 0xb1fb3ec>
    commands: None
    opts: None

  2. #2
    tayyy Guest
    ... I got it. I had to delete the plugins.

  3. #3
    s.v.g. Guest
    sorry nobody was able to help (this forum is usually VERY useful!). glad it's working now

  4. #4
    Join Date
    Aug 2007
    Location
    Reno NV.
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pirut

    I seem to be having the same problem

    Component: pirut
    Summary: TBaa979ac4 priorities.py:88:exclude_hook:AttributeError: 'NoneType' object has no attribute 'samearch'

    Traceback (most recent call last):
    File "/usr/sbin/pirut", line 483, in <module>
    main()
    File "/usr/sbin/pirut", line 479, in main
    pm.run()
    File "/usr/sbin/pirut", line 407, in run
    self.doRefresh()
    File "/usr/sbin/pirut", line 423, in doRefresh
    self.doRefreshRepos(self._onlyrepo)
    File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 339, in doRefreshRepos
    self.reposSetup(pbar, thisrepo)
    File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 303, in reposSetup
    self.doTsSetup()
    File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 72, in doTsSetup
    return self._getTs()
    File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 85, in _getTs
    self._getTsInfo()
    File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 91, in _getTsInfo
    self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 529, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 396, in _getSacks
    self.plugins.run('exclude')
    File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 169, in run
    func(conduitcls(self, self.base, conf, **kwargs))
    File "/usr/lib/yum-plugins/priorities.py", line 88, in exclude_hook
    if opts.samearch:
    AttributeError: 'NoneType' object has no attribute 'samearch'

    Local variables in innermost frame:
    conduit: <yum.plugins.MainPluginConduit instance at 0x90fefec>
    commands: None
    opts: None


    Think you could give me the syntax of the command you used to delete the Plugins ?

    Would be most greatful,,, Thanks.!!!


    And then again,,,, I believe ,,, After looking through some other Posts,,, that I'll just be trying to use Yumex instead,,,Until Pirut is updated and Perhaps then see if it begins working,,, I also have the Smart package manager installed and will probably just uninstall it, Also have the Synaptic package manager installed

    So for my needs,,, I may gather any updates , for the time being from them,,
    Last edited by quacked; 24th December 2007 at 05:21 PM. Reason: reading some other posts

  5. #5
    tayyy Guest
    start nautilus in root. browse to /usr/lib/yum-plugins and delete everything. that worked for me at least.

  6. #6
    Join Date
    Aug 2007
    Location
    Reno NV.
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks !!! tried it and for some reason it worked,,, I looked at the folder and the plugins,,, Just had priorities plugin there and , ( instead of just deleting them ) copied to a different folder ( to replace them later ) Still trying to figure out the " coding " and fixing this instead

    Each of our errors seems to call in different lines of the packages

    TBaa979ac4 priorities.py:88:exclude_hook:AttributeError:

    Afterwards tried Yumex and it still worked No other ill effects so far,,,

  7. #7
    sergel Guest
    Hello I'm a newby to Fedora Core 8.
    Thanks for this thread because it leads me to the good solution.

    You just have to replace the following file :
    /usr/lib/yum-plugins/priorities.py
    by the one you can download from bugs.centos.org

    If you have SELinux activated don't forget to change the type of the file like this :
    HTML Code:
    chcon -t lib_t /usr/lib/yum-plugins/priorities.py
    It works fine for me .

    The difference is on the line 88 on this Python script :
    Old one : if opts.samearch:
    New one if opts and opts.samearch:

    I don't know why but the opts object seems to be unset.

    Removing /usr/lib/yum-plugins by hand does not seem to be a good idea since the file has been installed with pirut package.

  8. #8
    sergel Guest
    The last release of pirut solves the problem (pirut.noarch 1.3.28-1.fc8).:-)

  9. #9
    Join Date
    Jun 2005
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Last release did not solve this for me, but I am running X86_64...so maybe they still need to fix the 64 bit version?

    ***EDIT***

    Sergel's solution (posted above) worked fine!!
    Last edited by Emphyrio; 26th December 2007 at 08:13 PM.

  10. #10
    sergel Guest
    I am using X86_64 too.

    BTW, have you tried to download the file from bugs.centos.org. ?

  11. #11
    Join Date
    Aug 2007
    Location
    Reno NV.
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks " sergel " I just edited the file .py file and added the line And !!!! it worked !!!!

    Great!!! simple little edit,,

    Syntax will get you every time !!!

  12. #12
    Join Date
    Sep 2005
    Location
    Denmark
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sergel's solution also worked for me ... I have 1.3.28-1.fc8 but I still had to correct line 88.

    Thanks sergel! :-)

  13. #13
    Join Date
    Feb 2007
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks from me also, sergel
    This is Linux country. On a quiet day, you can hear the sound of windows' machines rebooting :p

Similar Threads

  1. Crash Boom Bang, impressive crash by Fedora 7
    By Adesso in forum Using Fedora
    Replies: 5
    Last Post: 10th July 2007, 11:04 AM
  2. weird crash: amarok crash jammed external hdd
    By newbie_fin in forum Using Fedora
    Replies: 0
    Last Post: 20th September 2006, 08:39 PM
  3. Replies: 0
    Last Post: 24th August 2005, 08:36 PM
  4. kde crash notices often- konqueror crash
    By ramaswamyps in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 11th August 2005, 05:55 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]