Bug 1442317

Summary: [abrt] rpmlint: Pkg.py:48:b2s:AttributeError: 'str' object has no attribute 'decode'
Product: [Fedora] Fedora Reporter: Filipe Rosset <rosset.filipe>
Component: rpmlintAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: j, kevin, tcallawa, tmz, twoerner, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/078ae97657af38fc74528e41a8ab5257adf0b42b
Whiteboard: abrt_hash:91352554a052cd0c572228096d7214270a5ca301;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-14 05:28:23 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 Filipe Rosset 2017-04-14 04:15:48 UTC
Version-Release number of selected component:
rpmlint-1.9-8.fc25

Additional info:
reporter:       libreport-2.8.0
cmdline:        /usr/bin/python3 -ttOu /usr/bin/rpmlint /home/filiperosset/rpmbuild/extras/aime/aime.spec /home/filiperosset/rpmbuild/extras/aime/aime-8.20170326-1.fc27.src.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-8.20170326-1.fc27.x86_64.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-devel-8.20170326-1.fc27.x86_64.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-debuginfo-8.20170326-1.fc27.x86_64.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-8.20170326-1.fc27.x86_64.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-devel-8.20170326-1.fc27.x86_64.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-debuginfo-8.20170326-1.fc27.x86_64.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-8.20170326-1.fc27.x86_64.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-devel-8.20170326-1.fc27.x86_64.rpm /home/filiperosset/rpmbuild/extras/aime/x86_64/aime-debuginfo-8.20170326-1.fc27.x86_64.rpm
executable:     /usr/bin/rpmlint
kernel:         4.10.9-200.fc25.x86_64
pkg_fingerprint: 4089 D8F2 FDB1 9C98
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
Pkg.py:48:b2s:AttributeError: 'str' object has no attribute 'decode'

Traceback (most recent call last):
  File "/usr/bin/rpmlint", line 371, in <module>
    main()
  File "/usr/bin/rpmlint", line 160, in main
    runChecks(pkg)
  File "/usr/bin/rpmlint", line 217, in runChecks
    check.check(pkg)
  File "/usr/share/rpmlint/AbstractCheck.py", line 50, in check
    return self.check_binary(pkg)
  File "/usr/share/rpmlint/DistributionCheck.py", line 40, in check_binary
    for fname in pkg.files():
  File "/usr/share/rpmlint/Pkg.py", line 611, in files
    self._gatherFilesInfo()
  File "/usr/share/rpmlint/Pkg.py", line 721, in _gatherFilesInfo
    pkgfile.magic = b2s(_magic.descriptor(fd))
  File "/usr/share/rpmlint/Pkg.py", line 48, in b2s
    return b.decode(errors='replace')
AttributeError: 'str' object has no attribute 'decode'

Local variables in innermost frame:
b: 'gzip compressed data, max compression, from Unix'

Potential duplicate: bug 1440246

Comment 1 Filipe Rosset 2017-04-14 04:15:57 UTC
Created attachment 1271611 [details]
File: backtrace

Comment 2 Filipe Rosset 2017-04-14 04:16:03 UTC
Created attachment 1271612 [details]
File: environ

Comment 3 Ville Skyttä 2017-04-14 05:28:23 UTC

*** This bug has been marked as a duplicate of bug 1439941 ***

Comment 4 Jens Petersen 2017-04-14 09:08:45 UTC

*** This bug has been marked as a duplicate of bug 1441988 ***