[Bug 2106472] Re: python-pysaml2 7.1.0-0ubuntu3 fails to build from source

Benjamin Drung 2106472 at bugs.launchpad.net
Tue Apr 8 10:13:02 UTC 2025


Explicitly depending on python3-six will reveal more issues:

```
==================================== ERRORS ====================================
__________________ ERROR collecting tests/test_75_mongodb.py ___________________
ImportError while importing test module '/build/reproducible-path/python-pysaml2-7.1.0/tests/test_75_mongodb.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_75_mongodb.py:8: in <module>
    from saml2.mongo_store import EptidMDB
src/saml2/mongo_store.py:6: in <module>
    from pymongo.mongo_replica_set_client import MongoReplicaSetClient
E   ModuleNotFoundError: No module named 'pymongo.mongo_replica_set_client'
______________ ERROR collecting tests/test_76_metadata_in_mdb.py _______________
ImportError while importing test module '/build/reproducible-path/python-pysaml2-7.1.0/tests/test_76_metadata_in_mdb.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_76_metadata_in_mdb.py:5: in <module>
    from saml2.mongo_store import export_mdstore_to_mongo_db
src/saml2/mongo_store.py:6: in <module>
    from pymongo.mongo_replica_set_client import MongoReplicaSetClient
E   ModuleNotFoundError: No module named 'pymongo.mongo_replica_set_client'
```

7.4.2-2 removed that import.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-pysaml2 in Ubuntu.
https://bugs.launchpad.net/bugs/2106472

Title:
  python-pysaml2 7.1.0-0ubuntu3 fails to build from source

Status in python-pysaml2 package in Ubuntu:
  New

Bug description:
  python-pysaml2 7.1.0-0ubuntu3 fails to build from source:

  ```
  __________________ ERROR collecting tests/test_00_xmldsig.py ___________________
  ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_00_xmldsig.py'.
  Hint: make sure your test modules/packages have valid Python names.
  Traceback:
  /usr/lib/python3.13/importlib/__init__.py:88: in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
  tests/test_00_xmldsig.py:14: in <module>
      import saml2.xmldsig as ds
  src/saml2/__init__.py:22: in <module>
      import six
  E   ModuleNotFoundError: No module named 'six'
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pysaml2/+bug/2106472/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list