Bug 2447917 - python-exoscale fails to build with Python 3.15: TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
Summary: python-exoscale fails to build with Python 3.15: TypeError: unsupported opera...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-exoscale
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Roman Inflianskas
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-03-16 10:48 UTC by Karolina Surma
Modified: 2026-03-16 10:48 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-03-16 10:48:44 UTC
python-exoscale fails to build with Python 3.15.0a7.

+ /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py -f /builddir/build/BUILD/python-exoscale-0.16.2-build/python-exoscale-0.16.2-1.fc45.x86_64-pyproject-modules
Check import: exoscale
Check import: exoscale.api
Check import: exoscale.api.exceptions
Check import: exoscale.api.generator
Check import: exoscale.api.partner
Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/import_all_modules.py", line 106, in import_modules
    importlib.import_module(module)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/lib64/python3.15/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1317, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1282, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1247, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 857, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 747, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/builddir/build/BUILD/python-exoscale-0.16.2-build/BUILDROOT/usr/lib/python3.15/site-packages/exoscale/api/partner.py", line 12, in <module>
    from .v2 import Client as V2Client
  File "/builddir/build/BUILD/python-exoscale-0.16.2-build/BUILDROOT/usr/lib/python3.15/site-packages/exoscale/api/v2.py", line 97, in <module>
    BaseClient = create_client_class(api_spec)
  File "/builddir/build/BUILD/python-exoscale-0.16.2-build/BUILDROOT/usr/lib/python3.15/site-packages/exoscale/api/generator.py", line 354, in create_client_class
    op_fn = _create_operation_call(
        py_operation_name,
    ...<2 lines>...
        api_spec,
    )
  File "/builddir/build/BUILD/python-exoscale-0.16.2-build/BUILDROOT/usr/lib/python3.15/site-packages/exoscale/api/generator.py", line 243, in _create_operation_call
    desc += f". Must be one of ``{choices}``"
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
Check import: exoscale.api.v2
Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/import_all_modules.py", line 106, in import_modules
    importlib.import_module(module)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/lib64/python3.15/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1317, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1282, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1247, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 857, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 747, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/builddir/build/BUILD/python-exoscale-0.16.2-build/BUILDROOT/usr/lib/python3.15/site-packages/exoscale/api/v2.py", line 97, in <module>
    BaseClient = create_client_class(api_spec)
  File "/builddir/build/BUILD/python-exoscale-0.16.2-build/BUILDROOT/usr/lib/python3.15/site-packages/exoscale/api/generator.py", line 354, in create_client_class
    op_fn = _create_operation_call(
        py_operation_name,
    ...<2 lines>...
        api_spec,
    )
  File "/builddir/build/BUILD/python-exoscale-0.16.2-build/BUILDROOT/usr/lib/python3.15/site-packages/exoscale/api/generator.py", line 243, in _create_operation_call
    desc += f". Must be one of ``{choices}``"
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'

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/10223452-python-exoscale/

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

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.