[QGIS-Developer] QGIS 3.4 Plugin Python : error during import of PCRaster
Christine
christine.barachet at orange.fr
Thu Nov 15 07:43:46 PST 2018
Hello all,
I am developping a plugin for QGIS 3.4. In my module irip_dockwidget.py when I try to import PCRaster 4.2. I get this error :
File "C:/Users/a/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\irip\irip_dockwidget.py", line 26, in import pcraster as pcr
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Program Files\pcraster-4.2.0\python\pcraster\__init__.py", line 62, in raise ImportError(msg)
ImportError: The 'Microsoft Visual C++ 2015 Redistributable Update 3' is required to run PCRaster, available at:
https://www.microsoft.com/en-us/download/details.aspx?id=53840
DLL load failed: Le module spécifié est introuvable.In case you cannot solve the issue please consult the PCRaster mailing list at: https://lists.geo.uu.nl/mailman/listinfo/pcraster-info
I’ve installed the MSCP as recommended in the message but the problem still remains. I’ve mailed to PCRaster team and wait for a reply but maybe have you already seen this problem and you have a solution.
Another point : I developed a command-line version of my application which works well.
My envir : Windows 8, QGIS 3.4 (QGIS-OSGeo4W-3.4.1-1-Setup-x86_64.exe), Python 3.6, PCRaster 4.2
Thanks for your help,
Christine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181115/045022ec/attachment.html>
More information about the QGIS-Developer
mailing list