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

AttributeError: module 'networkx' has no attribute 'selfloop_edges' #5

Closed
chunyuma opened this issue Dec 22, 2019 · 2 comments
Closed

Comments

@chunyuma
Copy link

Hello, I followed the instruction to install all the required python packages but when I ran 'python3 src/main.py', I got the following error. Could you please let me know how I can fix it? Thank you!

Traceback (most recent call last):
File "src/main.py", line 24, in
main()
File "src/main.py", line 17, in main
graph = graph_reader(args.edge_path)
File "/Users/machunyu/KoslickiLab/Splitter/src/utils.py", line 26, in graph_reader
graph.remove_edges_from(nx.selfloop_edges(graph))
AttributeError: module 'networkx' has no attribute 'selfloop_edges'

@zycheng643
Copy link

Hello, I followed the instruction to install all the required python packages but when I ran 'python3 src/main.py', I got the following error. Could you please let me know how I can fix it? Thank you!

Traceback (most recent call last):
File "src/main.py", line 24, in
main()
File "src/main.py", line 17, in main
graph = graph_reader(args.edge_path)
File "/Users/machunyu/KoslickiLab/Splitter/src/utils.py", line 26, in graph_reader
graph.remove_edges_from(nx.selfloop_edges(graph))
AttributeError: module 'networkx' has no attribute 'selfloop_edges'

Have you solved it? Got the same problem

@PhSe-coder
Copy link

download the networkx package in version 2.4

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

3 participants