Hi,
You need to change your default Python to the one that qgis uses.  You can 
change that in the windows environment variables
Nicolas

> Le 22 nov. 2016 à 14:38, Stephen Ban [via OSGeo.org] 
> <ml-node+s1560n5297007...@n6.nabble.com> a écrit :
> 
> Hi,
> 
>  
> 
> 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.
> 
>  
> 
> 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:
> “1 Traceback (most recent call last):
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 308, in 
> loadPlugin
> 
> __import__(packageName)
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\__init__.py", 
> line 29, in <module>
> 
> from processing.tools.general import * # NOQA
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\tools\general.py",
>  line 31, in <module>
> 
> from processing.core.Processing import Processing
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\core\Processing.py",
>  line 55, in <module>
> 
> from processing.algs.qgis.QGISAlgorithmProvider import QGISAlgorithmProvider
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\algs\qgis\QGISAlgorithmProvider.py",
>  line 109, in <module>
> 
> from .RasterLayerStatistics import RasterLayerStatistics
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\algs\qgis\RasterLayerStatistics.py",
>  line 36, in <module>
> 
> from processing.tools import raster
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python/plugins\processing\tools\raster.py",
>  line 29, in <module>
> 
> import numpy
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\__init__.py",
>  line 180, in <module>
> 
> from . import add_newdocs
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\add_newdocs.py",
>  line 13, in <module>
> 
> from numpy.lib import add_newdoc
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\lib\__init__.py",
>  line 8, in <module>
> 
> from .type_check import *
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\lib\type_check.py",
>  line 11, in <module>
> 
> import numpy.core.numeric as _nx
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> File 
> "C:\Users\steph\AppData\Roaming\Python\Python27\site-packages\numpy\core\__init__.py",
>  line 14, in <module>
> 
> from . import multiarray
> 
> File "C:/PROGRA~1/QGIS21~1.1/apps/qgis/./python\qgis\utils.py", line 607, in 
> _import
> 
> mod = _builtin_import(name, globals, locals, fromlist, level)
> 
> ImportError: DLL load failed: %1 is not a valid Win32 application.”
> 
>  
> 
> Any help or advice on resolving this error would be appreciated.
> 
>  
> 
> Stephen
> 
>  
> 
> Stephen Ban, Ph.D., RPBio.
> 
> National Ocean Spatial Analysis Manager
> 
> Canadian Parks and Wilderness Society
> 
> #410-698 Seymour Street, Vancouver, B.C. V6B 3K6
> 
> Tel: 604 685-7445 ext. 30            
> 
> Fax: 604 629-8532 
> 
> Email: [hidden email]
> 
>  
> 
> 
> _______________________________________________ 
> Qgis-user mailing list 
> [hidden email] 
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://osgeo-org.1560.x6.nabble.com/Python-error-on-startup-tp5297007.html
> To start a new topic under Quantum GIS - User, email 
> ml-node+s1560n4125267...@n6.nabble.com 
> To unsubscribe from Quantum GIS - User, click here.
> NAML




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Python-error-on-startup-tp5297007p5297009.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to