The utility in src/maasserver/utils/jsenums.py is used when building the package. It uses the map_enum utility that recently from moved over to src/provisioningserver/utils/__init__.py. The problem with that is that is means that all the modules imported by src/provisioningserver/utils/__init__.py must be present as "build dependencies" in the packaging.
I see three possible solutions here: - Add all the required dependencies as build dependencies in the packaging. - Move map_enum in a place where it can be imported in isolation without triggering a ton of imports - Add a copy of the code of map_enum in src/maasserver/utils/jsenums.py instead of importing the shared map_enum. ** Summary changed: - MAAS requires explicit dependency on python-bson + Building the MAAS package fails with "ImportError: No module named bson" ** Changed in: maas (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346279 Title: Building the MAAS package fails with "ImportError: No module named bson" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1346279/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs