get_profile_names bindings are not functional as of module-build-service-2.24.0 and libmodulemd-2.6.0
Signed-off-by: Athos Ribeiro athoscr@fedoraproject.org
Hi,
Our OSBS atomic-reactor test suite started failing for the latest flatpak-module-tools release: https://github.com/containerbuildsystem/atomic-reactor/pull/1236
While we were installing the package from pypi, I kept hitting the same error in local tests, while using module-build-service-2.24.0 and libmodulemd-2.6.0: AttributeError: 'Module' object has no attribute 'get_profile_names'
AttributeError: 'Module' object has no attribute 'get_profile_names'
When applying this patch, I still get error for the Dependency get_buildtime_modules(). Maybe I have the wrong version of some other lib?
get_buildtime_modules()
Unfortunately, libmodulemd >= 2.0 has two incompatible api's ... You can pick which one to use, but only one can be used in a python process. I needed to switch flatpak-module-tools to use the real 2.0 API for module-build-service compatibility. I think your patch is switching back some portion hit by tests to the 1.0 API.
I have a patch for atomic-reactor to make it use the 2.0 api, but was holding off on a PR until libmodulemd 2 is available in epel7. https://bugzilla.redhat.com/show_bug.cgi?id=1724271
For now, the right thing to do, I think, is to specify flatpak-module-tools < 0.10 in requirements-flatpak.txt. (I'm on vacation through Wednesday, or would submit a proposal for that this morning)
Thanks for the reply, @otaylor!!!! Closing this PR!
Pull-Request has been closed by athoscr
get_profile_names bindings are not functional as of
module-build-service-2.24.0 and libmodulemd-2.6.0
Signed-off-by: Athos Ribeiro athoscr@fedoraproject.org