Bug 1259980 - mock-scm does not work
Summary: mock-scm does not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: epel7
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: 2015-09-04 02:48 UTC by Dennis Jacobfeuerborn
Modified: 2015-09-04 06:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-04 06:26:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dennis Jacobfeuerborn 2015-09-04 02:48:25 UTC
I'm trying to switch from mock builds using SRPMS to builds that are git based but after installing mock-scm and enabling the respective options in the config file mock immediately terminates with an error:

INFO: mock.py version 1.2.10 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
ERROR: 'module' object has no attribute 'scm'
Traceback (most recent call last):
  File "/usr/sbin/mock", line 831, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 653, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 662, in run_command
    scmWorker = mockbuild.scm.scmWorker(log, config_opts['scm_opts'], config_opts['macros'])
AttributeError: 'module' object has no attribute 'scm'

Comment 1 Miroslav Suchý 2015-09-04 06:26:54 UTC
This is fixed in mock-1.2.11. With this version you get nice error:
 ERROR: Mock SCM module not installed: cannot import name 'scm'
which means that you need to install package mock-scm.


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