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

Got "TypeError: 'NodeView' object does not support item assignment" with python 2.7 #9

Open
blueeaglex opened this issue Jun 9, 2018 · 1 comment

Comments

@blueeaglex
Copy link

I got this error while testing clustering.py .
shuffle(cluster_nodes)
File "/usr/lib/python2.7/random.py", line 291, in shuffle
x[i], x[j] = x[j], x[i]
TypeError: 'NodeView' object does not support item assignment

It looks like the library networkx is incompitable for python 2.7
This is my networkx installition instruction :
"Installing collected packages: decorator, networkx
Successfully installed decorator-4.3.0 networkx-2.1"
Any help will be greatly appreciated.

@zhly0
Copy link
Owner

zhly0 commented Jun 14, 2018

you can refer to #8

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