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'
Created attachment 1269817 [details] File: backtrace
Created attachment 1269818 [details] File: cgroup
Created attachment 1269819 [details] File: environ
Created attachment 1269820 [details] File: mountinfo
Created attachment 1269821 [details] File: namespaces
Created attachment 1269822 [details] File: open_fds
*** This bug has been marked as a duplicate of bug 1439941 ***