[Qgis-user] PyQgis script not finding module in eclipse IDE
PIERRE Sylvain
sylvain.pierre at bas-rhin.fr
Thu Nov 26 00:12:35 PST 2020
Hello,
Did you add a qgis entry in “Forced Builtins” Python parameters?
[cid:image001.png at 01D6C3D4.466FBF60]
→ Sylvain PIERRE
Chef de projet système d’information
Direction des Systèmes d’Information
Service Projets et Applications Numériques
Conseil Départemental du Bas-Rhin
[cid:image002.jpg at 01D6C3D4.466FBF60]<http://www.bas-rhin.fr/>
Hôtel du Département
1 place du Quartier Blanc 67964 Strasbourg Cedex 9
Tél : 03 88 76 68 88 - mobile :
Mobile :
Email : sylvain.pierre at bas-rhin.fr<mailto:sylvain.pierre at bas-rhin.fr>
www.bas-rhin.fr<http://www.bas-rhin.fr/>
De : Qgis-user <qgis-user-bounces at lists.osgeo.org> De la part de Marcathian Alexander
Envoyé : mercredi 25 novembre 2020 23:01
À : qgis-user at lists.osgeo.org
Objet : [Qgis-user] PyQgis script not finding module in eclipse IDE
Good Day;
I am trying to configure ellipse to help me write and debug a pyqgis script.
I have followed the configuration instructions at:
https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/plugins/ide_debugging.html#debugging-using-eclipse-and-pydev
However; when I run the script i get an error saying :
ModuleNotFoundError: No module named 'qgis'
The import statements are:
import os
from qgis.core import processing
The traceback is below:
pydev debugger: starting (pid: 8272)
Traceback (most recent call last):
File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\pydevd.py", line 3215, in <module>
main()
File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\pydevd.py", line 3208, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\pydevd.py", line 2282, in run
return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\pydevd.py", line 2289, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Users\macalexander\.eclipse\org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64\plugins\org.python.pydev.core_8.0.1.202011071328\pysrc\_pydev_imps\_pydev_execfile.py", line 25, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\macalexander\OneDrive\ITOfficer\Physdev_GIS\property_Tax_revamp\generate_Distance_matrices.py", line 2, in <module>
from qgis.core import processing
ModuleNotFoundError: No module named 'qgis'
How do I correct the configuration so that the modules can be found?
May the Lord bless you and keep you.
May the Lord let his face shine on you and be gracious to you.
May the Lord show you his face and bring you peace.
(New Jerusalem Bible Numbers 6:24-26)
Marcathian Alexander
email: marcathian at gmail.com<mailto:marcathian at gmail.com>
Home: (758) 453-3454
Mobile: (758) 285-5083 / (758) 719-2248
Work: (758) 468-4434
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20201126/1a43ad8c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 54467 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20201126/1a43ad8c/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 4607 bytes
Desc: image002.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20201126/1a43ad8c/attachment-0001.jpg>
More information about the Qgis-user
mailing list