Skip to content
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

pandas._libs.reduction.Reducer' has no attribute '__reduce_cython__' #3408

Open
JASHWANTHREDDYTUPILI opened this issue Mar 10, 2020 · 9 comments
Open

Comments

@JASHWANTHREDDYTUPILI
Copy link

@JASHWANTHREDDYTUPILI JASHWANTHREDDYTUPILI commented Mar 10, 2020

import pandas
Traceback (most recent call last):

File "", line 1, in
import pandas

File "C:\Users\tjash\Anaconda3\lib\site-packages\pandas_init_.py", line 54, in
from pandas.core.api import (

File "C:\Users\tjash\Anaconda3\lib\site-packages\pandas\core\api.py", line 29, in
from pandas.core.groupby import Grouper, NamedAgg

File "C:\Users\tjash\Anaconda3\lib\site-packages\pandas\core\groupby_init_.py", line 1, in
from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg, SeriesGroupBy

File "C:\Users\tjash\Anaconda3\lib\site-packages\pandas\core\groupby\generic.py", line 63, in
from pandas.core.groupby.groupby import (

File "C:\Users\tjash\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 61, in
from pandas.core.groupby import base, ops

File "C:\Users\tjash\Anaconda3\lib\site-packages\pandas\core\groupby\ops.py", line 16, in
import pandas._libs.reduction as libreduction

File "pandas_libs\reduction.pyx", line 30, in init pandas._libs.reduction

AttributeError: type object 'pandas._libs.reduction.Reducer' has no attribute 'reduce_cython'

Can some one help me with the above error

@MomIsBestFriend

This comment has been minimized.

Copy link

@MomIsBestFriend MomIsBestFriend commented Mar 10, 2020

@JASHWANTHREDDYTUPILI

This comment has been minimized.

Copy link
Author

@JASHWANTHREDDYTUPILI JASHWANTHREDDYTUPILI commented Mar 10, 2020

I posted it in pandas already . They were looping cython issues and asked me to post here

@JASHWANTHREDDYTUPILI

This comment has been minimized.

Copy link
Author

@JASHWANTHREDDYTUPILI JASHWANTHREDDYTUPILI commented Mar 10, 2020

We don't implement any "reduce_cython" in that module, which suggests that this is bubbling up from cython. cc @scoder. this was one of the comment posted in pandas

@MomIsBestFriend

This comment has been minimized.

Copy link

@MomIsBestFriend MomIsBestFriend commented Mar 10, 2020

I posted it in pandas already . They were looping cython issues and asked me to post here

@JASHWANTHREDDYTUPILI Sorry, I wasn't aware of that.

@da-woods

This comment has been minimized.

Copy link
Contributor

@da-woods da-woods commented Mar 11, 2020

This is really a place for bug-reports, not for user support. I'm relatively sure the bug that caused this was fixed a couple of years ago. If I were you I'd update the base Anaconda program:

 conda update -n root conda

Then create and activate a fresh environment with Pandas installed

conda create --name some_name python=3 pandas
conda activate some_name
@JASHWANTHREDDYTUPILI

This comment has been minimized.

Copy link
Author

@JASHWANTHREDDYTUPILI JASHWANTHREDDYTUPILI commented Mar 11, 2020

Even creating and activating the fresh environment does not solve the error

@da-woods

This comment has been minimized.

Copy link
Contributor

@da-woods da-woods commented Mar 11, 2020

Unfortunately if I run the exact commands I suggested, open a Python prompt then do import pandas it works for me (tested on Windows). I can't help.

@JASHWANTHREDDYTUPILI

This comment has been minimized.

Copy link
Author

@JASHWANTHREDDYTUPILI JASHWANTHREDDYTUPILI commented Mar 11, 2020

I don't understand but Thanks for your valuable time

@MomIsBestFriend

This comment has been minimized.

Copy link

@MomIsBestFriend MomIsBestFriend commented Mar 11, 2020

@JASHWANTHREDDYTUPILI I think you should read this:

https://docs.anaconda.com/anaconda/install/update-version/


Can the steps described in the mentioned documentation above are possible in your environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.