[Qgis-user] Python error on startup

Stephen Ban stephen at cpawsbc.org
Tue Nov 22 11:38:01 PST 2016


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\Processin
g.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\QGIS
AlgorithmProvider.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\Rast
erLayerStatistics.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.p
y", 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_newd
ocs.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\__in
it__.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\__i
nit__.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:  <mailto:stephen at cpawsbc.org> stephen at cpawsbc.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20161122/e9eb3624/attachment.html>


More information about the Qgis-user mailing list