-
Notifications
You must be signed in to change notification settings - Fork 6
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
Build Error #13
Comments
The following sources deal with and fix the issue @prabhuramachandran. |
Thanks Prajwal, I am facing the same issue. Can you please elaborate on how to install this now? @Prajwal-Prathiksh This breaks pysph installation on Ubuntu 22. |
Sorry I should fix this, basically install Cython < 3.x and it should work. I would suggest first installing the earlier cython version and then |
Thanks for the prompt response. I tried using older Cython versions and different Python versions like 3.8, 3.9, and 3.10, but the problem still exists. I'll wait for the bug to be fixed and keep working on my project. Thank you for looking into this. |
I somehow made it to work by replicating the exact versions of python, cython, numpy as my laptop. It was showing several different kind of errors, a few are, related to These are the steps I followed to have a successful conda create -n pysph_env python=3.10.9 anaconda
conda activate pysph_env
pip install cython==0.29.35
pip install cyarray --no-build-isolation
python -m pip install numpy==1.23.5
pip install pysph --no-build-isolation |
partial fix for pypr#13 (comment) thanks prajwal
cython>3.0 disallows setting `ndarray.data=<char *>some_data`. I believe `ndarray.data=<char *>some_data` is being used in the first place because it is more efficient than using `PyArray_SimpleNewFromData`, maybe. So, this cython restriction is overcome with a fix from https://github.com/rainwoodman/pandas/blob/05d3fe2402e4563124e7060837ded7513ab5bca7/pandas/_libs/reduction.pyx#L27 interim partial fix for pypr#13 (comment)
partial fix for pypr#13 thanks prajwal
cython>3.0 disallows setting `ndarray.data=<char *>some_data`. I believe `ndarray.data=<char *>some_data` is being used in the first place because it is more efficient than using `PyArray_SimpleNewFromData`, maybe. So, this cython restriction is overcome with a fix from https://github.com/rainwoodman/pandas/blob/05d3fe2402e4563124e7060837ded7513ab5bca7/pandas/_libs/reduction.pyx#L27 interim partial fix for pypr#13
Facing a local build (and pip install) error with
cyarray
.Details
carray.pyx
is throwing aCython.Compiler.Errors.CompileError
, due to two kinds of error:Cannot assign type 'double' to 'long'
. Fix: Use int division (//) in the corresponding.mako
fileAssignment to a read-only property
. Fix: To be identified.Error message
OS & C++ versions
Python environment
The text was updated successfully, but these errors were encountered: