Oddly, I was able to fix it by simply reinstalling/upgrading numpy in my existing Python 2.7 install.
It doesn’t make any sense to me, but it works. From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Nicolas Cadieux Sent: November 22, 2016 12:22 PM To: qgis-user@lists.osgeo.org Subject: Re: [Qgis-user] Python error on startup 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 <http://OSGeo.org> ] <[hidden email]> 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 [hidden email] To unsubscribe from Quantum GIS - User, click here. <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> NAML _____ View this message in context: Re: Python error on startup <http://osgeo-org.1560.x6.nabble.com/Python-error-on-startup-tp5297007p5297009.html> Sent from the Quantum GIS - User mailing list archive <http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html> 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