Bug 1442317 - [abrt] rpmlint: Pkg.py:48:b2s:AttributeError: 'str' object has no attribute 'decode'
Summary: [abrt] rpmlint: Pkg.py:48:b2s:AttributeError: 'str' object has no attribute '...
Keywords:
Status: CLOSED DUPLICATE of bug 1441988
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:91352554a052cd0c572228096d7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-14 04:15 UTC by Filipe Rosset
Modified: 2017-04-14 09:08 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-14 05:28:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (935 bytes, text/plain)
2017-04-14 04:15 UTC, Filipe Rosset
no flags Details
File: environ (4.25 KB, text/plain)
2017-04-14 04:16 UTC, Filipe Rosset
no flags Details

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 ***


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