<div dir="ltr"><div><div>Hi,<br><br>Thanks for your answer. I'm using QGIS 2.10.1-Pisa on an Ubuntu 14.04 LTS<br></div>For both scripts, you will see screenshots for non working sample <a href="https://framapic.org/ESs6fNmIArII/uFqt0e0A">https://framapic.org/ESs6fNmIArII/uFqt0e0A</a> and also working one <a href="https://framapic.org/21atQvjmzdq5/4whPjPGL">https://framapic.org/21atQvjmzdq5/4whPjPGL</a>.<br></div><div>Unfortunately, except if there is a debug option to activate for standalone debug, I don't have any output in the console when running both scripts.<br><br></div><div>Regards<br><br></div><div>Thomas Gratier<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-13 23:59 GMT+02:00 Salvatore Larosa <span dir="ltr"><<a href="mailto:lrssvtml@gmail.com" target="_blank">lrssvtml@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Thomas,<br>
<span class=""><br>
On Mon, Oct 12, 2015 at 6:08 PM, Thomas Gratier<br>
<<a href="mailto:osgeo.mailinglist@gmail.com">osgeo.mailinglist@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm working with the Python API to create a standalone app.<br>
> When I reuse this sample from<br>
> <a href="http://kartoza.com/how-to-load-a-qgis-project-in-python/" rel="noreferrer" target="_blank">http://kartoza.com/how-to-load-a-qgis-project-in-python/</a>, it works perfectly<br>
> with only vector layer(s).<br>
> When I use a WMS with a vector layer, it fails directly.<br>
> I've done two samples to demonstrate the issue. You can take samples from<br>
> <a href="https://framadrop.org/r/kkC2MVV9TH#anlncOhrg5vbo5W7D8Lfjg8ghRq7BTo9flJXvnIV+Io=" rel="noreferrer" target="_blank">https://framadrop.org/r/kkC2MVV9TH#anlncOhrg5vbo5W7D8Lfjg8ghRq7BTo9flJXvnIV+Io=</a><br>
><br>
> Run the working vector sample with:<br>
>     python test_project_standalone_no_wms.py<br>
><br>
> Run the non working wms + vector sample with:<br>
>     python test_project_standalone.py<br>
><br>
> I should miss something. Do you have any clue? It's a bug or a feature<br>
> (unwanted for my case)?<br>
<br>
</span>which QGIS version are you trying with?<br>
Using master and LTR both scripts do not work for me.<br>
<br>
For the non working script are you getting any log in the python shell?<br>
<br>
Best Regards,<br>
-SL<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Salvatore Larosa<br>
linkedIn: <a href="http://linkedin.com/in/larosasalvatore" rel="noreferrer" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>
twitter: @lrssvt<br>
skype: s.larosa<br>
IRC: lrssvt on freenode<br>
</font></span></blockquote></div><br></div>