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: [email protected]
Home: (758) 453-3454
Mobile: (758) 285-5083 / (758) 719-2248
Work: (758) 468-4434
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to