Bug 1052105

Summary: [abrt] fslint: fslint-gui:35:puts:TypeError: unsupported operand type(s) for +: 'GetoptError' and 'str'
Product: [Fedora] Fedora Reporter: Stanislav Graf <sgraf>
Component: fslintAssignee: Pádraig Brady <p>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: lnie, pbrady, p
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/24327be114b0dcc242ba0d581da56caa41cf074e
Whiteboard: abrt_hash:ae3b3fda4141189dd45967fd27de986ba10b5c6c
Fixed In Version: fslint-2.44-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-22 23:06:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Stanislav Graf 2014-01-13 10:33:59 UTC
Description of problem:
Running as root:
# fslint-gui -h
Traceback (most recent call last):
  File "/usr/bin/fslint-gui", line 174, in <module>
    puts(msg)
  File "/usr/bin/fslint-gui", line 35, in puts
    sys.stdout.write(string+'\n')
TypeError: unsupported operand type(s) for +: 'GetoptError' and 'str'

Version-Release number of selected component:
fslint-2.42-7.fc20

Additional info:
reporter:       libreport-2.1.11
cmdline:        python /usr/bin/fslint-gui -h
executable:     /usr/bin/fslint-gui
kernel:         3.12.6-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
fslint-gui:35:puts:TypeError: unsupported operand type(s) for +: 'GetoptError' and 'str'

Traceback (most recent call last):
  File "/usr/bin/fslint-gui", line 174, in <module>
    puts(msg)
  File "/usr/bin/fslint-gui", line 35, in puts
    sys.stdout.write(string+'\n')
TypeError: unsupported operand type(s) for +: 'GetoptError' and 'str'

Local variables in innermost frame:
string: GetoptError('option -h not recognized', 'h')

Comment 1 Stanislav Graf 2014-01-13 10:34:04 UTC
Created attachment 849251 [details]
File: backtrace

Comment 2 Stanislav Graf 2014-01-13 10:34:06 UTC
Created attachment 849252 [details]
File: environ

Comment 3 Pádraig Brady 2014-01-13 11:48:07 UTC
This is handled with this upstream fix:
http://code.google.com/p/fslint/source/detail?r=283
I'll do a release ASAP

Comment 4 Fedora Update System 2014-01-13 15:58:57 UTC
fslint-2.44-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/fslint-2.44-1.fc19

Comment 5 Fedora Update System 2014-01-13 15:59:54 UTC
fslint-2.44-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/fslint-2.44-1.fc20

Comment 6 lnie 2014-01-14 06:23:54 UTC
tested with fslint-2.44-1.fc20,the crash is gone

Comment 7 Fedora Update System 2014-01-14 08:36:14 UTC
Package fslint-2.44-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fslint-2.44-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0730/fslint-2.44-1.fc20
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2014-01-22 23:06:01 UTC
fslint-2.44-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2014-01-22 23:08:14 UTC
fslint-2.44-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.