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
Install error Python 3.8 / Cython 0.29.10 #404
Comments
PouueT
changed the title
Install error Python 3.8 / Cython 0.29.10
Install error Python 3.8 / Cython 0.29.10 (Installer not found Error :
Jul 27, 2020
PouueT
changed the title
Install error Python 3.8 / Cython 0.29.10 (Installer not found Error :
Install error Python 3.8 / Cython 0.29.10
Jul 27, 2020
@qcapen any thoughts on this? |
Looks like the simplest solution would be to update the setup script to
require cython 0.29.21 (and all related installation scripts) and
re-cythonize the .c files as well for all current and recent mpf_mc
versions. I think this would be easier than maintaining different cython
versions for different python versions. This is not likely something that
should happen very often (breaking python API changes).
Quinn
…On Wed, Aug 5, 2020 at 9:11 AM jabdoa2 ***@***.***> wrote:
@qcapen <https://github.com/qcapen> any thoughts on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#404 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC6GRTMW7PZULJJ52CKV5KLR7FZANANCNFSM4PIVPWNA>
.
|
@PouueT I see that Quinn commited the change to dev. Could you test if that works for you? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context:
But pip3 install -e mpf-mc result with errors, example :
In fact, the problem is related to Python 3.8 / Cython API changes : cython/cython@761f996
https://bugs.python.org/issue37221
https://docs.python.org/3.8/c-api/code.html ( PyCode_New(...) )
As of today, Cython master branch close to release tag 0.29.21 looks likes this, Line 488 :
https://github.com/cython/cython/blob/master/Cython/Utility/ModuleSetupCode.c
List of MPF-MC concerned files :
Quick and dirty fix for test purpose (Tested OK) :
Remove '0' arg :
@qcapen @jabdoa2 , I guess real problems comes from being able to cythonize / regenarate those files with local cythons.
(And what to decide to keep in master branch for pre generated files ?)
By default, with setup.py, we have skip_cython True and uses pre cythonized c sources.
It doesn't look like cythonizing sources with a local cython install works:
$ export USE_CYTHON=y
modify setup.py MAX_CYTHON_STRING = '0.29.21'
-> skipping '/xxxxxxx/mpf-mc/mpfmc/core/audio/sound_file.c' Cython extension (up-to-date)
Side note :
Currently, in mpf-debian-installer-dev.zip -> install-mpf-dependencies :
pip3 install -I Cython==0.27.3
Maybe we can update the install shell script to have a working package combination (with python 3.5 to 3.X) ?
The text was updated successfully, but these errors were encountered: