Skip to content

No such file or directory: 'data/from.map' #3

@cigrainger

Description

@cigrainger

See the traceback below. This doesn't work on Ubuntu 14.04 (AWS GPU instance) running Python 2.7.6.

`In [4]: graph2vec.parse_graph('test.txt', extend_paths=2)

IOError Traceback (most recent call last)
in ()
----> 1 graph2vec.parse_graph('test.txt', extend_paths=2)

/usr/local/lib/python2.7/dist-packages/graph2vec/trainer.pyc in parse_graph(self, graph_path, data_dir, load_edges, extend_paths)
26 graph = parser.Graph(graph_path)
27 self.from_nodes, self.to_nodes = graph.get_mappings()
---> 28 graph.save_mappings(self.output_dir)
29
30 if load_edges:

/usr/local/lib/python2.7/dist-packages/graph2vec/parser.pyc in save_mappings(self, output_dir)
45 def save_mappings(self, output_dir):
46
---> 47 with open(os.path.join(output_dir, 'from.map'), 'w') as from_map_file:
48 json.dump(self.from_nodes_mapping, from_map_file)
49 with open(os.path.join(output_dir, 'to.map'), 'w') as to_map_file:

IOError: [Errno 2] No such file or directory: 'data/from.map'`

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