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

TypeError: 633 is not JSON serializable when calling create_Graph_forGraphSAGE.py #24

Open
xuehui1991 opened this issue Dec 13, 2019 · 1 comment

Comments

@xuehui1991
Copy link

xuehui1991 commented Dec 13, 2019

When runing the create_Graph_forGraphSAGE.py, got some error as following:


(py27) user@machinae:/FastGCN$ python create_Graph.py
Traceback (most recent call last):
  File "create_Graph.py", line 39, in <module>
    json.dump(data,f)
  File "/miniconda3/envs/py27/lib/python2.7/json/__init__.py", line 189, in dump
    for chunk in iterable:
  File "/miniconda3/envs/py27/lib/python2.7/json/encoder.py", line 434, in _iterencode
    for chunk in _iterencode_dict(o, _current_indent_level):
  File "/miniconda3/envs/py27/lib/python2.7/json/encoder.py", line 408, in _iterencode_dict
    for chunk in chunks:
  File "/miniconda3/envs/py27/lib/python2.7/json/encoder.py", line 332, in _iterencode_list
    for chunk in chunks:
  File "/miniconda3/envs/py27/lib/python2.7/json/encoder.py", line 408, in _iterencode_dict
    for chunk in chunks:
  File "/miniconda3/envs/py27/lib/python2.7/json/encoder.py", line 442, in _iterencode
    o = _default(o)
  File "/miniconda3/envs/py27/lib/python2.7/json/encoder.py", line 184, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: 633 is not JSON serializable

could you give me some suggestions?
Thank you.

@matenure
Copy link
Owner

I am not sure of the reason. But probably the networkx version matters. The discussions in #3 may provide some useful information.

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