-
Notifications
You must be signed in to change notification settings - Fork 751
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
Python 3.6: SystemError: Bad call flags in PyCFunction_Call. METH_OLDARGS is no longer supported! (pyo3 v0.14.5) #1911
Comments
See milesgranger/cramjam#62 (comment). I suspect that your github build is somehow configuring for a newer version by accident. |
In particular:
Sounds like you should not be using |
However, if I build with |
@Congyuwang See PyO3/maturin-action@3c86483 Please give it try with |
I changed to The workflow still runs normally: Running Installing from
I don't quite understand why, though. |
I think it's because pyo3 0.14 actually does use Python metadata from |
This problem seems solved with latest |
🐛 Bug Reports
Building on python 3.6.15 fails to run on python 3.6.13. Below is the error message:
If I build the same project using python 3.6.13 on my laptop, it runs successfully.
🌍 Build Environment (Github Workflow)
runs-on: macos-latest
,Mac OS X 10.15.7 19H1417
3.6.15
actions/setup-python@v2
, with:python-version: 3.6
,architecture: x64
stable-x86_64-apple-darwin unchanged - rustc 1.55.0 (c8dfcfe04 2021-09-06)
pyo3 v0.14.5
Run Environment (My Laptop)
Mac OS X 11.6
3.6.13
conda install python=3.6
💥 Reproducing
lib.rs
Cargo.toml
pyproject.toml
Installing package:
Reproduce bug:
The repository where I built this: https://github.com/Congyuwang/congyu_pyo3_debug
Built using GitHub workflow: https://github.com/Congyuwang/congyu_pyo3_debug/blob/master/.github/workflows/blank.yml
The text was updated successfully, but these errors were encountered: