Bug 2176144 - m2crypto fails to build with Python 3.12: ModuleNotFoundError: No module named 'asyncore'
Summary: m2crypto fails to build with Python 3.12: ModuleNotFoundError: No module name...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: m2crypto
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.12 2291510
TreeView+ depends on / blocked
 
Reported: 2023-03-07 14:02 UTC by Tomáš Hrnčiar
Modified: 2024-06-30 01:20 UTC (History)
6 users (show)

Fixed In Version: m2crypto-0.41.0^git20240613.3156614-1.fc39
Clone Of:
Environment:
Last Closed: 2024-06-30 01:20:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2023-03-07 14:02:38 UTC
m2crypto fails to build with Python 3.12.0a5.


======================================================================
ERROR: test_aes (unittest.loader._FailedTest.test_aes)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_aes
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_aes.py", line 9, in <module>
    from M2Crypto import m2
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_asn1 (unittest.loader._FailedTest.test_asn1)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_asn1
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_asn1.py", line 10, in <module>
    from M2Crypto import ASN1, m2
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_authcookie (unittest.loader._FailedTest.test_authcookie)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_authcookie
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_authcookie.py", line 10, in <module>
    from M2Crypto import EVP, Rand, six, util
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_bio (unittest.loader._FailedTest.test_bio)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_bio
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_bio.py", line 15, in <module>
    from M2Crypto import BIO, Rand, m2
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_bio_ssl (unittest.loader._FailedTest.test_bio_ssl)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_bio_ssl
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_bio_ssl.py", line 12, in <module>
    from M2Crypto import BIO
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_bn (unittest.loader._FailedTest.test_bn)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_bn
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_bn.py", line 12, in <module>
    from M2Crypto import BN, Rand
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_dh (unittest.loader._FailedTest.test_dh)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_dh
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_dh.py", line 7, in <module>
    from M2Crypto import DH, BIO, Rand
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_dsa (unittest.loader._FailedTest.test_dsa)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_dsa
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_dsa.py", line 9, in <module>
    from M2Crypto import DSA, Rand
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_ec_curves (unittest.loader._FailedTest.test_ec_curves)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_ec_curves
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_ec_curves.py", line 24, in <module>
    from M2Crypto import EC, Rand, m2  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_ecdh (unittest.loader._FailedTest.test_ecdh)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_ecdh
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_ecdh.py", line 10, in <module>
    from M2Crypto import EC, Rand
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_ecdsa (unittest.loader._FailedTest.test_ecdsa)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_ecdsa
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_ecdsa.py", line 12, in <module>
    from M2Crypto import EC, Rand
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_engine (unittest.loader._FailedTest.test_engine)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_engine
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_engine.py", line 5, in <module>
    from M2Crypto import Engine
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_err (unittest.loader._FailedTest.test_err)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_err
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_err.py", line 9, in <module>
    from M2Crypto import Err
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_evp (unittest.loader._FailedTest.test_evp)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_evp
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_evp.py", line 19, in <module>
    from M2Crypto import BIO, EVP, RSA, Rand, m2, util
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_obj (unittest.loader._FailedTest.test_obj)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_obj
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_obj.py", line 5, in <module>
    from M2Crypto import ASN1, BIO, Rand, X509, m2, six
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_rand (unittest.loader._FailedTest.test_rand)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_rand
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_rand.py", line 13, in <module>
    from M2Crypto import Rand, m2
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_rc4 (unittest.loader._FailedTest.test_rc4)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_rc4
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_rc4.py", line 8, in <module>
    from M2Crypto import RC4, Rand
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_rsa (unittest.loader._FailedTest.test_rsa)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_rsa
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_rsa.py", line 12, in <module>
    from M2Crypto import BIO, RSA, Rand, X509, m2, six
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_smime (unittest.loader._FailedTest.test_smime)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_smime
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_smime.py", line 10, in <module>
    from M2Crypto import BIO, EVP, Rand, SMIME, X509
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_ssl (unittest.loader._FailedTest.test_ssl)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_ssl
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_ssl.py", line 34, in <module>
    from M2Crypto import (Err, Rand, SSL, X509, ftpslib, httpslib, m2, m2urllib,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_ssl_offline (unittest.loader._FailedTest.test_ssl_offline)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_ssl_offline
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_ssl_offline.py", line 12, in <module>
    from M2Crypto import Rand, SSL, X509
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_ssl_win (unittest.loader._FailedTest.test_ssl_win)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_ssl_win
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_ssl_win.py", line 20, in <module>
    from tests import test_ssl, unittest
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_ssl.py", line 34, in <module>
    from M2Crypto import (Err, Rand, SSL, X509, ftpslib, httpslib, m2, m2urllib,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_threading (unittest.loader._FailedTest.test_threading)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_threading
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_threading.py", line 7, in <module>
    from M2Crypto import threading as m2threading, Rand
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_timeout (unittest.loader._FailedTest.test_timeout)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_timeout
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_timeout.py", line 7, in <module>
    from M2Crypto.SSL import timeout, struct_to_timeout, struct_size
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_util (unittest.loader._FailedTest.test_util)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_util
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_util.py", line 9, in <module>
    from M2Crypto import six
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'


======================================================================
ERROR: test_x509 (unittest.loader._FailedTest.test_x509)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_x509
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 383, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 326, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/M2Crypto-0.38.0/tests/test_x509.py", line 18, in <module>
    from M2Crypto import ASN1, BIO, EVP, RSA, Rand, X509, m2, six  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/__init__.py", line 29, in <module>
    from M2Crypto.SSL.ssl_dispatcher import ssl_dispatcher
  File "/builddir/build/BUILDROOT/m2crypto-0.38.0-8.fc39.x86_64/usr/lib64/python3.12/site-packages/M2Crypto/SSL/ssl_dispatcher.py", line 8, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'

asynchat and asyncore have been removed according to the schedule in PEP 594, having been deprecated in Python 3.6. Use asyncio instead. (Contributed by Nikita Sobolev in gh-96580.)

https://github.com/python/cpython/issues/96580
https://docs.python.org/3.12/whatsnew/3.12.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05576394-m2crypto/

For all our attempts to build m2crypto with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/m2crypto/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.12:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/

Let us know here if you have any questions.

Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Release Engineering 2023-08-16 07:11:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 2 Matěj Cepl 2024-06-13 07:04:57 UTC
Known bug upstream https://todo.sr.ht/~mcepl/m2crypto/338, fixed in https://git.sr.ht/~mcepl/m2crypto/commit/d95062301f379f21a4ed1bc5c53a8a4688b9f0e6 which has been released in 0.40.0.

Comment 3 Fedora Update System 2024-06-21 22:23:58 UTC
FEDORA-2024-c15e729dc9 (m2crypto-0.41.0^git20240613.3156614-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-c15e729dc9

Comment 4 Fedora Update System 2024-06-22 01:26:02 UTC
FEDORA-2024-c15e729dc9 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-c15e729dc9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-c15e729dc9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-06-30 01:20:52 UTC
FEDORA-2024-c15e729dc9 (m2crypto-0.41.0^git20240613.3156614-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.