Bug 788266 - [abrt] yum-3.4.3-7.fc16: yummain.py:113:main:NameError: global name 'close' is not defined
Summary: [abrt] yum-3.4.3-7.fc16: yummain.py:113:main:NameError: global name 'close' i...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2eee593de1fba55c90063a74dab...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-07 22:34 UTC by Vincent passaro
Modified: 2014-01-21 23:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-02 08:50:16 UTC
Type: ---


Attachments (Terms of Use)

Description Vincent passaro 2012-02-07 22:34:45 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        /usr/bin/python /usr/bin/yum search visio
executable:     /usr/bin/yum
kernel:         3.2.2-1.fc16.x86_64
reason:         yummain.py:113:main:NameError: global name 'close' is not defined
time:           Tue 07 Feb 2012 10:59:59 AM PST
uid:            1000

backtrace:
:yummain.py:113:main:NameError: global name 'close' is not defined
:
: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 309, in user_main
:    errcode = main(args)
:  File "/usr/share/yum-cli/yummain.py", line 113, in main
:    close(f)
:NameError: global name 'close' is not defined
:
:Local variables in innermost frame:
:exFatal: <function exFatal at 0xd928c0>
:f: <open file '.', mode 'r' at 0xd788a0>
:args: ['search', 'visio']
:verbose_logger: <logging.Logger object at 0xd8fbd0>
:unlock: <function unlock at 0xd92938>
:base: <cli.YumBaseCli object at 0xd8fc10>
:rpmdb_warn_checks: <function rpmdb_warn_checks at 0xd929b0>
:exPluginExit: <function exPluginExit at 0xd92848>
:exUserCancel: <function exUserCancel at 0xd92758>
:logger: <logging.Logger object at 0xca4ad0>
:exIOError: <function exIOError at 0xd927d0>

comment:
:Executed yum search. 
:
:Error happens. 

smolt_data:
:
:
:General
:=================================
:UUID: 5cbadf5e-4b03-4052-83f0-12ca8e7ecd2e
:OS: Fedora release 16 (Verne)
:Default run level: Unknown
:Language: en_US.utf8
:Platform: x86_64
:BogoMIPS: 4385.47
:CPU Vendor: GenuineIntel
:CPU Model: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
:CPU Stepping: 7
:CPU Family: 6
:CPU Model Num: 42
:Number of CPUs: 8
:CPU Speed: 2201
:System Memory: 15828
:System Swap: 17983
:Vendor: LENOVO
:System: 4270CTO ThinkPad W520
:Form factor: Notebook
:Kernel: 3.2.2-1.fc16.x86_64
:SELinux Enabled: 1
:SELinux Policy: targeted
:SELinux Enforce: Enforcing
:MythTV Remote: Unknown
:MythTV Role: Unknown
:MythTV Theme: Unknown
:MythTV Plugin: 
:MythTV Tuner: -1
:
:
:Devices
:=================================
:(32902:7247:6058:8655) pci, None, PCI/ISA, QM67 Express Chipset Family LPC Controller
:(4480:59427:6058:8655) pci, sdhci-pci, BASE, N/A
:(32902:294:6058:8657) pci, i915, VIDEO, 2nd Generation Core Processor Family Integrated Graphics Controller
:(32902:7190:6058:8655) pci, pcieport, PCI/PCI, 6 Series/C200 Series Chipset Family PCI Express Root Port 4
:(32902:7184:6058:8655) pci, pcieport, PCI/PCI, 6 Series/C200 Series Chipset Family PCI Express Root Port 1
:(32902:7186:6058:8655) pci, pcieport, PCI/PCI, 6 Series/C200 Series Chipset Family PCI Express Root Port 2
:(32902:7196:6058:8655) pci, pcieport, PCI/PCI, 6 Series/C200 Series Chipset Family PCI Express Root Port 7
:(32902:7192:6058:8655) pci, pcieport, PCI/PCI, 6 Series/C200 Series Chipset Family PCI Express Root Port 5
:(32902:7200:6058:8655) pci, snd_hda_intel, MULTIMEDIA, 6 Series/C200 Series Chipset Family High Definition Audio Controller
:(32902:5378:6058:8654) pci, e1000e, ETHERNET, 82579LM Gigabit Network Connection
:(32902:7213:6058:8655) pci, ehci_hcd, USB, 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2
:(32902:7202:6058:8655) pci, i801_smbus, SERIAL, 6 Series/C200 Series Chipset Family SMBus Controller
:(4480:59442:6058:8655) pci, firewire_ohci, FIREWIRE, FireWire Host Controller
:(32902:133:32902:4881) pci, iwlwifi, NETWORK, Centrino Advanced-N 6205 AGN
:(32902:7171:6058:8655) pci, ahci, STORAGE, 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
:(32902:7229:6058:8655) pci, serial, 16550_SERIAL, 6 Series/C200 Series Chipset Family KT Controller
:(32902:7206:6058:8655) pci, ehci_hcd, USB, 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
:(32902:260:6058:8655) pci, agpgart-intel, HOST/PCI, 2nd Generation Core Processor Family DRAM Controller
:(32902:7226:6058:8655) pci, None, SIMPLE, 6 Series/C200 Series Chipset Family MEI Controller #1
:(4147:404:6058:8655) pci, xhci_hcd, USB, uPD720200 USB 3.0 Host Controller
:
:
:Filesystem Information
:=================================
:device mtpt type bsize frsize blocks bfree bavail file ffree favail
:-------------------------------------------------------------------
:/dev/mapper/vg_w520-lv_root / ext4 4096 4096 25961952 12234332 10934262 6504448 6054740 6054740
:/dev/sda1 /boot ext4 1024 1024 508745 409476 383876 128016 127787 127787
:/dev/sdb1 WITHHELD ext3 4096 4096 120176744 47772700 41667900 30531584 30189183 30189183
:/dev/mapper/vg_w520-lv_log /var/log ext4 4096 4096 523290 485999 459785 131072 130849 130849
:

Comment 1 Zdeněk Pavlas 2012-02-13 15:38:28 UTC
This has been fixed in commit 05a86271effaf9ddf25c3674d0103910920c6fd3
Have no idea why "else:" block got executed, as open(".") should always fail, raising EISDIR.

Comment 2 Fedora Admin XMLRPC Client 2012-04-27 15:26:54 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.


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