Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #352345

Bug#1058411: python-pykmip: FTBFS: AttributeError: <module 'ssl' from '/usr/lib/python3.12/ssl.py'> does not have the attribute 'wrap_socket'

From Lucas Nussbaum <lucas@debian.org>
Newsgroups linux.debian.bugs.rc
Subject Bug#1058411: python-pykmip: FTBFS: AttributeError: <module 'ssl' from '/usr/lib/python3.12/ssl.py'> does not have the attribute 'wrap_socket'
Date 2023-12-12 11:20 +0100
Message-ID <HK81P-d2y1-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Source: python-pykmip
Version: 0.10.0-5
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> make[1]: pyversions: No such file or directory
> py3versions: no X-Python3-Version in control file, using supported versions
> set -e ; for i in 3.12 3.11 ; do \
> 	PYTHONPATH=. PYTHON=python$i python$i -m coverage run --source=kmip/ -m pytest --strict kmip/tests/unit ; \
> done
> ============================= test session starts ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: pytest.ini
> collected 3394 items
> 
> kmip/tests/unit/test_kmip.py .                                           [  0%]
> kmip/tests/unit/core/test_config_helper.py ......                        [  0%]
> kmip/tests/unit/core/test_enums.py ..................                    [  0%]
> kmip/tests/unit/core/test_policy.py ...........                          [  1%]
> kmip/tests/unit/core/test_utils.py .....s.sssss                          [  1%]
> kmip/tests/unit/core/attributes/test_application_specific_information.py . [  1%]
> ..............                                                           [  1%]
> kmip/tests/unit/core/attributes/test_attributes.py ...ssss...ssss....... [  2%]
> ........................................................................ [  4%]
> ....................                                                     [  5%]
> kmip/tests/unit/core/attributes/test_digest.py ........................  [  5%]
> kmip/tests/unit/core/factories/test_attribute.py .                       [  5%]
> kmip/tests/unit/core/factories/test_attribute_values.py ..........ss.s.s [  6%]
> ....................s....                                                [  7%]
> kmip/tests/unit/core/factories/payloads/test_payload.py ................ [  7%]
> ...........................                                              [  8%]
> kmip/tests/unit/core/factories/payloads/test_request.py ................ [  8%]
> ..........................                                               [  9%]
> kmip/tests/unit/core/factories/payloads/test_response.py ............... [ 10%]
> ...........................                                              [ 10%]
> kmip/tests/unit/core/messages/test_messages.py ......................... [ 11%]
> ....                                                                     [ 11%]
> kmip/tests/unit/core/messages/contents/test_authentication.py .......... [ 12%]
> ......                                                                   [ 12%]
> kmip/tests/unit/core/messages/contents/test_protocol_version.py ........ [ 12%]
> .....................                                                    [ 13%]
> kmip/tests/unit/core/messages/payloads/test_activate.py ..........       [ 13%]
> kmip/tests/unit/core/messages/payloads/test_archive.py ................. [ 13%]
> .............                                                            [ 14%]
> kmip/tests/unit/core/messages/payloads/test_cancel.py .................. [ 14%]
> ...............                                                          [ 15%]
> kmip/tests/unit/core/messages/payloads/test_check.py ................... [ 15%]
> .................................                                        [ 16%]
> kmip/tests/unit/core/messages/payloads/test_create.py .................. [ 17%]
> ................................                                         [ 18%]
> kmip/tests/unit/core/messages/payloads/test_create_key_pair.py ......... [ 18%]
> .......................................................                  [ 20%]
> kmip/tests/unit/core/messages/payloads/test_decrypt.py ................. [ 20%]
> .................................                                        [ 21%]
> kmip/tests/unit/core/messages/payloads/test_delete_attribute.py ........ [ 21%]
> .................................                                        [ 22%]
> kmip/tests/unit/core/messages/payloads/test_derive_key.py .............. [ 23%]
> ...............................................                          [ 24%]
> kmip/tests/unit/core/messages/payloads/test_discover_versions.py ....... [ 24%]
> .............                                                            [ 25%]
> kmip/tests/unit/core/messages/payloads/test_encrypt.py ................. [ 25%]
> ......................................                                   [ 26%]
> kmip/tests/unit/core/messages/payloads/test_get.py ..................... [ 27%]
> ..............................                                           [ 28%]
> kmip/tests/unit/core/messages/payloads/test_get_attribute_list.py ...... [ 28%]
> ...............................................                          [ 29%]
> kmip/tests/unit/core/messages/payloads/test_get_attributes.py .......... [ 30%]
> ..........................................................               [ 31%]
> kmip/tests/unit/core/messages/payloads/test_get_usage_allocation.py .... [ 31%]
> ...............................                                          [ 32%]
> kmip/tests/unit/core/messages/payloads/test_locate.py .................. [ 33%]
> .....................................                                    [ 34%]
> kmip/tests/unit/core/messages/payloads/test_mac.py ...................   [ 35%]
> kmip/tests/unit/core/messages/payloads/test_modify_attribute.py ........ [ 35%]
> ............................                                             [ 36%]
> kmip/tests/unit/core/messages/payloads/test_obtain_lease.py ............ [ 36%]
> ..........................                                               [ 37%]
> kmip/tests/unit/core/messages/payloads/test_poll.py ...............      [ 37%]
> kmip/tests/unit/core/messages/payloads/test_query.py ................... [ 38%]
> ......................................................                   [ 39%]
> kmip/tests/unit/core/messages/payloads/test_recover.py ................. [ 40%]
> .............                                                            [ 40%]
> kmip/tests/unit/core/messages/payloads/test_register.py ................ [ 41%]
> ..................................                                       [ 42%]
> kmip/tests/unit/core/messages/payloads/test_rekey.py ................... [ 42%]
> ........................                                                 [ 43%]
> kmip/tests/unit/core/messages/payloads/test_rekey_key_pair.py .......... [ 43%]
> .                                                                        [ 43%]
> kmip/tests/unit/core/messages/payloads/test_revoke.py ............       [ 44%]
> kmip/tests/unit/core/messages/payloads/test_set_attribute.py ........... [ 44%]
> .................                                                        [ 44%]
> kmip/tests/unit/core/messages/payloads/test_sign.py .................... [ 45%]
> .....................                                                    [ 46%]
> kmip/tests/unit/core/messages/payloads/test_signature_verify.py ........ [ 46%]
> ..........................................................               [ 48%]
> kmip/tests/unit/core/misc/test_misc.py ...........                       [ 48%]
> kmip/tests/unit/core/misc/test_server_information.py ................    [ 48%]
> kmip/tests/unit/core/objects/test_attribute.py sssss.sssssss..s          [ 49%]
> kmip/tests/unit/core/objects/test_credentials.py ....................... [ 50%]
> ........................................................................ [ 52%]
> .......................................                                  [ 53%]
> kmip/tests/unit/core/objects/test_current_attribute.py ................  [ 53%]
> kmip/tests/unit/core/objects/test_extension_information.py ............. [ 54%]
> ............                                                             [ 54%]
> kmip/tests/unit/core/objects/test_new_attribute.py ................      [ 55%]
> kmip/tests/unit/core/objects/test_objects.py ........................... [ 55%]
> ........................................................................ [ 57%]
> ........................................................................ [ 60%]
> ........................................................................ [ 62%]
> ........................................................................ [ 64%]
> ...........................................................              [ 66%]
> kmip/tests/unit/core/primitives/test_base.py ..................s....     [ 66%]
> kmip/tests/unit/core/primitives/test_big_integer.py .................... [ 67%]
> ..                                                                       [ 67%]
> kmip/tests/unit/core/primitives/test_boolean.py ........................ [ 68%]
> ..                                                                       [ 68%]
> kmip/tests/unit/core/primitives/test_byte_string.py ................     [ 68%]
> kmip/tests/unit/core/primitives/test_date_time.py ......                 [ 68%]
> kmip/tests/unit/core/primitives/test_enumeration.py .................... [ 69%]
> ...                                                                      [ 69%]
> kmip/tests/unit/core/primitives/test_integer.py ........................ [ 70%]
> .........                                                                [ 70%]
> kmip/tests/unit/core/primitives/test_interval.py ...................     [ 70%]
> kmip/tests/unit/core/primitives/test_long_integer.py ................... [ 71%]
> ...........                                                              [ 71%]
> kmip/tests/unit/core/primitives/test_text_string.py ..............       [ 72%]
> kmip/tests/unit/core/secrets/test_certificate.py ...............         [ 72%]
> kmip/tests/unit/core/secrets/test_split_key.py .s....................... [ 73%]
> .....                                                                    [ 73%]
> kmip/tests/unit/pie/test_client.py ..................................... [ 74%]
> ........................................................................ [ 76%]
> .....                                                                    [ 76%]
> kmip/tests/unit/pie/test_exceptions.py .....                             [ 77%]
> kmip/tests/unit/pie/test_factory.py .........................            [ 77%]
> kmip/tests/unit/pie/objects/test_application_specific_information.py ... [ 77%]
> ........                                                                 [ 78%]
> kmip/tests/unit/pie/objects/test_certificate.py .............            [ 78%]
> kmip/tests/unit/pie/objects/test_cryptographic_object.py .....           [ 78%]
> kmip/tests/unit/pie/objects/test_key.py ......                           [ 78%]
> kmip/tests/unit/pie/objects/test_managed_object.py ........              [ 79%]
> kmip/tests/unit/pie/objects/test_object_group.py .........               [ 79%]
> kmip/tests/unit/pie/objects/test_opaque_object.py ...................... [ 80%]
> ..                                                                       [ 80%]
> kmip/tests/unit/pie/objects/test_private_key.py ........................ [ 80%]
> ...........                                                              [ 81%]
> kmip/tests/unit/pie/objects/test_public_key.py ......................... [ 81%]
> ..........                                                               [ 82%]
> kmip/tests/unit/pie/objects/test_secret_data.py ........................ [ 82%]
> ..                                                                       [ 82%]
> kmip/tests/unit/pie/objects/test_split_key.py .........................  [ 83%]
> kmip/tests/unit/pie/objects/test_sqltypes.py ...........                 [ 83%]
> kmip/tests/unit/pie/objects/test_symmetric_key.py ...................... [ 84%]
> ...........                                                              [ 84%]
> kmip/tests/unit/pie/objects/test_x509_certificate.py ................... [ 85%]
> ....                                                                     [ 85%]
> kmip/tests/unit/services/test_auth.py ..........                         [ 85%]
> kmip/tests/unit/services/test_kmip_client.py ........................... [ 86%]
> ..........................F..........                                    [ 87%]
> kmip/tests/unit/services/test_kmip_protocol.py ......                    [ 87%]
> kmip/tests/unit/services/server/test_config.py ......................... [ 88%]
> .                                                                        [ 88%]
> kmip/tests/unit/services/server/test_engine.py ......................... [ 89%]
> ..................s..................................................... [ 91%]
> ........................................................................ [ 93%]
> ...............                                                          [ 94%]
> kmip/tests/unit/services/server/test_monitor.py .....................    [ 94%]
> kmip/tests/unit/services/server/test_policy.py ........                  [ 95%]
> kmip/tests/unit/services/server/test_server.py .....F..                  [ 95%]
> kmip/tests/unit/services/server/test_session.py ....................     [ 95%]
> kmip/tests/unit/services/server/auth/test_slugs.py .........             [ 96%]
> kmip/tests/unit/services/server/auth/test_utils.py .........             [ 96%]
> kmip/tests/unit/services/server/crypto/test_engine.py .................. [ 96%]
> ........................................................................ [ 99%]
> .................................                                        [100%]
> 
> =================================== FAILURES ===================================
> _____________________ TestKMIPClient.test_socket_ssl_wrap ______________________
> 'NoneType' object is not iterable
> 
> During handling of the above exception, another exception occurred:
> NOTE: Incompatible Exception Representation, displaying natively:
> 
> testtools.testresult.real._StringException: Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/kmip/tests/unit/services/test_kmip_client.py", line 774, in test_socket_ssl_wrap
>     self.client._create_socket(sock)
>   File "/<<PKGBUILDDIR>>/kmip/services/kmip_client.py", line 288, in _create_socket
>     self.socket = ssl.wrap_socket(
>                   ^^^^^^^^^^^^^^^
> AttributeError: module 'ssl' has no attribute 'wrap_socket'
> 
> ------------------------------ Captured log call -------------------------------
> WARNING  kmip.core.config_helper:config_helper.py:64 Config file ['/sbuild-nonexistent/.pykmip/pykmip.conf', '/etc/pykmip/pykmip.conf', '/<<PKGBUILDDIR>>/kmip/pykmip.conf', '/<<PKGBUILDDIR>>/kmip/kmipconfig.ini'] not found
> WARNING  kmip.core.config_helper:config_helper.py:64 Config file ['/sbuild-nonexistent/.pykmip/pykmip.conf', '/etc/pykmip/pykmip.conf', '/<<PKGBUILDDIR>>/kmip/pykmip.conf', '/<<PKGBUILDDIR>>/kmip/kmipconfig.ini'] not found
> __________________________ TestKmipServer.test_start ___________________________
> 'NoneType' object is not iterable
> 
> During handling of the above exception, another exception occurred:
> NOTE: Incompatible Exception Representation, displaying natively:
> 
> testtools.testresult.real._StringException: Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/mock.py", line 1387, in patched
>     return func(*newargs, **newkeywargs)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/kmip/tests/unit/services/server/test_server.py", line 171, in test_start
>     with mock.patch('ssl.wrap_socket') as ssl_mock:
>   File "/usr/lib/python3.12/unittest/mock.py", line 1455, in __enter__
>     original, local = self.get_original()
>                       ^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/mock.py", line 1428, in get_original
>     raise AttributeError(
> AttributeError: <module 'ssl' from '/usr/lib/python3.12/ssl.py'> does not have the attribute 'wrap_socket'
> 
> =============================== warnings summary ===============================
> ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1316
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1316: PytestRemovedIn8Warning: The --strict option is deprecated, use --strict-markers instead.
>     self.issue_config_time_warning(
> 
> ../../../usr/lib/python3/dist-packages/sqlalchemy/sql/sqltypes.py:2061
>   /usr/lib/python3/dist-packages/sqlalchemy/sql/sqltypes.py:2061: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
>     epoch = dt.datetime.utcfromtimestamp(0)
> 
> kmip/pie/sqltypes.py:24
>   /<<PKGBUILDDIR>>/kmip/pie/sqltypes.py:24: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
>     Base = declarative_base()
> 
> kmip/tests/unit/pie/objects/test_certificate.py:22
>   /<<PKGBUILDDIR>>/kmip/tests/unit/pie/objects/test_certificate.py:22: SAWarning: Mapper mapped class DummyCertificate->certificates does not indicate a polymorphic_identity, yet is part of an inheritance hierarchy that has a polymorphic_on column of 'managed_objects.class_type'.  Objects of this type cannot be loaded polymorphically which can lead to degraded or incorrect loading behavior in some scenarios.  Please establish a polmorphic_identity for this class, or leave it un-mapped.  To omit mapping an intermediary class when using declarative, set the '__abstract__ = True' attribute on that class.
>     class DummyCertificate(objects.Certificate):
> 
> kmip/tests/unit/pie/objects/test_cryptographic_object.py:22
>   /<<PKGBUILDDIR>>/kmip/tests/unit/pie/objects/test_cryptographic_object.py:22: SAWarning: Mapper mapped class DummyCryptographicObject->crypto_objects does not indicate a polymorphic_identity, yet is part of an inheritance hierarchy that has a polymorphic_on column of 'managed_objects.class_type'.  Objects of this type cannot be loaded polymorphically which can lead to degraded or incorrect loading behavior in some scenarios.  Please establish a polmorphic_identity for this class, or leave it un-mapped.  To omit mapping an intermediary class when using declarative, set the '__abstract__ = True' attribute on that class.
>     class DummyCryptographicObject(CryptographicObject):
> 
> kmip/tests/unit/pie/objects/test_key.py:22
>   /<<PKGBUILDDIR>>/kmip/tests/unit/pie/objects/test_key.py:22: SAWarning: Mapper mapped class DummyKey->keys does not indicate a polymorphic_identity, yet is part of an inheritance hierarchy that has a polymorphic_on column of 'managed_objects.class_type'.  Objects of this type cannot be loaded polymorphically which can lead to degraded or incorrect loading behavior in some scenarios.  Please establish a polmorphic_identity for this class, or leave it un-mapped.  To omit mapping an intermediary class when using declarative, set the '__abstract__ = True' attribute on that class.
>     class DummyKey(Key):
> 
> kmip/tests/unit/pie/objects/test_managed_object.py:21
>   /<<PKGBUILDDIR>>/kmip/tests/unit/pie/objects/test_managed_object.py:21: SAWarning: Mapper mapped class DummyManagedObject->managed_objects does not indicate a polymorphic_identity, yet is part of an inheritance hierarchy that has a polymorphic_on column of 'managed_objects.class_type'.  Objects of this type cannot be loaded polymorphically which can lead to degraded or incorrect loading behavior in some scenarios.  Please establish a polmorphic_identity for this class, or leave it un-mapped.  To omit mapping an intermediary class when using declarative, set the '__abstract__ = True' attribute on that class.
>     class DummyManagedObject(ManagedObject):
> 
> kmip/tests/unit/services/server/test_engine.py: 183 warnings
> kmip/tests/unit/services/server/test_session.py: 8 warnings
> kmip/tests/unit/services/server/crypto/test_engine.py: 123 warnings
>   /<<PKGBUILDDIR>>/kmip/services/server/crypto/engine.py:54: CryptographyDeprecationWarning: Blowfish has been deprecated
>     enums.CryptographicAlgorithm.BLOWFISH:   algorithms.Blowfish,
> 
> kmip/tests/unit/services/server/test_engine.py: 183 warnings
> kmip/tests/unit/services/server/test_session.py: 8 warnings
> kmip/tests/unit/services/server/crypto/test_engine.py: 123 warnings
>   /<<PKGBUILDDIR>>/kmip/services/server/crypto/engine.py:56: CryptographyDeprecationWarning: CAST5 has been deprecated
>     enums.CryptographicAlgorithm.CAST5:      algorithms.CAST5,
> 
> kmip/tests/unit/services/server/test_engine.py: 183 warnings
> kmip/tests/unit/services/server/test_session.py: 8 warnings
> kmip/tests/unit/services/server/crypto/test_engine.py: 123 warnings
>   /<<PKGBUILDDIR>>/kmip/services/server/crypto/engine.py:57: CryptographyDeprecationWarning: IDEA has been deprecated
>     enums.CryptographicAlgorithm.IDEA:       algorithms.IDEA,
> 
> kmip/tests/unit/services/server/test_engine.py: 94 warnings
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:441: SAWarning: TypeDecorator EnumType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     ).one()[0]
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_certificate_type
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:678: SAWarning: TypeDecorator EnumType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.certificate_type
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_certificate_type
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:678: SAWarning: TypeDecorator UsageMaskType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.certificate_type
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_cryptographic_algorithm
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:670: SAWarning: TypeDecorator EnumType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.cryptographic_algorithm
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_cryptographic_algorithm
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:670: SAWarning: TypeDecorator UsageMaskType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.cryptographic_algorithm
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_cryptographic_length
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:672: SAWarning: TypeDecorator EnumType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.cryptographic_length
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_cryptographic_length
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:672: SAWarning: TypeDecorator UsageMaskType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.cryptographic_length
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_cryptographic_usage_masks
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:700: SAWarning: TypeDecorator EnumType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.cryptographic_usage_masks
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_cryptographic_usage_masks
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:700: SAWarning: TypeDecorator UsageMaskType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.cryptographic_usage_masks
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_state
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:706: SAWarning: TypeDecorator EnumType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.state
> 
> kmip/tests/unit/services/server/test_engine.py::TestKmipEngine::test_locate_with_state
>   /<<PKGBUILDDIR>>/kmip/services/server/engine.py:706: SAWarning: TypeDecorator UsageMaskType() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     return managed_object.state
> 
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection_with_load_failure
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_multiple_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_no_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate_no_common_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate_with_no_extension
>   /<<PKGBUILDDIR>>/kmip/tests/unit/services/server/auth/test_utils.py:117: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     datetime.datetime.utcnow()
> 
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection_with_load_failure
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_multiple_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_no_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate_no_common_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate_with_no_extension
>   /<<PKGBUILDDIR>>/kmip/tests/unit/services/server/auth/test_utils.py:119: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     datetime.datetime.utcnow() + datetime.timedelta(days=1)
> 
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection_with_load_failure
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_multiple_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_no_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate_no_common_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate_with_no_extension
>   /<<PKGBUILDDIR>>/kmip/tests/unit/services/server/auth/test_utils.py:134: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     datetime.datetime.utcnow()
> 
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection_with_load_failure
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_multiple_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_no_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate_no_common_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate_with_no_extension
>   /<<PKGBUILDDIR>>/kmip/tests/unit/services/server/auth/test_utils.py:136: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     datetime.datetime.utcnow() + datetime.timedelta(days=1)
> 
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection_with_load_failure
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_multiple_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_no_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate_no_common_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate_with_no_extension
>   /<<PKGBUILDDIR>>/kmip/tests/unit/services/server/auth/test_utils.py:148: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     datetime.datetime.utcnow()
> 
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_certificate_from_connection_with_load_failure
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_multiple_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_client_identity_from_certificate_no_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_common_names_from_certificate_no_common_names
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate
> kmip/tests/unit/services/server/auth/test_utils.py::TestUtils::test_get_extended_key_usage_from_certificate_with_no_extension
>   /<<PKGBUILDDIR>>/kmip/tests/unit/services/server/auth/test_utils.py:150: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
>     datetime.datetime.utcnow() + datetime.timedelta(days=1)
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info ============================
> FAILED kmip/tests/unit/services/test_kmip_client.py::TestKMIPClient::test_socket_ssl_wrap
> FAILED kmip/tests/unit/services/server/test_server.py::TestKmipServer::test_start
> ===== 2 failed, 3357 passed, 35 skipped, 1107 warnings in 75.31s (0:01:15) =====
> make[1]: *** [debian/rules:22: override_dh_auto_test] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-pykmip_0.10.0-5_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Back to linux.debian.bugs.rc | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1058411: python-pykmip: FTBFS: AttributeError: <module 'ssl' from '/usr/lib/python3.12/ssl.py'> does not have the attribute 'wrap_socket' Lucas Nussbaum <lucas@debian.org> - 2023-12-12 11:20 +0100
  Processed: Bug#1058411 marked as pending in python-pykmip "Debian Bug Tracking System" <owner@bugs.debian.org> - 2023-12-19 17:40 +0100
  Bug#1058411: marked as pending in python-pykmip Thomas Goirand <zigo@debian.org> - 2023-12-19 17:40 +0100

csiph-web