node2vec
node2vec copied to clipboard
IOError: [Errno 2] No such file or directory: 'graph/karate.edgelist'
problem when running main.py:
Traceback (most recent call last):
File "D:/node2vec-master/src/main.py", line 104, in
but the file exists,so please help me solve this question,thank you !
I have the same error with you. Have you solved this problem yet? Could you help me?Thank you very much!
Maybe it's because the OS route path. Use os.path.join('graph','karate.edgelist') to define the input filename.
Maybe it's because the OS route path. Use os.path.join('graph','karate.edgelist') to define the input filename.
I try to import os module and modify the input filename to become os.path.join('graph','karate.edgelist'),but still have the same problem FileNotFoundError: [Errno 2] No such file or directory: 'graph\karate.edgelist'.
Use the absolute path instead or the relative one to discard problems with the path.
If you want relative path just change it like the image below. That happen because the main code runs on 'src' folder and not in root directory.