Skip to content

Errors trying to run under Python3 #124

Description

@networks1

I have changed the print statements to the new syntax. Getting other errors though. Is there a Python3 version of this software?

Traceback (most recent call last):
  File "C:\Python36\lib\site-packages\networkx\readwrite\edgelist.py", line 272, in parse_edgelist
    edgedata = dict(literal_eval(edgedata_str.strip()))
TypeError: 'int' object is not iterable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "main.py", line 104, in <module>
    main(args)
  File "main.py", line 96, in main
    nx_G = read_graph()
  File "main.py", line 73, in read_graph
    G = nx.read_edgelist(args.input, nodetype=int, create_using=nx.DiGraph())
  File "<decorator-gen-650>", line 2, in read_edgelist
  File "C:\Python36\lib\site-packages\networkx\utils\decorators.py", line 239, in _open_file
    result = func_to_be_decorated(*new_args, **kwargs)
  File "C:\Python36\lib\site-packages\networkx\readwrite\edgelist.py", line 379, in read_edgelist
    data=data,
  File "C:\Python36\lib\site-packages\networkx\readwrite\edgelist.py", line 276, in parse_edgelist
    ) from e
TypeError: Failed to convert edge data (['1']) to dictionary.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions