Bug 1267161 - TypeError: 'str' does not support the buffer interface
TypeError: 'str' does not support the buffer interface
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: mock (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Suchý
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-29 04:04 EDT by Vít Ondruch
Modified: 2016-01-03 18:26 EST (History)
7 users (show)

See Also:
Fixed In Version: mock-1.2.14-1.fc23 mock-1.2.14-1.el6 mock-1.2.14-1.fc22 mock-1.2.14-1.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-27 13:21:08 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Vít Ondruch 2015-09-29 04:04:54 EDT
Description of problem:
$ mock -r ruby ruby-2.3.0-0.5.r51856.fc24.src.rpm 
INFO: mock.py version 1.2.13 starting (python version = 3.4.3)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(ruby-2.3.0-0.5.r51856.fc24.src.rpm)  Config(ruby)
Start: clean chroot
ERROR: Exception(ruby-2.3.0-0.5.r51856.fc24.src.rpm) Config(ruby) 0 minutes 0 seconds
INFO: Results and/or logs in: /var/lib/mock/ruby/result
ERROR: 'str' does not support the buffer interface
Traceback (most recent call last):
  File "/usr/sbin/mock", line 649, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 729, in run_command
    do_rebuild(config_opts, commands, buildroot, args)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 495, in do_rebuild
    post=post_build, clean=clean)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 438, in rebuild_generic
    commands.clean()
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.4/site-packages/mockbuild/backend.py", line 72, in clean
    self.buildroot.delete()
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.4/site-packages/mockbuild/buildroot.py", line 556, in delete
    util.orphansKill(p)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.4/site-packages/mockbuild/util.py", line 186, in orphansKill
    for name in vm_list.split("\n"):
TypeError: 'str' does not support the buffer interface

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/sbin/mock", line 833, in <module>
    main()
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 651, in main
    buildroot.finalize()
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.4/site-packages/mockbuild/buildroot.py", line 540, in finalize
    util.orphansKill(self.make_chroot_path())
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.4/site-packages/mockbuild/util.py", line 186, in orphansKill
    for name in vm_list.split("\n"):
TypeError: 'str' does not support the buffer interface



Version-Release number of selected component (if applicable):
$ rpm -q mock
mock-1.2.13-2.fc24.noarch


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
This seems to be Python3 incompatibility introduced by bug 1171737. I can use --old-chroot as a workaround.
Comment 1 Miroslav Suchý 2015-09-29 04:33:42 EDT
I can confirm. This does not happen on F22, it hapen only on F23+ where mock use python3
Comment 2 Miroslav Suchý 2015-10-05 03:53:01 EDT
Fixed in commit:
* 789274c (origin/devel) decode shell output when running under Python3 [RHBZ#1267161]
Comment 3 Dominik 'Rathann' Mierzejewski 2015-10-12 09:04:50 EDT
This happens on F22 with mock-1.2.13-2.fc22. Downgrading to mock-1.2.8-1.fc22 makes it work again. How did that end up in stable updates?
Comment 4 Dominik 'Rathann' Mierzejewski 2015-11-17 05:03:46 EST
Still reproducible on F23:
mock-1.2.13-2.fc23.noarch

I don't see any new updates for mock.
Comment 5 Fedora Update System 2015-11-24 18:31:52 EST
mock-1.2.14-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-a295f19cae
Comment 6 Fedora Update System 2015-11-24 18:31:55 EST
mock-1.2.14-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-6d1cc55330
Comment 7 Fedora Update System 2015-11-24 18:32:24 EST
mock-1.2.14-1.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b4d491366d
Comment 8 Fedora Update System 2015-11-24 18:32:26 EST
mock-1.2.14-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-fd9c932e3a
Comment 9 Fedora Update System 2015-11-24 18:32:57 EST
mock-1.2.14-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-3ef940024e
Comment 10 Fedora Update System 2015-11-25 19:51:15 EST
mock-1.2.14-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update mock'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-fd9c932e3a
Comment 11 Fedora Update System 2015-11-25 19:53:18 EST
mock-1.2.14-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update mock'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-a295f19cae
Comment 12 Fedora Update System 2015-11-25 20:22:02 EST
mock-1.2.14-1.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update mock'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b4d491366d
Comment 13 Fedora Update System 2015-11-25 21:25:36 EST
mock-1.2.14-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update mock'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-3ef940024e
Comment 14 Fedora Update System 2015-11-25 21:54:34 EST
mock-1.2.14-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update mock'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-6d1cc55330
Comment 15 Fedora Update System 2015-11-27 13:20:38 EST
mock-1.2.14-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 16 Fedora Update System 2016-01-03 15:26:26 EST
mock-1.2.14-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
Comment 17 Fedora Update System 2016-01-03 16:20:14 EST
mock-1.2.14-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Comment 18 Fedora Update System 2016-01-03 18:26:11 EST
mock-1.2.14-1.el7 has been pushed to the Fedora EPEL 7 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.