Replies: 4 comments 2 replies
-
Indeed that should be exported from |
Beta Was this translation helpful? Give feedback.
-
I've hacked in a monkey patch for pypy:
And then calling it like:
But I'm getting other errors that might be similar oversights? I'm not sure:
This is wrt to I can work to find a MWE, but maybe the issue is apparent to you? |
Beta Was this translation helpful? Give feedback.
-
Thanks for following up. I fixed the root cause in b132295 which will in the end add
|
Beta Was this translation helpful? Give feedback.
-
and on PyPy 3.10 from June 8
Edit: Ahh, the problem is in the reproducer in #4977 and in my suggested fix in the comment from May 8 above, not in latest PyPY3.10. |
Beta Was this translation helpful? Give feedback.
-
I'm getting an error in ubelt when testing against pypy on windows: https://github.com/Erotemic/ubelt/actions/runs/9105340373/job/25030757962
The error is that:
This is coming from shutil, the traceback is:
In writing this up, I'm getting confused, because the stat module in CPython 3.9 and 3.11 don't seem to have this attribute either, but in all cases, including PyPy 3.9, the shutil module references this attribute, but the stat module doesn't define it. I spun up a docker image for
pypy:3.9
, andpython:3.9
, as well as having a venv with CPython 3.11 on my local machine, and in each one I ran:Where the first command prints nothing, and the second command does print something.
I opened up the stats.py module and see there is a
from _stat import *
, so perhaps that is where this attribute comes from? I don't have a windows machine to test on aside from the github actions CI, which is difficult to work with. Not sure if this is a pypy issue where it isn't exposing this attribute on windows or not.Looking at the CPython source code, it looks like it does define
IO_REPARSE_TAG_MOUNT_POINT
: https://github.com/python/cpython/blob/3.9/Modules/_stat.cThere is some code in PyPy that references the attribute: https://github.com/pypy/pypy/blob/release-pypy3.9-v7.3.16/rpython/rlib/src/winreparse.c but it looks like it never adds it as an attribute to the "stats" module? Based on this, it seems like this might be a PyPy bug that should be patched. Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions