Bug 2323167 - python-billiard fails to build with Python 3.14: AttributeError: module 'subprocess' has no attribute '_USE_VFORK'
Summary: python-billiard fails to build with Python 3.14: AttributeError: module 'subp...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-billiard
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2024-11-01 14:53 UTC by Karolina Surma
Modified: 2025-03-31 10:37 UTC (History)
10 users (show)

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


Attachments (Terms of Use)

Description Karolina Surma 2024-11-01 14:53:00 UTC
python-billiard fails to build with Python 3.14.0a1.

____________________________ test_spawn.test_start _____________________________

self = <t.unit.test_spawn.test_spawn object at 0x7f3490b9bc50>

    def test_start(self):
        ctx = get_context('spawn')
    
        p = ctx.Process(target=task_from_process, args=('opa',))
>       p.start()

t/unit/test_spawn.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
billiard/process.py:120: in start
    self._popen = self._Popen(self)
billiard/context.py:339: in _Popen
    return Popen(process_obj)
billiard/popen_spawn_posix.py:37: in __init__
    super().__init__(process_obj)
billiard/popen_fork.py:22: in __init__
    self._launch(process_obj)
billiard/popen_spawn_posix.py:47: in _launch
    tracker_fd = semaphore_tracker.getfd()
billiard/semaphore_tracker.py:37: in getfd
    self.ensure_running()
billiard/semaphore_tracker.py:61: in ensure_running
    spawnv_passfds(exe, args, fds_to_pass)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/usr/bin/python3'
args = [['/usr/bin/python3', '-B', '-P', '-c', 'from billiard.semaphore_tracker import main;main(21)'], [b'/usr/bin/python3'], True, (8, 21), None, None, ...]
passfds = [8, 21]

    def spawnv_passfds(path, args, passfds):
        passfds = sorted(passfds)
        errpipe_read, errpipe_write = os.pipe()
        try:
            args = [
                args, [fsencode(path)], True, tuple(passfds), None, None,
                -1, -1, -1, -1, -1, -1, errpipe_read, errpipe_write,
                False, False]
            if sys.version_info >= (3, 11):
                args.append(-1)  # process_group
            if sys.version_info >= (3, 9):
                args.extend((None, None, None, -1))  # group, extra_groups, user, umask
            args.append(None)  # preexec_fn
            if sys.version_info >= (3, 11):
>               args.append(subprocess._USE_VFORK)
E               AttributeError: module 'subprocess' has no attribute '_USE_VFORK'

billiard/compat.py:196: AttributeError
=========================== short test summary info ============================
FAILED t/unit/test_pool.py::test_pool::test_on_ready_counter_is_synchronized
FAILED t/unit/test_spawn.py::test_spawn::test_start - AttributeError: module ...
============= 2 failed, 28 passed, 51 skipped, 4 warnings in 3.13s =============

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/08189181-python-billiard/

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

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 Aoife Moloney 2025-02-26 13:14:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.


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