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'
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.