Skip to content

algorithms.unique kills python interpreter #1898

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
changhiskhan opened this issue Sep 11, 2012 · 5 comments
Closed

algorithms.unique kills python interpreter #1898

changhiskhan opened this issue Sep 11, 2012 · 5 comments
Labels
Milestone

Comments

@changhiskhan
Copy link
Contributor

32-bit Python 2.7.3 in 64-bit Windows 7

pandas master, numpy 1.6.1

Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 14:30:37) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.14.dev -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: lst = ['A', 'B', 'C', 'D', 'E']

In [2]: import pandas.core.algorithms as algos

In [3]: algos.unique(lst)
Out[3]: array([A, B, C, D, E], dtype=object)

In [4]: len(algos.unique(lst)) # --> triggers "Python has stopped working..."

Oddly enough this actually works:

In [3]: rs = algos.unique(lst)

In [4]: len(rs)
Out[4]: 5

@changhiskhan
Copy link
Contributor Author

Looks like it's caused by dbfdb07
I rolled back to the commit just before that and it works fine

@wesm
Copy link
Member

wesm commented Sep 12, 2012

I figured. I'll look later and get to the bottom of it

Sent from my mobile device

On Sep 11, 2012, at 5:02 PM, Chang She [email protected] wrote:

Looks like it's caused by
dbfdb07dbfdb07
I rolled back to the commit just before that and it works fine


Reply to this email directly or view it on
GitHubhttps://github.com//issues/1898#issuecomment-8472647.

@wesm
Copy link
Member

wesm commented Sep 15, 2012

I'm having a really difficult time reproducing this issue

@wesm
Copy link
Member

wesm commented Sep 15, 2012

This seems to only happen with mingw32 =/

@wesm
Copy link
Member

wesm commented Sep 15, 2012

looks like that commit fixed it. there's some performance loss but better than getting a segfault...

@wesm wesm closed this as completed Sep 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants