Bug 1440246 - [abrt] rpmlint: b2s(): Pkg.py:48:b2s:AttributeError: 'str' object has no attribute 'decode'
Summary: [abrt] rpmlint: b2s(): Pkg.py:48:b2s:AttributeError: 'str' object has no attr...
Keywords:
Status: CLOSED DUPLICATE of bug 1439941
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
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-07 16:26 UTC by Jared Smith
Modified: 2017-04-07 17:01 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-04-07 17:01:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (891 bytes, text/plain)
2017-04-07 16:26 UTC, Jared Smith
no flags Details
File: cgroup (355 bytes, text/plain)
2017-04-07 16:26 UTC, Jared Smith
no flags Details
File: environ (3.68 KB, text/plain)
2017-04-07 16:26 UTC, Jared Smith
no flags Details
File: mountinfo (3.78 KB, text/plain)
2017-04-07 16:26 UTC, Jared Smith
no flags Details
File: namespaces (102 bytes, text/plain)
2017-04-07 16:26 UTC, Jared Smith
no flags Details
File: open_fds (557 bytes, text/plain)
2017-04-07 16:26 UTC, Jared Smith
no flags Details

Description Jared Smith 2017-04-07 16:26:09 UTC
Description of problem:
Trying to run rpmlint on an SRPM or RPM package throws this error.

Version-Release number of selected component:
rpmlint-1.9-8.fc27

Additional info:
reporter:       libreport-2.9.1
cmdline:        /usr/bin/python3 -ttOu /usr/bin/rpmlint /home/jsmith/Build/RPMS/x86_64/mraa-1.5.1-3.fc27.x86_64.rpm /home/jsmith/Build/RPMS/x86_64/python3-iio-1.5.1-3.fc27.x86_64.rpm
crash_function: b2s
exception_type: AttributeError
executable:     /usr/bin/rpmlint
kernel:         4.11.0-0.rc2.git1.1.fc27.x86_64
runlevel:       N 5
type:           Python3
uid:            1975

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: 'data'

Comment 1 Jared Smith 2017-04-07 16:26:17 UTC
Created attachment 1269817 [details]
File: backtrace

Comment 2 Jared Smith 2017-04-07 16:26:18 UTC
Created attachment 1269818 [details]
File: cgroup

Comment 3 Jared Smith 2017-04-07 16:26:19 UTC
Created attachment 1269819 [details]
File: environ

Comment 4 Jared Smith 2017-04-07 16:26:21 UTC
Created attachment 1269820 [details]
File: mountinfo

Comment 5 Jared Smith 2017-04-07 16:26:22 UTC
Created attachment 1269821 [details]
File: namespaces

Comment 6 Jared Smith 2017-04-07 16:26:23 UTC
Created attachment 1269822 [details]
File: open_fds

Comment 7 Ville Skyttä 2017-04-07 17:01:56 UTC

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


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