<div dir="ltr">Dear list,<div><br></div><div>How can I use a GRASS function from within QGIS if it's not in the toolbox ?</div><div><br></div><div>Ideally, I'd like a GUI solution. But actually I wasn't even able to find how to use it in command line (I don't know anything of grass, only used it through the processing toolbox for now).<br></div><div><br></div><div>I'm trying to use this function:</div><div><span style="color:rgb(221,17,68);font-family:'Andale Mono','Ubuntu Mono','Courier New',Courier,monospace;font-size:12px;line-height:19.2000007629395px;white-space:nowrap;background-color:rgb(247,247,249)">v.net.centrality -a input=streets@anita_000 output=centrality degree=degree closeness=closeness betweenness=betweenness eigenvector=eigenvector</span><br></div><div>(found here: <a href="http://planet.qgis.org/planet/tag/gis%20analysis/">http://planet.qgis.org/planet/tag/gis%20analysis/</a> , thanks Anita)</div><div><br></div><div>This is how far I got:</div><div><br></div><font face="monospace, monospace">.qgis2\processing\scripts\betweennessCentrality.py</font><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="monospace, monospace"></font><font face="monospace, monospace">##network=vector<br></font><font face="monospace, monospace">##output=output vector<br></font><font face="monospace, monospace">import grass.script as grass<br></font><font face="monospace, monospace">grass.run_command("v.net.centrality", flags='a', input=network, output=output, degree='degree', closeness='closeness', betweenness='betweenness', eigenvector='eigenvector')</font></blockquote><div><br></div><div>But I get an error when I run the algorithm (the gui loads nicely):</div><div><span style="color:rgb(255,0,0)">No module named grass.script See log for more details</span></div><div><div><br></div><div><br></div><div>Any help would be greatly appreciated !</div><div><br></div><div>Best,</div><div><br></div><div>Olivier</div><div><br></div></div></div>