Bug 1441988 - AttributeError: 'str' object has no attribute 'decode'
Summary: AttributeError: 'str' object has no attribute 'decode'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1442317 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-13 09:03 UTC by Jens Petersen
Modified: 2017-04-17 20:53 UTC (History)
9 users (show)

Fixed In Version: rpmlint-1.9-9.fc25
Clone Of:
Environment:
Last Closed: 2017-04-17 20:53:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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