Bug 1694159 - EPEL6: AttributeError: 'module' object has no attribute 'check_output'
Summary: EPEL6: AttributeError: 'module' object has no attribute 'check_output'
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-29 16:45 UTC by Miro Hrončok
Modified: 2019-04-19 18:49 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-04-19 18:49:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-03-29 16:45:56 UTC
$ rpm -q mock
mock-1.3.5-1.el6.noarch

$ mock -r fedora-rawhide-x86_64 --init --new-chroot
INFO: mock.py version 1.3.5 starting (python version = 2.6.6)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
Start: clean chroot
ERROR: 'module' object has no attribute 'check_output'
Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 886, in <module>
    main()
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 704, in main
    buildroot.finalize()
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/buildroot.py", line 544, in finalize
    util.orphansKill(self.make_chroot_path())
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 202, in orphansKill
    vm_list = subprocess.check_output(["/usr/bin/machinectl", "list", "--no-pager"])
AttributeError: 'module' object has no attribute 'check_output'



The code in there doesn't appear to be Python 2.6 compatible.

Comment 1 Miroslav Suchý 2019-04-19 17:54:09 UTC
I am very afraid that there will be no other release or fix for EL6. :( Please use EL7 or higher.

Comment 2 Miro Hrončok 2019-04-19 18:49:37 UTC
I was trying to use mock on EL6 to test rawhide Python build with EL6 kernel. I decided to give up anyway.


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