Bug 2325452 - satyr fails to build with Python 3.14: _pickle.PicklingError: Can't pickle local object <function TestDistances.test_distances_part_parallel.<locals>.do_test.<locals>.compute_part at 0x7f7f845f2560>
Summary: satyr fails to build with Python 3.14: _pickle.PicklingError: Can't pickle lo...
Keywords:
Status: POST
Alias: None
Product: Fedora
Classification: Fedora
Component: satyr
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Michal Srb
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2024-11-12 12:59 UTC by Karolina Surma
Modified: 2025-05-22 17:19 UTC (History)
5 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources satyr pull-request 18 0 None None None 2025-05-22 17:19:08 UTC
Github abrt satyr pull 343 0 None open Avoid the multiprocessing forkserver method 2025-03-25 15:21:25 UTC
Github python cpython issues 126831 0 None open 3.14.0a1: `_pickle.PicklingError: Can't pickle local object` when a multiprocessing.Process is started with target funct... 2024-11-14 12:48:40 UTC

Description Karolina Surma 2024-11-12 12:59:18 UTC
satyr fails to build with Python 3.14.0a1.

ERROR: test_distances_part_parallel (__main__.TestDistances.test_distances_part_parallel)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/satyr-0.43-build/satyr-0.43/tests/testsuite.dir/09/../../python/metrics.py", line 174, in test_distances_part_parallel
    do_test(self.threads[:2], 1)
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/satyr-0.43-build/satyr-0.43/tests/testsuite.dir/09/../../python/metrics.py", line 160, in do_test
    processes[-1].start()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib64/python3.14/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
                  ~~~~~~~~~~~^^^^^^
  File "/usr/lib64/python3.14/multiprocessing/context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/multiprocessing/context.py", line 300, in _Popen
    return Popen(process_obj)
  File "/usr/lib64/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__
    super().__init__(process_obj)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
    ~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/multiprocessing/popen_forkserver.py", line 47, in _launch
    reduction.dump(process_obj, buf)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/multiprocessing/reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
_pickle.PicklingError: Can't pickle local object <function TestDistances.test_distances_part_parallel.<locals>.do_test.<locals>.compute_part at 0x7f7f845f2560>
when serializing dict item '_target'
when serializing multiprocessing.context.Process state
when serializing multiprocessing.context.Process object

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/08208176-satyr/

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

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 Karolina Surma 2024-11-18 09:19:31 UTC
Per https://docs.python.org/dev/whatsnew/3.14.html#multiprocessing:

The default start method (see Contexts and start methods) changed from fork to forkserver on platforms other than macOS & Windows where it was already spawn. If you require the threading incompatible fork start method you must explicitly request it using a context from multiprocessing.get_context() (preferred) or change the default via multiprocessing.set_start_method(). (Contributed by Gregory P. Smith in gh-84559.)

Comment 2 Aoife Moloney 2025-02-26 13:16:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 3 Miro Hrončok 2025-05-22 16:57:12 UTC
This blocks the @critical-path-anaconda group.

Let's backport https://github.com/abrt/satyr/pull/343 please.

Comment 4 Miro Hrončok 2025-05-22 17:13:57 UTC
Also @critical-path-base, @kde-desktop, @workstation-product.


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