Bug 1441988

Summary: AttributeError: 'str' object has no attribute 'decode'
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: rpmlintAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: j, kevin, ngompa13, paul, rosset.filipe, tcallawa, tmz, twoerner, ville.skytta
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpmlint-1.9-9.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-17 20:53:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Petersen 2017-04-13 09:03:53 UTC
Description of problem:
rpmlint is backtracing for me when run on an rpm.

Version-Release number of selected component (if applicable):
rpmlint-1.9-8.fc25

How reproducible:
100%

Steps to Reproduce:
1. rpmlint <name-version-release.arch.rpm>

Actual results:
0 packages and 0 specfiles checked; 0 errors, 0 warnings.
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'

Expected results:
no error

Comment 1 Ville Skyttä 2017-04-13 09:25:05 UTC

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

Comment 2 Jens Petersen 2017-04-14 09:08:45 UTC
*** Bug 1442317 has been marked as a duplicate of this bug. ***

Comment 3 Jens Petersen 2017-04-14 09:09:53 UTC
Reopening since this is not fixed or built yet for F25.

Comment 4 Fedora Update System 2017-04-15 07:37:57 UTC
rpmlint-1.9-9.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-30c8498f8a

Comment 5 Fedora Update System 2017-04-16 00:53:15 UTC
rpmlint-1.9-9.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-30c8498f8a

Comment 6 Fedora Update System 2017-04-17 20:53:00 UTC
rpmlint-1.9-9.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.