<div dir="ltr">So, I'm trying to do bunch of shortest distance calculations using two point layers and a line layer.  Reading the forums etc. I gather there isn't a GUI solution for this.  As a result, I'm trying to adapt the code here:<div><br></div><div><a href="https://gis.stackexchange.com/questions/171896/how-to-calculate-shortest-path-from-points-in-one-layer-to-points-in-another-lay">https://gis.stackexchange.com/questions/171896/how-to-calculate-shortest-path-from-points-in-one-layer-to-points-in-another-lay</a><br></div><div><br></div><div>I'm using Qgis version 3.0.2.</div><div><br></div><div>However, when I run my script I receive the error:</div><div><br></div><div>"ImportError: cannot import name 'VectorWriter'"<br></div><div><br></div><div>Which I gather is coming from the import command:</div><div><br></div><div>"from processing.tools.vector import VectorWriter"</div><div><br></div><div>I'm guessing this is because this module doesn't exist or is called something different since the script I am copying was written?  Any suggestions?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>-J</div><div><br></div><div><br></div><div><br></div><div><br></div></div>