Bug 2158259 - pyfakefs on Fedora 36 is not compatible with Python 3.10: TypeError: PurePath._from_parts() got an unexpected keyword argument 'init'
Summary: pyfakefs on Fedora 36 is not compatible with Python 3.10: TypeError: PurePath...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pyfakefs
Version: 36
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: David Moreau-Simard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2023-01-04 19:55 UTC by hannes
Modified: 2023-01-17 01:47 UTC (History)
4 users (show)

Fixed In Version: python-pyfakefs-4.5.6-1.fc36
Clone Of:
Environment:
Last Closed: 2023-01-17 01:47:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pytest-dev pyfakefs pull 594 0 None Merged fix breaking pathlib change in 3.10 beta1 2023-01-06 10:54:34 UTC

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.


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