[Qgis-developer] import qgis.core

Nathan Woodrow madmanwoo at gmail.com
Thu Dec 12 02:29:11 PST 2013


You need to run your plugin inside QGIS, if you try and run it from the
outside it's not going to work.

- Nathan


On Thu, Dec 12, 2013 at 8:13 PM, Rafael Krucker <rkrucker at hsr.ch> wrote:

> Hi all
>
>  Im running qgis 2.0.1 on windows 7 64 bit and want to write a little
> python plugin for qgis. However, when trying to run it, i get the following
> error message:
>
> Traceback (most recent call last): File "C:\Users\Ausleihe\workspace\
> testGame\testGame\testGame.py"
> , line 24, in <module> from qgis.core import *
>  ImportError: DLL load failed: The specified module could not be found.
>
> I've already tried several tipps provided in forums, like resetting python
> path etc. The location of qgis.core lies on the path, and I get a different
> error message when I remove it:
>
> Traceback (most recent call last): File "C:\Users\Ausleihe\workspace\
> testGame\testGame\testGame.py"
> , line 24, in <module> from qgis.core import *
> ImportError: no such module
>
> Inspecting qgis_core.dll with dependency walker 2.0 led to various missing
> dependencies, but I'm not quite sure how these work out. Importing moduls
> like PYQt4.QtCore etc works just fine.
>  Any help would be greatly appreciated.
>
> Kind regards
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131212/419bb1d0/attachment.html>


More information about the Qgis-developer mailing list