-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyO3 generates broken ref to PyUnicode_AsUTF8AndSize on PyPy3 #2137
Comments
I'm sorry, I have probably failed to test 0.15.1. When I try again, I am unable to build it:
|
This may need to wait for the next pypy3.9 rc. It turns out we are missing some of the new C-API functions in pypy3.9rc1 like |
I had some help from the PyO3 people to set up a CI which runs PyO3 nightly + PyPy nightly, but have not yet updated it to include PyPy3.9. In the last two weeks it broke. Help to get it going again would be appreciated. |
I though we map the names using |
More generally we haven't attempted to support PyPy 3.9 dev builds at all yet. If anyone is interested in adding it to our Github workflow we could begin implementing the required updates. @mgorny can you use PyPy3 3.8 instead? Is supported and should work no problem. |
@mgorny is trying out PyPy's 3.9rc1, which I unleashed a week ago. I will try to add PyPy 3.9 to the pypy/binary-builds repo before the rc2 release, which should give some feedback about what is still missing. |
Note that as well as adding to the |
Any update on this? New 3.9: https://www.pypy.org/posts/2022/02/pypy-v738-release.html |
Bug Description
The headers of PyPy3 define a number of aliases such as:
As a result, extensions built against PyPy3 using
PyUnicode_AsUTF8AndSize()
API have it translated toPyPyUnicode_AsUTF8AndSize
symbol, etc.However, extensions built on PyPy3 using PyO3 use CPython symbol names and fail to load:
Steps to Reproduce
Install PyPy3, e.g. from https://www.pypy.org/download.html or using your distribution packages.
Backtrace
Your operating system and version
Gentoo Linux
Your Python version (
python --version
)Python 3.9.10 (307e102d7222131fee14073e8856df773627186c, Jan 31 2022, 19:21:32) [PyPy 7.3.8 with GCC 11.2.1 20220115]
Your Rust version (
rustc --version
)rustc 1.58.1 (gentoo)
Your PyO3 version
tested with 0.12.1 and 0.15.1
How did you install python? Did you use a virtualenv?
PyPy3 from distribution package, actual build inside tox/virtualenv as shown above.
Additional Info
No response
The text was updated successfully, but these errors were encountered: