Bug 2323167 - python-billiard fails to build with Python 3.14: AttributeError: module 'subprocess' has no attribute '_USE_VFORK' [NEEDINFO]
Summary: python-billiard fails to build with Python 3.14: AttributeError: module 'subp...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-billiard
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2371818 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS F43FailsToInstall 2371683 2371758 2371829 2372230
TreeView+ depends on / blocked
 
Reported: 2024-11-01 14:53 UTC by Karolina Surma
Modified: 2025-07-26 20:30 UTC (History)
11 users (show)

Fixed In Version: python-billiard-4.2.1-5.fc43
Clone Of:
Environment:
Last Closed: 2025-07-26 20:30:35 UTC
Type: Bug
Embargoed:
fti-bugs: needinfo? (mail)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github celery billiard issues 426 0 None open Python 3.14: AttributeError: module 'subprocess' has no attribute '_USE_VFORK' 2025-06-20 21:01:17 UTC

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.

Comment 2 Karolina Surma 2025-06-11 15:56:55 UTC
*** Bug 2371818 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Fails To Install 2025-06-20 19:49:34 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 4 Fedora Admin user for bugzilla script actions 2025-07-08 01:18:15 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 5 Fedora Fails To Install 2025-07-09 13:36:58 UTC
This package has been orphaned.

You can pick it up at https://src.fedoraproject.org/rpms/python-billiard by clicking button "Take". If nobody picks it up, it will be retired and removed from a distribution.


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