tNodeEmbed icon indicating copy to clipboard operation
tNodeEmbed copied to clipboard

raise Error in graph_untils.py at line 98

Open Albertwindows opened this issue 5 years ago • 4 comments

I have an solution. I am not sure that I am right. delete 4 spaces before line 87 in the same py file.

Albertwindows avatar Dec 02 '19 12:12 Albertwindows

Notice that line 85-87 checks that all nodes have the same attributes. Deleting these 4 spaces deletes this check. If you are comfortable with this - it is possible.

Line 98 creates the graph from the DataFrame with columns 'from', 'to' and attributes. Look at your DataFrame and check if it contains as you expect.

Furthermore, check that you're using the right networkx version (>=2.1)

urielsinger avatar Dec 02 '19 13:12 urielsinger

I find that the error occurs using the netwokx 2.4,but it would be good when the networkx version is exactly 2.1

yau703 avatar Apr 14 '20 11:04 yau703

I have the same issue with this step. The simplest solution is @Lamsaan said: First downgrade the networkx version to 2.1, then everything will be fine. (The code works as: pip install 'networkx==2.1' --force-reinstall)

ZihanChen1995 avatar Mar 17 '21 02:03 ZihanChen1995

It sounds like the same issue as https://github.com/urielsinger/tNodeEmbed/issues/13#issue-1556241852

If so, the answer is not to use an outdated networkx. It is fixed in the pull request mentioned there.