py3plex icon indicating copy to clipboard operation
py3plex copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'out/tmpedgelist.tree'

Open zz242msu opened this issue 2 years ago • 1 comments

Hi there,

I am using macOs and got this error:

/usr/local/lib/python3.10/dist-packages/py3plex/algorithms/community_detection/community_wrapper.py in parse_infomap(outfile) 98 99 outmap = {} --> 100 with open(outfile) as of: 101 for line in of: 102 parts = line.strip().split()

FileNotFoundError: [Errno 2] No such file or directory: 'out/tmpedgelist.tree'

Looks like the file might need to be 'tmp/tmpedgelist.txt'

Thanks!

zz242msu avatar Jul 01 '23 05:07 zz242msu

Hey @zz242msu, thanks for noticing this. Indeed, the file seems to be missing. Note however that there are many other edgelists/relevant datasets present here: https://github.com/SkBlaz/py3plex/tree/master/datasets. Feel free to modify the example + PR if you find a better option

SkBlaz avatar Jul 05 '23 20:07 SkBlaz