Bug 2325218 - python-avocado fails to build with Python 3.14: Error running method "pre_tests" of plugin "fetchasset": module 'ast' has no attribute 'Str' + Avocado crashed: TypeError: cannot pickle '_thread.RLock' object
Summary: python-avocado fails to build with Python 3.14: Error running method "pre_tes...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: python-avocado
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Cleber Rosa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2371803 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS F43FailsToInstall 2372091
TreeView+ depends on / blocked
 
Reported: 2024-11-11 15:31 UTC by Karolina Surma
Modified: 2025-10-11 20:55 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-10-11 20:55:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-11-11 15:31:08 UTC
python-avocado fails to build with Python 3.14.0a1.

+ /usr/bin/python3 selftests/check.py --job-api --nrunner-interface --unit --jobs --functional --optional-plugins --disable-plugin-checks robot
Error running method "pre_tests" of plugin "fetchasset": module 'ast' has no attribute 'Str'
JOB ID     : 1a174c974d5ce1910f53e0b4cd0e0c96a4305665
JOB LOG    : /builddir/avocado/job-results/job-2024-10-30T11.09-1a174c9/job.log
Traceback (most recent call last):

  File "/builddir/build/BUILD/python-avocado-92.3-build/BUILDROOT/usr/lib/python3.14/site-packages/avocado/core/job.py", line 638, in run_tests
    summary |= suite.run(self)
               ~~~~~~~~~^^^^^^

  File "/builddir/build/BUILD/python-avocado-92.3-build/BUILDROOT/usr/lib/python3.14/site-packages/avocado/core/suite.py", line 338, in run
    return self.runner.run_suite(job, self)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^

  File "/builddir/build/BUILD/python-avocado-92.3-build/BUILDROOT/usr/lib/python3.14/site-packages/avocado/plugins/runner.py", line 381, in run_suite
    if not self.run_test(job, test_factory, queue, summary,
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                         deadline):
                         ^^^^^^^^^

  File "/builddir/build/BUILD/python-avocado-92.3-build/BUILDROOT/usr/lib/python3.14/site-packages/avocado/plugins/runner.py", line 170, in run_test
    proc.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)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^

TypeError: cannot pickle '_thread.RLock' object

when serializing dict item 'lock'

when serializing logging.FileHandler state

when serializing logging.FileHandler object

when serializing dict item '_Job__logging_handlers'

when serializing avocado.core.job.Job state

when serializing avocado.core.job.Job object

when serializing tuple item 0

when serializing dict item '_args'

when serializing multiprocessing.context.Process state

when serializing multiprocessing.context.Process object

Avocado crashed: TypeError: cannot pickle '_thread.RLock' 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/08189182-python-avocado/

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

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:15:48 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:17 UTC
*** Bug 2371803 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Fails To Install 2025-06-20 19:49:50 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 Fails To Install 2025-07-15 08:32:54 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 4+ weeks.
This is the second reminder (step 4) 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 5 Fedora Fails To Install 2025-08-12 12:18:02 UTC
This package has been orphaned.

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

Comment 6 Fedora Admin user for bugzilla script actions 2025-08-12 13:28:33 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 7 Miro Hrončok 2025-08-19 09:56:45 UTC
Automation has figured out the package is retired in rawhide.

If you like it to be unretired, please open a ticket at https://pagure.io/releng/new_issue?template=package_unretirement

Comment 8 Fedora Fails To Install 2025-09-02 13:10:41 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 9 Fedora Admin user for bugzilla script actions 2025-09-02 13:34:54 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 10 Miro Hrončok 2025-09-08 09:33:18 UTC
Cleber, could you please respond?

This bugzilla was the reason this package was orphaned and then retired. Yu recently unretired it, but this still needs to be fixed.

Comment 11 Miro Hrončok 2025-09-30 19:00:03 UTC
Automation has figured out the package is retired in rawhide.

If you like it to be unretired, please open a ticket at https://pagure.io/releng/new_issue?template=package_unretirement

Comment 12 Cleber Rosa 2025-10-09 11:34:11 UTC
Hi Miro,

I was "locked out of work" for about 10 days, exactly when the fix was released (Avocado release 112.0) and the packaged was retired (again).

I'm ready to fix the issue on this BZ now. Pagure issue is https://pagure.io/releng/issue/13001 .

Comment 13 Fedora Fails To Install 2025-10-11 20:54:02 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/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 44.

Thanks for taking care of it!

Comment 14 Fedora Fails To Install 2025-10-11 20:55:17 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/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 43.

Thanks for taking care of it!


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