Hi, I was trying to run the test file, and I found a couple of issues. First, when running the test python test_img2net.py
I get the following output:
carlose@GLaDOS:~/GitProjects/Img2net/code/test$ python test_img2net.py
Traceback (most recent call last):
File "test_img2net.py", line 6, in <module>
import img2net
File "/home/carlose/GitProjects/Img2net/code/test/../img2net-core/img2net.py", line 10, in <module>
import filtering
File "/home/carlose/GitProjects/Img2net/code/test/../img2net-core/filtering.py", line 14, in <module>
with open("/Users/dtheuerkauf/Nextrout/nextrout_location.txt") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/dtheuerkauf/Nextrout/nextrout_location.txt'
After changing it to point to where I cloned Nextrout (in the same directory as Img2net) I stop getting that error, but I get another one:
carlose@GLaDOS:~/GitProjects/Img2net/code/test$ python test_img2net.py
root /home/carlose/GitProjects/Nextrout
Global repo non found
Traceback (most recent call last):
File "test_img2net.py", line 6, in <module>
import img2net
File "/home/carlose/GitProjects/Img2net/code/test/../img2net-core/img2net.py", line 10, in <module>
import filtering
File "/home/carlose/GitProjects/Img2net/code/test/../img2net-core/filtering.py", line 28, in <module>
import meshtools as mt
ModuleNotFoundError: No module named 'meshtools'
Looking into this, I found that the file "Img2net/code/img2net-core/filtering.py" refers to the dmk utilities cloned when running Nextrout in a directory called "dmk", while Nextrout clones them into the directory "dmk_utilities".
After changing references to ".../dmk/..." to ".../dmk_utilities/...", the example seems to work, but I do get a path printed which I don't think exists in my machine: /home/dtheuerkauf/Nextrout/python_scripts/
, and I also get the following message printed: rm: cannot remove '../../data/output/test/angolan_river_crop/nextrout/': No such file or directory
.
I feel like this is an issue of making a few paths be relative instead of fixed, but I don't know enough python yet to confidently submit a branch with a proposal. Let me know if you need more information on the results of what I ran.
Thanks for your time