Hello, when I install docutil v0.22.1, I got an error
docutils-0.22.1/docutils/__init__.py: Failed to restore metadata: File exists
tar: Error exit delayed from previous errors.
Error: Failure while executing; `/usr/bin/env tar --extract --no-same-owner --file /Users/brew/Library/Caches/Homebrew/downloads/88b03c744685105eccb97d4a6655d840b7fed55a81342d1432838845ab291c6f--docutils-0.22.1.tar.gz --directory /private/tmp/homebrew-unpack-20250917-6599-dbea5b` exited with 1. Here's the output:
Some other package depending on this also occur same error.
Can you check?
Thanks,
Hi, echo on this thread - there also seem to be another issue with 0.22.1 wheel, it ships an swp file that should ideally not be there.
Last edit: Xinyi Xu 2025-09-19
The
.__init__.py.swpfile should definitely not be there...... it seems this is not just another problem but the culprit.
Last edit: Günter Milde 2025-09-20
I cannot reproduce the install problem here. Installing Docutils 0.22.1 with pip into a
new created venv worked without problem, despite the spurious file.
What is the OS?
Which command was used for the install?
Was there any output after
Here's the output:?If you used pip, run it with increased verbosity and share the details:
You may consider removing the spurious file
from the wheel or tar.gz archive (or manually unpacking and then removing) and trying again.
Last edit: Günter Milde 2025-09-19
MacOS with homebrew, during update some of packages.
https://github.com/Homebrew/homebrew-core/actions/runs/17826985501/job/50682694634#step:3:4128
In this case, we keep the previous version and it passed the CI.
https://github.com/Homebrew/homebrew-core/actions/runs/17809144055/job/50651494614?pr=244510#step:3:51
Not sure how can I implement the patch.
Thanks for the additional info.
It seems that install on MacOS (or just homebrew or snakemake, ...) trips over the spurious file while with Python's standard "pip" installment program or installing "by hand" the spurious file is just ignored.
We will release a new version without the spurious file ASAP.
Last edit: Günter Milde 2025-09-20
Docutils 0.22.2 is out (without the
*.swpfile).@daeho-ro: Could you please try whether this solves the install problem?
Now it looks fine, thank you!
https://github.com/Homebrew/homebrew-core/pull/245109
Fixed with release 0.22.2.
Thank you for report, analysis, and testing.