QGIS-LTR MacOS半自动分类插件Numpy Error PANSHARPING
2021-04-12T11:12:09警告多处理池远程回溯: """ 回溯(最近一次呼叫最后一次): 文件“/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/init.py”,第22行 从。导入多数组 文件“/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/multiarray.py”,第12行,in 从。导入覆盖 文件“/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/overrides.py”,第7行 从numpy.core.\u multiarray\u umath导入( 导入错误:dlopen(/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core//u multiarray_umath.cpython-38-darwin.so,2):未加载库:@rpath/libopenblas.0.dylib 参考自:/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86\u 64.egg/numpy/core//u multiarray\u umath.cpython-38-darwin.so 原因:找不到图像QGIS-LTR MacOS半自动分类插件Numpy Error PANSHARPING,macos,numpy,classification,qgis,Macos,Numpy,Classification,Qgis,2021-04-12T11:12:09警告多处理池远程回溯: """ 回溯(最近一次呼叫最后一次): 文件“/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/init.py”,第22行 从。导入多数组 文件“/Applications/QGIS-LTR.app/Contents/MacOS/lib
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/Users/jessicawright/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/core/utils.py", line 4419, in processRasterDev
import numpy as np
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/__init__.py", line 145, in
from . import core
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/__init__.py", line 48, in
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.8 from "/Applications/Xcode.app/Contents/Developer/usr/bin/python3"
* The NumPy version is: "1.20.1"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: dlopen(/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/_multiarray_umath.cpython-38-darwin.so, 2): Library not loaded: @rpath/libopenblas.0.dylib
Referenced from: /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/_multiarray_umath.cpython-38-darwin.so
Reason: image not found
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/jessicawright/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/maininterface/downloadproducts.py", line 559, in downloadImages
self.downloadLandsatImages(d)
File "/Users/jessicawright/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/maininterface/downloadproducts.py", line 682, in downloadLandsatImages
cfg.landsatT.landsat(d, o, 'Yes')
File "/Users/jessicawright/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/maininterface/landsatTab.py", line 345, in landsat
o = cfg.utls.multiProcessRaster(rasterPath = tPMDN, functionBand = 'No', functionRaster = cfg.utls.calculateRaster, outputRasterList = oM, nodataValue = NoData, functionBandArgument = argumentList, functionVariable = variableList, progressMessage = cfg.QtWidgetsSCP.QApplication.translate('semiautomaticclassificationplugin', 'Conversion'), parallel = cfg.parallelRaster)
File "/Users/jessicawright/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/core/utils.py", line 5032, in multiProcessRaster
res = r[0].get()
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/multiprocessing/pool.py", line 771, in get
raise self._value
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.8 from "/Applications/Xcode.app/Contents/Developer/usr/bin/python3"
* The NumPy version is: "1.20.1"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: dlopen(/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/_multiarray_umath.cpython-38-darwin.so, 2): Library not loaded: @rpath/libopenblas.0.dylib
Referenced from: /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/numpy-1.20.1-py3.8-macosx-10.13.0-x86_64.egg/numpy/core/_multiarray_umath.cpython-38-darwin.so
Reason: image not found