Bug 205169 - TB4de30c90 installonlyn.py:23:?:ImportError: cannot import name comparePoEVR
TB4de30c90 installonlyn.py:23:?:ImportError: cannot import name comparePoEVR
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: pirut (Show other bugs)
rawhide
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jeremy Katz
: Desktop
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-05 02:29 EDT by Nicole Dai
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: yum-2.9.5-4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-09-05 06:31:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nicole Dai 2006-09-05 02:29:13 EDT
Description of problem:
An unhandled exception has occurred when launch Software Manager in Application
menu or Software Updater on Panel. The detailed output is as below:
Component: Software Updater
Summary: TB4de30c90 installonlyn.py:23:?:ImportError: cannot import name
comparePoEVR

Traceback (most recent call last):
  File "/usr/sbin/pup", line 549, in ?
    main()
  File "/usr/sbin/pup", line 542, in main
    pup = PackageUpdater()
  File "/usr/sbin/pup", line 86, in __init__
    GraphicalYumBase.__init__(self, False)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 124, in __init__
    plugin_types=(yum.plugins.TYPE_CORE,))
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 123, in
doConfigSetup
    startupconf.pluginconfpath)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 227, in
doPluginSetup
    plugin_types, confpath)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 128, in __init__
    self._importplugins(types)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 169, in
_importplugins
    self._loadplugin(modulefile, types)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 185, in _loadplugin
    module = imp.load_module(modname, fp, pathname, description)
  File "/usr/lib/yum-plugins/installonlyn.py", line 23, in ?
    from yum.packages import YumInstalledPackage, comparePoEVR
ImportError: cannot import name comparePoEVR

Local variables in innermost frame:
TX_BLACK: None
TR_DEPENDSON: None
TX_WHITE: None
TS_INSTALL_STATES: None
TR_DEPENDS: None
PO_DIR: None
TS_UPDATE: None
PluginYumExit: None
PLUG_OPT_WHERE_REPO: None
YumInstalledPackage: None
LETTERFLAGS: None
TS_TRUEINSTALL: None
PO_LOCALPKG: None
TS_INSTALL: None
YUM_PID_FILE: None
TX_GREY: None
TR_OBSOLETES: None
__doc__: None
PLUG_OPT_WHERE_MAIN: None
SYMBOLFLAGS: None
__builtins__: {'IndexError': <class exceptions.IndexError at 0xb7eeb8fc>,
'help': Type help() for interactive help, or help(object) for help about
object., 'vars': <built-in function vars>, 'SyntaxError': <class
exceptions.SyntaxError at 0xb7eeb77c>, 'unicode': <type 'unicode'>,
'UnicodeDecodeError': <class exceptions.UnicodeDecodeError at 0xb7eebcbc>,
'isinstance': <built-in function isinstance>, 'copyright': Copyright (c)
2001-2006 Python Software Foundation.
All Rights Reserved.

Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <class exceptions.NameError at 0xb7eeb65c>,
'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in
function oct>, 'SystemExit': <class exceptions.SystemExit at 0xb7eeb32c>,
'StandardError': <class exceptions.StandardError at 0xb7eeb2cc>, 'repr':
<built-in function repr>, 'sorted': <built-in function sorted>, 'False': False,
'RuntimeWarning': <class exceptions.RuntimeWarning at 0xb7eebfbc>, 'list': <type
'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>,
'Warning': <class exceptions.Warning at 0xb7eebe3c>, 'round': <built-in function
round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set':
<type 'set'>, 'reduce': <built-in function reduce>, 'intern': <built-in function
intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis,
'EOFError': <class exceptions.EOFError at 0xb7eeb53c>, 'locals': <built-in
function locals>, 'slice': <type 'slice'>, 'FloatingPointError': <class
exceptions.FloatingPointError at 0xb7eebaac>, 'sum': <built-in function sum>,
'OverflowWarning': <class exceptions.OverflowWarning at 0xb7eebf8c>, 'getattr':
<built-in function getattr>, 'abs': <built-in function abs>, 'exit': 'Use Ctrl-D
(i.e. EOF) to exit.', 'True': True, 'FutureWarning': <class
exceptions.FutureWarning at 0xb7f0002c>, 'None': None, 'hash': <built-in
function hash>, 'len': <built-in function len>, 'credits':     Thanks to CWI,
CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more
information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord':
<built-in function ord>, 'super': <type 'super'>, 'TypeError': <class
exceptions.TypeError at 0xb7eeb2fc>, 'license': Type license() to see the full
license text, 'KeyboardInterrupt': <class exceptions.KeyboardInterrupt at
0xb7eeb38c>, 'UserWarning': <class exceptions.UserWarning at 0xb7eebe6c>,
'filter': <built-in function filter>, 'range': <built-in function range>,
'staticmethod': <type 'staticmethod'>, 'SystemError': <class
exceptions.SystemError at 0xb7eebddc>, 'pow': <built-in function pow>,
'RuntimeError': <class exceptions.RuntimeError at 0xb7eeb56c>, 'float': <type
'float'>, 'StopIteration': <class exceptions.StopIteration at 0xb7eeb29c>,
'globals': <built-in function globals>, 'divmod': <built-in function divmod>,
'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>,
'LookupError': <class exceptions.LookupError at 0xb7eeb8cc>, 'open': <type
'file'>, 'quit': 'Use Ctrl-D (i.e. EOF) to exit.', 'basestring': <type
'basestring'>, 'UnicodeError': <class exceptions.UnicodeError at 0xb7eebb6c>,
'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type
'long'>, 'ReferenceError': <class exceptions.ReferenceError at 0xb7eebdac>,
'ImportError': <class exceptions.ImportError at 0xb7eeb3ec>, 'chr': <built-in
function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__':
"Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the
`nil' object; Ellipsis represents `...' in slices.", 'Exception': <class
exceptions.Exception at 0xb7eeb26c>, 'tuple': <type 'tuple'>,
'UnicodeTranslateError': <class exceptions.UnicodeTranslateError at 0xb7eebd4c>,
'reversed': <type 'reversed'>, 'UnicodeEncodeError': <class
exceptions.UnicodeEncodeError at 0xb7eebbfc>, 'IOError': <class
exceptions.IOError at 0xb7eeb47c>, 'hasattr': <built-in function hasattr>,
'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>,
'raw_input': <built-in function raw_input>, 'SyntaxWarning': <class
exceptions.SyntaxWarning at 0xb7eebf5c>, 'compile': <built-in function compile>,
'ArithmeticError': <class exceptions.ArithmeticError at 0xb7eeb98c>, 'str':
<type 'str'>, 'property': <type 'property'>, 'MemoryError': <class
exceptions.MemoryError at 0xb7eebe0c>, 'int': <type 'int'>, '__import__':
<built-in function __import__>, 'KeyError': <class exceptions.KeyError at
0xb7eeb95c>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning':
<class exceptions.PendingDeprecationWarning at 0xb7eebf2c>, 'file': <type
'file'>, 'EnvironmentError': <class exceptions.EnvironmentError at 0xb7eeb41c>,
'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError':
<class exceptions.OSError at 0xb7eeb4dc>, 'DeprecationWarning': <class
exceptions.DeprecationWarning at 0xb7eebecc>, 'min': <built-in function min>,
'execfile': <built-in function execfile>, 'complex': <type 'complex'>, 'bool':
<type 'bool'>, 'ValueError': <class exceptions.ValueError at 0xb7eebb0c>,
'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer':
<type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>,
'TabError': <class exceptions.TabError at 0xb7eeb83c>, 'callable': <built-in
function callable>, 'ZeroDivisionError': <class exceptions.ZeroDivisionError at
0xb7eeba1c>, 'eval': <built-in function eval>, '__debug__': True,
'IndentationError': <class exceptions.IndentationError at 0xb7eeb80c>,
'AssertionError': <class exceptions.AssertionError at 0xb7eeb89c>,
'classmethod': <type 'classmethod'>, 'UnboundLocalError': <class
exceptions.UnboundLocalError at 0xb7eeb6bc>, 'NotImplementedError': <class
exceptions.NotImplementedError at 0xb7eeb5cc>, 'AttributeError': <class
exceptions.AttributeError at 0xb7eeb74c>, 'OverflowError': <class
exceptions.OverflowError at 0xb7eeb9bc>}
PO_CONFIG: None
__file__: None
PO_GHOST: None
miscutils: None
TS_AVAILABLE: None
TS_ERASE: None
PO_REMOTEPKG: None
BOOLEAN_STATES: None
__name__: None
TS_REMOVE_STATES: None
PO_INSTALLEDPKG: None
TYPE_INTERFACE: None
TS_OBSOLETING: None
PLUG_OPT_INT: None
TR_UPDATEDBY: None
PLUG_OPT_FLOAT: None
PLUG_OPT_WHERE_ALL: None
TS_OBSOLETED: None
PO_FILE: None
TR_UPDATES: None
PLUG_OPT_STRING: None
PLUG_OPT_BOOL: None
os: None
TR_OBSOLETEDBY: None
PO_DOC: None
TYPE_CORE: None


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

How reproducible:
Always

Additional info:
Type yum in terminal also cause the error:
[root@dhcp-0-179 ~]# yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 85, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 183, in getOptionsConfig
    errorlevel=opts.errorlevel)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 123, in
doConfigSetup
    startupconf.pluginconfpath)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 227, in
doPluginSetup
    plugin_types, confpath)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 128, in __init__
    self._importplugins(types)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 169, in
_importplugins
    self._loadplugin(modulefile, types)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 185, in _loadplugin
    module = imp.load_module(modname, fp, pathname, description)
  File "/usr/lib/yum-plugins/installonlyn.py", line 23, in ?
    from yum.packages import YumInstalledPackage, comparePoEVR
ImportError: cannot import name comparePoEVR
You have new mail in /var/spool/mail/root
Comment 1 Tom Tromey 2006-09-05 03:57:05 EDT
This was fixed by yum-2.9.5-4.
Of course you can't fix it using yum :)
I had to download the new yum and yum-updatesd RPMs from the web
site and install them using rpm.

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