Skip to content

BUG: error in reduction.pyx file while building pandas from source with setup.py file #35817

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

Closed
akshaymanu007 opened this issue Aug 20, 2020 · 4 comments
Labels
Bug Duplicate Report Duplicate issue or pull request

Comments

@akshaymanu007
Copy link

akshaymanu007 commented Aug 20, 2020

I am compiling pandas1.10 from source with the help of setup.py

It is showing me following error in reduction.pyx file

    self.orig_data = self.buf.data
    self.orig_len = self.buf.shape[0]
    self.orig_stride = self.buf.strides[0]

    self.buf.data = self.values.data
           ^

pandas/_libs/reduction.pyx:313:16: Assignment to a read-only property

Error compiling Cython file:

enviornment : Linux opensuze
python version : 3.7.9

@akshaymanu007 akshaymanu007 added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Aug 20, 2020
@akshaymanu007 akshaymanu007 changed the title BUG: error in eduction.pyx file while building pandas from source with setup.py file BUG: error in reduction.pyx file while building pandas from source with setup.py file Aug 20, 2020
@bashtage
Copy link
Contributor

You need to use Cython < 3.

@bashtage bashtage removed the Needs Triage Issue that has not been reviewed by a pandas team member label Aug 20, 2020
@bashtage
Copy link
Contributor

xref #35675

@akshaymanu007
Copy link
Author

I am using 3.0a6 version but still it is giving error

@bashtage
Copy link
Contributor

That is Cython 3. You need to use Cython < 3 which means Cython 0.29.x (usually 0.29.21).

@bashtage bashtage added the Duplicate Report Duplicate issue or pull request label Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants