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
Fails with current Python 3.8 builds: error: too few arguments to function ‘PyCode_New’ #2938
Comments
|
Thanks for the report. I was aware that the signature changed from #2927, but we hadn't adapted yet. The fix won't apply until CPython 3.8a4 is released, which should happen within the next days. |
Even with a8506a9 I am still having issues building against current cpython master (python/cpython@d537ab0). Are there more changes expected to land in cpython that cython is anticipating? I am getting slightly different build failures having to do with wrong types not wrong number (build log in details below).
|
🐑 I see now, it has to do with the version guards in cython. |
JFYI 3.8.0a4 is out |
We are updating Fedora 31 to Python 3.8. Could you please help me plan ahead? Is this fix planned for 0.29.x or only for 3.x? |
I think it's worth backporting the fix to 0.29.x (setting pos-only args to a constant PR against |
I am currently working on the 0.29 backport. |
For me the fix still doesn't work, even with Cython master and Python 3.8.0a4+:
And then:
|
Does numpy recythonize their C sources when you install it via pip? |
Ahah... That's a good question. Probably not, since Cython is able to compile itself fine :-/ |
When installing from the source files on PyPI, no. Pip Installation from the repo should, but it may require a repo cleaning first. |
Would it be possible to get a release? Right now, there is no Cython release supporting Python 3.8 which prevents to many popular applications. Random example: IPython cannot be installed on Python 3.8, because pyzmq uses Cython and the compilation of its Cython code fails on PyCode_New() call. |
Have you tried this:
That will get you an install direct from github. |
I'm working for Red Hat. We prefer to package released code, than a Git commit ;-) |
As a note, in Fedora, I'd prefer a working 0.29.x Cython. We have provided a patch but it was rejected. Not sure what should be our next steps :( |
AFAIU the last official word was #2954 (comment), i.e. it would be helpful if somebody could provide a minimal fix for 0.29.x, without backporting the entire new feature. |
Hopefully this will do: #2971 |
I still get an error while trying to install Cython with Python 3.8:
Python 3.8.0a4+, macOS. I have tried both |
That will fix itself as soon as CPython 3.8 beta 1 is released. |
I built CPython 3.8 from current git master for test purposes, and I've noticed that Cython does not work with it. Steps to reproduce:
3.8.0a3+ (heads/master:d537ab0ff9, Apr 30 2019, 16:44:28)
),virtulalenv -p python3.8 /tmp/py38
/tmp/py38/bin/pip install cython
This fails with
I'm on Ubuntu 19.04.
(FWIW
/tmp/py38/bin/pip install lxml
fails the build with a similar PyCode_New-related error, using, I assume, my system Cython package, which is 0.29.2-2build1. I had not noticed similar problems with 3.8.0a3 itself, but there've been almost 300 new commits since then.)The text was updated successfully, but these errors were encountered: