Bug 2158259

Summary: pyfakefs on Fedora 36 is not compatible with Python 3.10: TypeError: PurePath._from_parts() got an unexpected keyword argument 'init'
Product: [Fedora] Fedora Reporter: hannes <johannes.lips>
Component: python-pyfakefsAssignee: David Moreau-Simard <moi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: jonathan, mhroncok, moi, orion
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-pyfakefs-4.5.6-1.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 01:47:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1890881    

Description hannes 2023-01-04 19:55:38 UTC
Description of problem:
I wanted to upgrade backintime (https://github.com/bit-team/backintime) also for fedora 36, because upstream was dormant for a pretty long time. Unfortunately, the build for fedora 36 fails with a build failure. Since I don't see that on fedora 37 and rawhide and the upstream code does also look good. I thought it might be caused by the older python-pyfakefs package in f36.


Version-Release number of selected component (if applicable):
python-pyfakefs-4.4.0-4.fc36

How reproducible:
always

Actual results:
Build failure in koji on fedora 36 
https://kojipkgs.fedoraproject.org//work/tasks/3263/95753263/build.log

Additional info:
I am not sure if this is really the component to blame, but it seemed to me to be the most likely cause.
Upstream code, where the test fails
https://github.com/bit-team/backintime/blob/master/common/diagnostics.py
If it rather is an upstream problem, I am happy to report the bug there.

Comment 1 Miro HronĨok 2023-01-06 10:54:34 UTC
This is a compatibility issue with Python 3.10.

Seems like https://github.com/pytest-dev/pyfakefs/commit/a8a70bb7746ba24aa60c9915311e1ff5b402146c is the fix (included in 4.5.0+) but Fedora 36 only has 4.4.0.

Comment 2 hannes 2023-01-07 16:10:19 UTC
Thanks for checking all that Miro, are there any reasons against upgrading to 4.5.0+ in f36. For example additional incompatibilities, which might be caused by this update?

Comment 3 Fedora Update System 2023-01-08 23:54:52 UTC
FEDORA-2023-f84d2e9a8b has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f84d2e9a8b

Comment 4 Fedora Update System 2023-01-09 02:08:43 UTC
FEDORA-2023-f84d2e9a8b has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f84d2e9a8b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f84d2e9a8b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-01-17 01:47:33 UTC
FEDORA-2023-f84d2e9a8b has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.