AttributeError: 'Munch' object has no attribute 'runtime_dependencies'
File "__init__.py", line 116, in __getattr__
return object.__getattribute__(self, k)
KeyError: 'runtime_dependencies'
File "__init__.py", line 119, in __getattr__
return self[k]
AttributeError: runtime_dependencies
(2 additional frame(s) were not displayed)
...
File "packit_service/worker/helpers/build/copr_build.py", line 910, in create_or_update_copr_project
self.api.copr_helper.create_or_update_copr_project(
File "backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
File "packit/copr_helper.py", line 301, in create_or_update_copr_project
fields_to_change = self.get_fields_to_change(
File "packit/copr_helper.py", line 481, in get_fields_to_change
and copr_proj.runtime_dependencies != runtime_dependencies
File "__init__.py", line 121, in __getattr__
raise AttributeError(k)
Sentry Issue: PCKT-002-PACKIT-SERVICE-CPY
Result of #2720
Currently set
runtime_dependenciesneeds to be handled in a different way:runtime_dependenciesduring creation and editing, butruntime_depsas a getter…list(usessetto get rid of duplicates, n.b. Python’s implementation ofset()is hash set, i.e., not even the order of the elements is guaranteed, this should be ideally also handled on Copr’s side)