<meta http-equiv="content-type" content="text/html; charset=utf-8"><div></div><div>Hi,</div><div>You need to change your default Python to the one that qgis uses.  You can change that in the windows environment variables</div><div>Nicolas</div><div><br>Le 22 nov. 2016 à 14:38, Stephen Ban [via <a href="http://OSGeo.org" target="_top" rel="nofollow" link="external">OSGeo.org</a>] <<a href="/user/SendEmail.jtp?type=node&node=5297009&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> a écrit :<br><br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><!--[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]--><div class="WordSection1"><p class="MsoNormal">Hi,<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I recently started getting an error message when launching QGIS. I can’t pinpoint exactly when it started happening, but I’m pretty sure it must be related to a recent install of Python when I had both Python 2.7 and 3.5 installed. I also have ArcGIS on my machine, so that was the only Python version installed for awhile. I then installed Python 3.5 to do some testing, but have since uninstalled it so the only remaining standalone Python version is ArcGIS’s 2.7. I’ve purged any extraneous Python environment variables and cleaned the Windows registry to no effect. I’m running Windows 10 64-bit edition, and have always installed the 64-bit versions of QGIS.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">I was originally running GQIS 2.16.1, then uninstalled it and installed QGIS 2.18. Both versions give me the same error message on startup: “Python error: Couldn’t load plugin ‘processing’ See message log (Python Error) for more details.” The Python message log contains the following:</span><br><span style="font-size:10.0pt">“1 Traceback (most recent call last):<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 308, in loadPlugin<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">__import__(packageName)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\__init__.py", line 29, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from processing.tools.general import * # NOQA<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\tools\general.py", line 31, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from processing.core.Processing import Processing<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\core\Processing.py", line 55, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from processing.algs.qgis.QGISAlgorithmProvider import QGISAlgorithmProvider<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\algs\qgis\QGISAlgorithmProvider.py", line 109, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from .RasterLayerStatistics import RasterLayerStatistics<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\algs\qgis\RasterLayerStatistics.py", line 36, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from processing.tools import raster<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\tools\raster.py", line 29, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">import numpy<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\__init__.py", line 180, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from . import add_newdocs<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\add_newdocs.py", line 13, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from numpy.lib import add_newdoc<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\lib\__init__.py", line 8, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from .type_check import *<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\lib\type_check.py", line 11, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">import numpy.core.numeric as _nx<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\core\__init__.py", line 14, in <module><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">from . import multiarray<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in _import<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">mod = _builtin_import(name, globals, locals, fromlist, level)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA">ImportError: DLL load failed: %1 is not a valid Win32 application.”<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><o:p> </o:p></span></p><p class="MsoNormal">Any help or advice on resolving this error would be appreciated.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Stephen<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222;background:white;mso-fareast-language:EN-CA">Stephen Ban, Ph.D., RPBio.</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><o:p></o:p></span></p><p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222;mso-fareast-language:EN-CA">National Ocean Spatial Analysis Manager<o:p></o:p></span></p><p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222;mso-fareast-language:EN-CA">Canadian Parks and Wilderness Society<o:p></o:p></span></p><p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222;mso-fareast-language:EN-CA">#410-698 Seymour Street, Vancouver, B.C. V6B 3K6<o:p></o:p></span></p><p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222;mso-fareast-language:EN-CA">Tel: 604 685-7445 ext. 30            <o:p></o:p></span></p><p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222;mso-fareast-language:EN-CA">Fax: 604 629-8532 <o:p></o:p></span></p><p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222;mso-fareast-language:EN-CA">Email: <a href="/user/SendEmail.jtp?type=node&node=5297007&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p></div><br>_______________________________________________
<br>Qgis-user mailing list
<br><a href="/user/SendEmail.jtp?type=node&node=5297007&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/Python-error-on-startup-tp5297007.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Python-error-on-startup-tp5297007.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Quantum GIS - User, email <a href="/user/SendEmail.jtp?type=node&node=5297009&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from Quantum GIS - User, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></div></blockquote>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Python-error-on-startup-tp5297007p5297009.html">Re: Python error on startup</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>