muhanzhang / DGCNN

Code for "M. Zhang, Z. Cui, M. Neumann, and Y. Chen, An End-to-End Deep Learning Architecture for Graph Classification, AAAI-18".
MIT License
174 stars 44 forks source link

ImportError: No module named networkx #3

Closed luojiahai closed 6 years ago

luojiahai commented 6 years ago

Run Main.m using MATLAB, turns out this error:

Traceback (most recent call last):
  File "../../software/node2vec/src/main.py", line 14, in <module>
    import networkx as nx
ImportError: No module named networkx
Error using dlmread (line 62)
The file 'data/embedding/USAir_1.emd' could not be opened because: No such file
or directory

Error in generate_embeddings (line 59)
    node_embeddings = dlmread(['data/embedding/', data_name, '.emd']);

Error in graph2mat (line 62)
    node_embeddings = generate_embeddings(A1, data_name_i, emd_method);

Error in SEAL (line 66)
    [data, max_size] = graph2mat([train_pos; train_neg], [test_pos; test_neg],
    A, h, ith_experiment, 0, data_name, include_embedding, include_attribute);

Error in Main (line 65)
    parfor (ith_experiment = 1:numOfExperiment, workers)

I think the problem is MATLAB does not detect the correct python environment. Can you please help me to solve this?

luojiahai commented 6 years ago

Sorry, wrong repo.