<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<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;}
@font-face
        {font-family:BatangChe;
        panose-1:2 3 6 9 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Did you add a qgis entry in “Forced Builtins” Python parameters?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><img width="940" height="671" style="width:9.7916in;height:6.9895in" id="Image_x0020_2" src="cid:image001.png@01D6C3D4.466FBF60"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="1" cellpadding="0" style="border:none;border-top:solid gray 1.0pt">
<tbody>
<tr style="height:64.85pt">
<td width="297" style="width:220.5pt;border:none;padding:1.5pt 1.5pt 1.5pt 1.5pt;height:64.85pt">
<p class="MsoNormal" style="margin-left:21.3pt;text-indent:-21.3pt"><b><span style="font-size:14.0pt;font-family:"Arial",sans-serif;color:#CC0066">→</span></b><span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:#1F497D"> 
</span><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Sylvain PIERRE</span></b><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#CC0066"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:21.3pt;text-indent:-21.3pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#CC0066">        
</span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D">Chef de projet système d’information<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:21.3pt;text-indent:-21.3pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D">         Direction des Systèmes d’Information<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:21.3pt;text-indent:-21.3pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D">         Service Projets et Applications Numériques<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:21.3pt;text-indent:-21.3pt"><span style="font-family:"Arial",sans-serif;color:navy">      
</span><b><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D">Conseil Départemental du Bas-Rhin</span></b><b><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:navy"><o:p></o:p></span></b></p>
</td>
<td width="286" style="width:125.35pt;border:none;padding:1.4pt 1.4pt 1.4pt 1.4pt;height:64.85pt">
<p class="MsoNormal" align="center" style="text-align:center"><a href="http://www.bas-rhin.fr/" title="Cliquez sur le logo pour accéder au site internet du département du Bas-Rhin"><span style="font-size:8.0pt;font-family:"Calibri",sans-serif;color:#1F497D;text-decoration:none"><img border="0" width="279" height="76" style="width:2.9062in;height:.7916in" id="Image_x0020_1" src="cid:image002.jpg@01D6C3D4.466FBF60"></span></a><span lang="EN-US" style="font-size:8.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
</td>
</tr>
<tr style="page-break-inside:avoid;height:54.95pt">
<td width="583" colspan="2" style="width:347.35pt;border-top:solid gray 1.0pt;border-left:none;border-bottom:solid gray 1.0pt;border-right:none;padding:1.5pt 1.5pt 1.5pt 1.5pt;height:54.95pt">
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray">         Hôtel du Département<br>
         1 place du Quartier Blanc 67964 Strasbourg Cedex 9<br>
         Tél : 03 88 76 68 88 - mobile : <br>
         Mobile : <br>
         Email : <a href="mailto:sylvain.pierre@bas-rhin.fr">sylvain.pierre@bas-rhin.fr</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">        
<a href="http://www.bas-rhin.fr/"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif">www.bas-rhin.fr</span></a></span><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">De :</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Qgis-user <qgis-user-bounces@lists.osgeo.org>
<b>De la part de</b> Marcathian Alexander<br>
<b>Envoyé :</b> mercredi 25 novembre 2020 23:01<br>
<b>À :</b> qgis-user@lists.osgeo.org<br>
<b>Objet :</b> [Qgis-user] PyQgis script not finding module in eclipse IDE<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Good Day;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I am trying to configure ellipse to help me write and debug a pyqgis script.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have followed the configuration instructions at:<br>
<a href="https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/plugins/ide_debugging.html#debugging-using-eclipse-and-pydev">https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/plugins/ide_debugging.html#debugging-using-eclipse-and-pydev</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">However; when I run the script i get an error saying :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">ModuleNotFoundError: No module named 'qgis'<o:p></o:p></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The import statements are: <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">import os<br>
from qgis.core import processing<o:p></o:p></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The traceback is below:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">pydev debugger: starting (pid: 8272)<br>
Traceback (most recent call last):<br>
  File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\pydevd.py", line 3215, in <module><br>
    main()<br>
  File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\pydevd.py", line 3208, in main<br>
    globals = debugger.run(setup['file'], None, None, is_module)<br>
  File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\pydevd.py", line 2282, in run<br>
    return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)<br>
  File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\pydevd.py", line 2289, in _exec<br>
    pydev_imports.execfile(file, globals, locals)  # execute the script<br>
  File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\_pydev_imps\_pydev_execfile.py", line 25, in execfile<br>
    exec(compile(contents+"\n", file, 'exec'), glob, loc)<br>
  File "C:\Users\macalexander\OneDrive\ITOfficer\Physdev_GIS\property_Tax_revamp\generate_Distance_matrices.py", line 2, in <module><br>
    from qgis.core import processing<br>
ModuleNotFoundError: No module named 'qgis'<o:p></o:p></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">How do I correct the configuration so that the modules can be found?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt">May the Lord bless you and keep you.<br>
May the Lord let his face shine on you and be gracious to you.<br>
May the Lord show you his face and bring you peace.<br>
(New Jerusalem Bible Numbers 6:24-26)<br>
<br>
Marcathian Alexander<br>
<br>
email: <a href="mailto:marcathian@gmail.com" target="_blank">marcathian@gmail.com</a><br>
Home: (758) 453-3454<br>
Mobile: (758) 285-5083 / (758) 719-2248<br>
Work: (758) 468-4434</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>