Skip to content

Occuring error when trying to install with setup.py (from source code) and tar file from pypi is not working #36420

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
nithinreddyy opened this issue Sep 17, 2020 · 1 comment
Labels
Build Library building on various platforms Dependencies Required and optional dependencies Duplicate Report Duplicate issue or pull request

Comments

@nithinreddyy
Copy link

nithinreddyy commented Sep 17, 2020

[16/40] Cythonizing pandas_libs/reduction.pyx

Error compiling Cython 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:318:16: Assignment to a read-only property

Error compiling Cython file:

...

cdef move(self, int start, int end):
    """
    For slicing
    """
    self.buf.data = self.values.data + self.stride * start
           ^

pandas_libs\reduction.pyx:325:16: Assignment to a read-only property

Error compiling Cython file:

...
self.buf.shape[0] = end - start

cdef reset(self):

    self.buf.shape[0] = self.orig_len
    self.buf.data = self.orig_data
           ^

pandas_libs\reduction.pyx:331:16: Assignment to a read-only property

Error compiling Cython file:

...
# move blocks
for i in range(self.nblocks):
arr = self.blocks[i]

        # axis=1 is the frame's axis=0
        arr.data = self.base_ptrs[i] + arr.strides[1] * start
          ^

pandas_libs\reduction.pyx:452:15: Assignment to a read-only property

Error compiling Cython file:

...
# reset blocks
for i in range(self.nblocks):
arr = self.blocks[i]

        # axis=1 is the frame's axis=0
        arr.data = self.base_ptrs[i]
          ^

pandas_libs\reduction.pyx:472:15: Assignment to a read-only property
Traceback (most recent call last):
File "setup.py", line 791, in
setup_package()
File "setup.py", line 761, in setup_package
ext_modules=maybe_cythonize(extensions, compiler_directives=directives),
File "setup.py", line 540, in maybe_cythonize
return cythonize(extensions, *args, **kwargs)
File "D:\Pickle Examples\examples_aix\example_aix\lib\site-packages\Cython\Build\Dependencies.py", line 1110, in cythonize
cythonize_one(*args)
File "D:\Pickle Examples\examples_aix\example_aix\lib\site-packages\Cython\Build\Dependencies.py", line 1277, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pandas_libs/reduction.pyx

@nithinreddyy nithinreddyy added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 17, 2020
@nithinreddyy nithinreddyy changed the title Occuring error when trying to install with setup.py (from source code) Occuring error when trying to install with setup.py (from source code) and tar file from pypi is not working Sep 17, 2020
@jreback
Copy link
Contributor

jreback commented Sep 17, 2020

duplicate of #34213
we don't support cython 3 yet
you are welcome to help out

@jreback jreback added Dependencies Required and optional dependencies Build Library building on various platforms Duplicate Report Duplicate issue or pull request and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 17, 2020
@jreback jreback added this to the No action milestone Sep 17, 2020
@jreback jreback closed this as completed Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Dependencies Required and optional dependencies Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants