infomap_ecology_package icon indicating copy to clipboard operation
infomap_ecology_package copied to clipboard

Installed infomap with pip is not detected by check_infomap

Open lsaravia opened this issue 8 months ago • 1 comments

I installed infomap with pip as recommended in https://www.mapequation.org/infomap/#Install but the function check_infomap() does not detect it is installed, and the other functions don't work. Probably because you use system(paste("./", x, " -V", sep = "")) so you force installation in the actual folder.

lsaravia avatar Mar 12 '25 19:03 lsaravia

It doesn't work If I pass the complete path like

infomap_object <- run_infomap_monolayer(mpg, infomap_executable='/Users/username/.local/bin/infomap', flow_model = 'directed', silent=T,trials=100, two_level=F, seed=123)

with error

sh: .//Users/leonardosaravia/.local/bin/infomap: No such file or directory simpleWarning: Infomap not installed correctly. See www.mapequation.org for instructions on how to install. Error in run_infomap_monolayer(mpg, infomap_executable = "/Users/leonardosaravia/.local/bin/infomap", : Error in Infomap standalone file.

lsaravia avatar Mar 12 '25 19:03 lsaravia

You are right. The package only looks for the executable in the current folder, it only allows for different names.

Thank you for raising this. We will add path flexibility in the next version.

Geutg avatar Jul 23 '25 13:07 Geutg