<div dir="ltr"><div><div><div>Hello,<br><br></div>I am running QGIS 3.0.0 in Linux.<br><br></div>I'm trying to migrate some pyqgis code from 2.14 to 3.0 and discovering the hard way that just about everything has changed :)<br><br></div><div>(Unfortunately, the docs haven't been updated yet and the API docs are pretty sparse.)<br></div><div><br></div><div>Say I have this command, which worked in 2.x:<br><br><span style="font-family:monospace,monospace">file_grid_r = processing.runalg("grass7:v.to.rast.value", grid_v, 0, 1, extent, 0.008333, -1, 0.000100, None)['output']</span><br><br></div><div>processing.runalg() doesn't exist anymore, apparently it was replaced with processing.run(). However, this:<br><br><span style="font-family:monospace,monospace">file_grid_r = processing.run("grass7:v.to.rast.value", grid_v, 0, 1, extent, 0.008333, -1, 0.000100, None)['output']</span><br><br></div><div>does not work as expected. In the PyCharm debugger, I receive this error message:<br><span style="font-family:monospace,monospace"><br>sys:1: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 50386), raddr=('127.0.0.1', 40183)></span><br><br></div><div>(If the command syntax is in fact correct, then perhaps the algorithm is not accessible?)<br><br></div><div>My questions:<br></div><ul><li>Is there up-to-date console documentation for the Processing toolbox somewhere?</li><li>How can I get a listing of the available algorithms in the same format as in 2.x?</li><li>How do I convert the algorithm calls (processing.runalg) from 2.x to 3.x?</li></ul><div><br></div><div>Thanks<br><br></div><div>Stephen<br></div></div>