Bug 744297

Summary: [abrt] sx-2.03-9.fc15: __init__.py:190:_checkLevel:TypeError: Level not an integer or a valid string: [20, 21, 22, 30, 40, 31, 50, 10]
Product: [Fedora] Fedora Reporter: Felipe Aranda G <felipe>
Component: sxAssignee: Niels de Vos <ndevos>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: adam.stokes, ndevos, plambri, pruzicka
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:678c0f03d8d3a1d3f9ca75f9cb45d7ae7629b5ef
Fixed In Version: sx-2.03-10.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-25 02:15:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 756541    
Attachments:
Description Flags
Backported patch from upstream none

Description Felipe Aranda G 2011-10-07 19:26:17 UTC
abrt version: 2.0.3
architecture:   x86_64
cmdline:        
component:      sx
executable:     /usr/bin/sxconsole
kernel:         2.6.40.6-0.fc15.x86_64
os_release:     Fedora release 15 (Lovelock)
package:        sx-2.03-9.fc15
reason:         __init__.py:190:_checkLevel:TypeError: Level not an integer or a valid string: [20, 21, 22, 30, 40, 31, 50, 10]
time:           Fri Oct  7 16:12:22 2011
uid:            500
username:       faranda

backtrace:
:__init__.py:190:_checkLevel:TypeError: Level not an integer or a valid string: [20, 21, 22, 30, 40, 31, 50, 10]
:
:Traceback (most recent call last):
:  File "/usr/bin/sxconsole", line 806, in <module>
:    disableConsoleLog=False)
:  File "/usr/lib/python2.7/site-packages/sx/logwriter.py", line 76, in __init__
:    logging.DEBUG])
:  File "/usr/lib64/python2.7/logging/__init__.py", line 1108, in setLevel
:    self.level = _checkLevel(level)
:  File "/usr/lib64/python2.7/logging/__init__.py", line 190, in _checkLevel
:    raise TypeError("Level not an integer or a valid string: %r" % level)
:TypeError: Level not an integer or a valid string: [20, 21, 22, 30, 40, 31, 50, 10]
:
:Local variables in innermost frame:
:level: [20, 21, 22, 30, 40, 31, 50, 10]

comment:
:First I install sx software
:# yum install sx
:
:Seccond, I run sxconsole
:# sxconsole --help

event_log:
:2011-10-07-16:25:04> Empty login or password, please check your configuration
:2011-10-07-16:25:04* (exited with 1)

Comment 1 Niels de Vos 2011-10-11 07:49:24 UTC
Created attachment 527389 [details]
Backported patch from upstream

Do not call logging.root.setLevel(<list>), it has been removed upstream. This change seems needed for at least python-2.7.

Comment 2 Fedora Update System 2011-10-11 08:18:12 UTC
sx-2.03-10.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/sx-2.03-10.fc15

Comment 3 Fedora Update System 2011-10-13 00:50:46 UTC
Package sx-2.03-10.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sx-2.03-10.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14193
then log in and leave karma (feedback).

Comment 4 Pierguido Lambri 2011-10-19 10:42:06 UTC
Package: sx-2.03-9.fc15
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
Run sx on Fedora 16 Beta

Comment 5 Fedora Update System 2011-10-20 08:16:49 UTC
sx-2.03-10.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/sx-2.03-10.fc16

Comment 6 Niels de Vos 2011-11-23 22:26:21 UTC
*** Bug 756541 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2011-11-25 02:15:39 UTC
sx-2.03-10.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2011-12-10 19:54:14 UTC
sx-2.03-10.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.