#358 [traceback] during calling python2 module_build_service/manage.py build_module_locally
Closed Opened by phracek.

I am trying to build haproxy module locally with command:

$ sudo python module_build_service/manage.py build_module_locally file:///home/phracek/work/programming/container-images/haproxy?#00319373a3d1568d2e72a3bfc819de9ad91269e6

and unfortunately it fails with traceback:

Traceback (most recent call last):
  File "module_build_service/manage.py", line 342, in <module>
    manager_wrapper()
  File "module_build_service/manage.py", line 339, in manager_wrapper
    manager.run()
  File "/usr/lib/python2.7/site-packages/flask_script/__init__.py", line 412, in run
    result = self.handle(sys.argv[0], sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/flask_script/__init__.py", line 383, in handle
    res = handle(*args, **config)
  File "/usr/lib/python2.7/site-packages/flask_script/commands.py", line 216, in __call__
    return self.run(*args, **kwargs)
  File "module_build_service/manage.py", line 175, in build_module_locally
    submit_module_build_from_scm(username, url, allow_local_url=True)
  File "/home/phracek/work/programming/fm-orchestrator/module_build_service/utils.py", line 551, in submit_module_build_from_scm
    return submit_module_build(username, url, mmd, scm, yaml)
  File "/home/phracek/work/programming/fm-orchestrator/module_build_service/utils.py", line 590, in submit_module_build
    record_component_builds(scm, mmd, module)
  File "/home/phracek/work/programming/fm-orchestrator/module_build_service/utils.py", line 477, in record_component_builds
    format_mmd(mmd, module.scmurl)
  File "/home/phracek/work/programming/fm-orchestrator/module_build_service/utils.py", line 404, in format_mmd
    mmd.xmd['mbs'] = {'scmurl': scmurl}
TypeError: <flask_script.commands.Command object at 0x7fda7248e490>: 'NoneType' object does not support item assignment
-1 ~/work/programming/fm-orchestrator [master ↓·2|] 
15:23 $ 

I have set up setenforce to 0.


You need to update your version of the modulemd lib.

Let us know if that doesn't fix it.

Metadata Update from @ralph:
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/mbs/issues/358

Please continue any further discussion there.

Metadata