Closed Dr-Irv closed 1 year ago
Hi @Dr-Irv,
Thanks very much for reporting this and for the efforts of you and your team to investigate the issue.
Apologies for the hassle, as soon as I have time I'll publish 0.16.2 to revert the changes in 0.16.1 while I investigate the root cause.
Could you also help me with a couple of details?
Does this problem only manifest on windows? Yes.
You mentioned this was happening in GitHub actions, could you perhaps give me a pointer on what repo/commit I would need to fork to replicate the issue?
The repo is https://github.com/pandas-dev/pandas-stubs . If you checkout tag v1.4.3.220829
and run it as a GH action, it should fail because it will install poethepoet 0.16.1. If you edit the line
https://github.com/pandas-dev/pandas-stubs/blob/fa84c4c6f4663ce7651c475d39dd3d73aa5967b1/pyproject.toml#L42
to pin poethepoet to 0.16.0, the action will succeed.
@Dr-Irv Thanks again for the bug report.
I finally got around to setting up a windows VM to properly debug and get to the bottom of this and 0.16.5 is the result. It includes all the changes from the broken version (which I had reverted) but doesn't break your CI, see: https://github.com/nat-n/pandas-stubs/commit/e76ae4c2dda8f99d60051971bf40303df9679733
In the
pandas-stubs
project, we usepoetry
andpoe
in our CI. It started failing a couple of days ago, and after many hours of debugging between members of the core team, we were able to fix the problem by pinningpoethepoet
to version 0.16.0.Here's an example log where from within our test scripts, we print out
where python
,where poe
andwhere poetry
and the value ofsys.executable
:Note that
sys.executable
is the system python.If we pin
poethepoet
to version 0.16.0, then everything is fine. Here's the same output:Note that
sys.executable
is the python that is in the virtual environment when we use 0.16.0.Work on this issue for us can be found in this PR: https://github.com/pandas-dev/pandas-stubs/pull/247 where we kept pinning releases and finally figured out that version 0.16.1 was the culprit. Our final fix was the pinning to version 0.16.0: https://github.com/pandas-dev/pandas-stubs/pull/249