Bug 2343972 - python-peewee fails to build with Python 3.14: TypeError: 'TestPostgresLateralJoin' object cannot be interpreted as an integer
Summary: python-peewee fails to build with Python 3.14: TypeError: 'TestPostgresLatera...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-peewee
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Viliam Križan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14 2343993
TreeView+ depends on / blocked
 
Reported: 2025-02-05 14:19 UTC by Karolina Surma
Modified: 2025-02-06 16:21 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-06 16:19:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-02-05 14:19:37 UTC
python-peewee fails to build with Python 3.14.0a4.

ERROR: test_lateral_helper (tests.postgres.TestPostgresLateralJoin.test_lateral_helper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/base.py", line 269, in inner
    method(self)
    ~~~~~~^^^^^^
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/postgres.py", line 978, in test_lateral_helper
    self.create_data()
    ~~~~~~~~~~~~~~~~^^
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/postgres.py", line 939, in create_data
    Tweet.create(user=user, content=c, timestamp=self.ts(d))
                                                 ~~~~~~~^^^
TypeError: 'TestPostgresLateralJoin' object cannot be interpreted as an integer

======================================================================
ERROR: test_lateral_top_n (tests.postgres.TestPostgresLateralJoin.test_lateral_top_n)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/base.py", line 269, in inner
    method(self)
    ~~~~~~^^^^^^
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/postgres.py", line 943, in test_lateral_top_n
    self.create_data()
    ~~~~~~~~~~~~~~~~^^
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/postgres.py", line 939, in create_data
    Tweet.create(user=user, content=c, timestamp=self.ts(d))
                                                 ~~~~~~~^^^
TypeError: 'TestPostgresLateralJoin' object cannot be interpreted as an integer

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08609163-python-peewee/

For all our attempts to build python-peewee with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-peewee/

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

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 Viliam Križan 2025-02-05 15:58:02 UTC
Reported to upstream: https://github.com/coleifer/peewee/issues/2969

Comment 2 Viliam Križan 2025-02-06 16:19:25 UTC
Fixed via https://bodhi.fedoraproject.org/updates/FEDORA-2025-bdb98f682f


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