Bug 2431599 - esptool fails to build with Python 3.15: AttributeError: 'CustomLoggerIncomplete' object has no attribute '_set_smart_features'. Did you mean: '_smart_features'?
Summary: esptool fails to build with Python 3.15: AttributeError: 'CustomLoggerIncompl...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: esptool
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karolina Surma
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-01-21 13:41 UTC by Karolina Surma
Modified: 2026-03-02 11:33 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-03-02 11:33:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github espressif esptool issues 1147 0 None open [heads up] Don't rely on TypeError raised when testing CustomLoggerIncomplete (Python 3.15) (ESPTOOL-1264) 2026-01-29 11:28:37 UTC

Description Karolina Surma 2026-01-21 13:41:58 UTC
esptool fails to build with Python 3.15.0a5.

_____________________________________ ERROR at setup of TestLogger.test_set_logger _____________________________________

self = <test_logger.TestLogger object at 0x7fe5d4ce1b50>

    @pytest.fixture
    def logger(self):
        log = EsptoolLogger()
>       log._set_smart_features(True)
        ^^^^^^^^^^^^^^^^^^^^^^^
E       AttributeError: 'CustomLoggerIncomplete' object has no attribute '_set_smart_features'. Did you mean: '_smart_features'?

/builddir/build/BUILD/esptool-5.1.0-build/esptool-5.1.0/test/test_logger.py:60: AttributeError
======================================================= FAILURES =======================================================
________________________________________ TestLogger.test_set_incomplete_logger _________________________________________

self = <test_logger.TestLogger object at 0x7fe5d4ce1950>
logger = <test_logger.CustomLoggerIncomplete object at 0x7fe5d58192b0>

    def test_set_incomplete_logger(self, logger):
>       with pytest.raises(
            TypeError,
            match="'CustomLoggerIncomplete' object layout differs from 'EsptoolLogger'",
        ):
E       Failed: DID NOT RAISE <class 'TypeError'>

/builddir/build/BUILD/esptool-5.1.0-build/esptool-5.1.0/test/test_logger.py:135: Failed
=============================================== short test summary info ================================================
FAILED test/test_logger.py::TestLogger::test_set_incomplete_logger - Failed: DID NOT RAISE <class 'TypeError'>
ERROR test/test_logger.py::TestLogger::test_set_logger - AttributeError: 'CustomLoggerIncomplete' object has no attri...

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10038392-esptool/

For all our attempts to build esptool with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/esptool/

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.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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.


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