Are you developping a standalone app or it&#39;s a plugin. It seems that you try to load qgis.core out of Qgis. If you wanna call core and gui in a standalone app you must <span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 13px; line-height: 19px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">declare the path to the module throug a sys.path.append(your_path)</span><br>