#71455 closed defect (fixed)

qsv build fails: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)

Reported by: kwolcott Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: qsv

Description

qsv build fails: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)

Why doesn't this port (port in general maybe) know this in advance?

Attachments (1)

qsv_port_build_fails.log.bz2​ (41.6 KB) - added by kwolcott 22 months ago.

Download all attachments as: .zip

Change History (5)

Changed 22 months ago by kwolcott

comment:1 Changed 22 months ago by jmroot (Joshua Root)

Keywords: qsv removed
Owner: set to herbygillot
Port: qsv added
Status: new → assigned

comment:2 Changed 22 months ago by ryandesign (Ryan Carsten Schmidt)

There's no mention of "python" in the qsv Portfile. Perhaps the maintainer of the port did not know that it uses python. Perhaps it just happened to work on his system because python on his system was either macOS python or a compatible version of MacPorts python.

Perhaps on your system you have used sudo port select python python313. Any time a port is affected by what a user has sudo port selected, it is a bug that needs to be investigated and fixed individually for that port.

On the 10.14 buildbot worker, it failed to build with:

error: no Python 3.x interpreter found

python 3 was not included in macOS until version 10.15.

The port should declare a dependency on python312 and use that one specifically, at least on 10.14 and earlier. On 10.15 and later, it could instead use /usr/bin/python3 specifically. The problem only arises because the port doesn't specify what python to use.

comment:3 Changed 22 months ago by herbygillot (Herby Gillot)

This was caused by increasing the number of built-in features built into qsv via the distrib_features capability flag here:

​https://github.com/macports/macports-ports/commit/648746428603e5a76c3b78aeafbb54b29a16dcb9#diff-5b5da860f4a4a46f38c400b16c0cfcc1f2b0fd5bc3067e4915bf004d86b202ccR28-R31

distrib_features builds qsv with more optional capabilities, one of those being python support, and thus why it started requiring a Python interpreter to be present. More info on that feature here:

​https://github.com/dathere/qsv/blob/master/docs/INTERPRETERS.md#building-qsv-with-python-feature

Attempting to correct via this PR: ​https://github.com/macports/macports-ports/pull/26890

comment:4 Changed 22 months ago by herbygillot (Herby Gillot)

Resolution: → fixed
Status: assigned → closed

In ff579b1a6040fd1b146a46da69583241bfdd66df/macports-ports (master):

qsv: properly set Python 3.12 as build dep

Fixes: #71455

Note: See TracTickets for help on using tickets.