<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a python script that I wrote which routes from point A to B using the default tools in QGIS. If I go to the processing toolbox and open the dialog it runs fine and everything is great.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I also have a python plugin and I put a button in a toolbar to open the same script. It loads the dialog but when you try to run it the whole thing crashes out and QGIS disables my plugin.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anyone have any suggestions as to what I might have done wrong?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m assuming the issue is related to how I’m calling the script from my plugin rather than the script itself as it runs independently from the processing toolbox fine
<span style="font-family:"Segoe UI Emoji",sans-serif">😊</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any suggestions would be appreciated. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0" style="background:white">
<tbody>
<tr>
<td style="padding:.75pt 15.0pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:11.5pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-GB">Paul Wittle
</span></b><span style="font-size:11.5pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
<td rowspan="6" style="border:none;border-left:solid #2F5597 1.5pt;padding:.75pt .75pt .75pt 15.0pt">
<p class="MsoNormal"><span style="color:black"><a href="https://www.dorsetcouncil.gov.uk/"><img border="0" width="227" height="96" style="width:2.3666in;height:1.0in" id="Picture_x0020_1" src="cid:image001.jpg@01D7368C.B3C78E00"></a></span><span style="font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt 15.0pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">Business Solutions Analyst (GIS)</span></b><span style="font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt 15.0pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">ICT Operations
</span></b><span style="font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt 15.0pt 15.0pt .75pt">
<p class="MsoNormal"><b><span style="font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">Dorset Council</span></b><span style="font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt 15.0pt .75pt .75pt">
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB"><a href="tel:01305%20228473%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20"><span style="color:blue">01305 228473
</span></a></span><span style="font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt 15.0pt .75pt .75pt">
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB"><a href="https://www.dorsetcouncil.gov.uk"><span style="color:blue">dorsetcouncil.gov.uk</span></a></span><span style="font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="display:none;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td style="padding:15.0pt 3.75pt .75pt .75pt">
<p class="MsoNormal"><a href="https://www.facebook.com/DorsetCouncilUK"><img border="0" width="46" height="46" style="width:.4833in;height:.4833in" id="Picture_x0020_2" src="cid:image002.png@01D7368C.B3C78E00"></a><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
<td style="padding:15.0pt 3.75pt .75pt .75pt">
<p class="MsoNormal"><a href="https://instagram.com/DorsetCouncilUK"><img border="0" width="46" height="46" style="width:.4833in;height:.4833in" id="Picture_x0020_3" src="cid:image003.png@01D7368C.B3C78E00"></a><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
<td style="padding:15.0pt 3.75pt .75pt .75pt">
<p class="MsoNormal"><a href="https://twitter.com/DorsetCouncilUK"><img border="0" width="46" height="46" style="width:.4833in;height:.4833in" id="Picture_x0020_4" src="cid:image004.png@01D7368C.B3C78E00"></a><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. It may contain unclassified but sensitive or protectively marked material and should be handled accordingly. Unless you are
 the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All traffic may be subject to recording and/or
 monitoring in accordance with relevant legislation. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Dorset Council. Dorset Council does not accept
 service of documents by fax or other electronic means. Virus checking: Whilst all reasonable steps have been taken to ensure that this electronic communication and its attachments whether encoded, encrypted or otherwise supplied are free from computer viruses,
 Dorset Council accepts no liability in respect of any loss, cost, damage or expense suffered as a result of accessing this message or any of its attachments. For information on how Dorset Council processes your information, please see www.dorsetcouncil.gov.uk/data-protection
</body>
</html>