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

ModuleNotFoundError: No module named 'segregation.spatial' #129

Closed
MyrnaSastre opened this issue Aug 15, 2019 · 3 comments
Closed

ModuleNotFoundError: No module named 'segregation.spatial' #129

MyrnaSastre opened this issue Aug 15, 2019 · 3 comments

Comments

@MyrnaSastre
Copy link

I'm getting this ModuleNotFoundError:

image

I have segregation (1.1.1) and PySAL 2.1.0 in my environment.

Any suggestions? Thanks!

@renanxcortes
Copy link
Collaborator

hm... weird, this is not supposed to be happening, could you share a reproducible script? Also, did you type segregation.__version__ to check if it is indeed version 1.1.1?

@renanxcortes
Copy link
Collaborator

renanxcortes commented Aug 15, 2019

In addition, to see if it is gonna work, try changing your code to:

import segregation
index = segregation.spatial.SpatialDissim(gdf, 'variable_name_1', 'variable_name_2')
type(index)

@renanxcortes
Copy link
Collaborator

I'm closing this, since me and @MyrnaSastre check here locally that this was due to the usage of an older version of segregation. Newer version, like, 1.1.1, shall not present this issue.

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

No branches or pull requests

2 participants