On Mon, 14 Jun 2021 09:35:16 -0400 Stefano Rivera <[email protected]> wrote:
> I wish I was able to reproduce this. Is there any chance you can
> reproduce it in a VM or controlled environment that I can try to
> recreate?
>
> It shouldn't matter, but what filesystem is this on?
I'm running this on btrfs.
I tried reproducing this issue in a VM as suggested. While I had no success
reproducing it there at first, I noted a directory ~/.local/share/virtualenv
mentioned in the output of a succeeding command which got me curious. After
digging through the contents of this folder on my local machine I figured out
the condition which triggers this bug. Turns out there is a file ~/.local/
share/virtualenv/wheel/3.9/embed/1/setuptools.json with the following content:
{
"completed": "2021-05-17T17:34:03.491147Z",
"periodic": true,
"started": "2021-05-17T17:33:59.488436Z",
"versions": [
{
"filename": "setuptools-56.2.0-py3-none-any.whl",
"found_date": "2021-05-17T17:33:59.597757Z",
"release_date": "2021-05-09T17:40:49.000000Z"
},
{
"filename": "setuptools-56.1.0-py3-none-any.whl",
"found_date": "2021-05-17T17:34:01.067885Z",
"release_date": "2021-05-04T21:35:13.000000Z"
},
{
"filename": "setuptools-56.0.0-py3-none-any.whl",
"found_date": "2021-05-17T17:34:02.299115Z",
"release_date": "2021-04-09T00:24:04.000000Z"
}
]
}
Removing this file causes this problem to go away!
This also works the other way around: Copying this file to the same location on
the VM and also copying the setuptools-*.whl files mentioned in there to
~/.local/share/virtualenv/wheel/house/ makes the problem reproducible on the
VM as well. It's way less frequent there and happens in way less than 10% of
the times, but with a little while loop it's easily reproducible this way as
well.
I hope this helps. If you need any more information, please just drop me a
note.
Daniel