Re: [josm-dev] How to use DownloadTask in Python/Jython

2015-01-17 Thread Jo
Oh, I've been debugging for the past hour and preparing the message which crossed yours. In the mean time I had come to the conclusion it'd be best to include the bounds in the Overpass, but I hadn't gotten around to it yet. I'm going to look into running it with another background thread.

Re: [josm-dev] How to use DownloadTask in Python/Jython

2015-01-17 Thread Paul Hartmann
On 17.01.2015 00:27, Jo wrote: Hi Paul, Many thanks for your help. f.get() makes the script hang forever. Maybe the script and the download are run by the same Executor (Main.worker). Then this would block. You can try to run your entire script in a new background thread. (Code example:

Re: [josm-dev] How to use DownloadTask in Python/Jython

2015-01-17 Thread Jo
f.get() doesn't do the trick. As long as my Python code is running in the scripting plugin, the download occurs correctly but the downloaded data is not arriving somehow. Or some thread is not released. I'm not sure. I created some loops and I see the data coming in, but the loop never terminates.