[Qgis-developer] Import error in the qgis.core, qgis.guimodule, Help needed

Marco Pasetti marcopstt at gmail.com
Fri Sep 5 10:10:02 EDT 2008


Hi Bishwarup,

> I did the same way u suggested i still get the following error
>
> *******************
>>>> import sys
>>>> sys.path
> ['F:\\Python25\\Lib\\idlelib', 'C:\\WINNT\\system32\\python25.zip',
> 'F:\\Python25\\DLLs', 'F:\\Python25\\lib', 'F:\\Python25\\lib\\plat-win',
> 'F:\\Python25\\lib\\lib-tk', 'F:\\Python25',
> 'F:\\Python25\\lib\\site-packages']
>>>> import qgis.core
>
> Traceback (most recent call last):
>  File "<pyshell#2>", line 1, in <module>
>    import qgis.core
> ImportError: DLL load failed: The specified module could not be found.
>
>
> ************************
> Second portion
>
> *************************
>
>>>> sys.path
> ['F:\\Python25\\Lib\\idlelib', 'C:\\WINNT\\system32\\python25.zip',
> 'F:\\Python25\\DLLs', 'F:\\Python25\\lib', 'F:\\Python25\\lib\\plat-win',
> 'F:\\Python25\\lib\\lib-tk', 'F:\\Python25',
> 'F:\\Python25\\lib\\site-packages']
>>>> import gqis.core
>
> Traceback (most recent call last):
>  File "<pyshell#4>", line 1, in <module>
>    import gqis.core
> ImportError: No module named gqis.core
>>>> from qgis.core import *
>
> Traceback (most recent call last):
>  File "<pyshell#5>", line 1, in <module>
>    from qgis.core import *
> ImportError: DLL load failed: The specified module could not be found.
>
> ***********************
> The first portion of the error when i copied the qgis dir inside site
> package.
>
> The second portion of error is when i added the pythonpath variable.
>
> I have installed python in my F: drive
> as F:\python25
>
> and Quantum GIS 0.11.0.2 in F:\Quantum GIS.

Where is your python script? I suggest you to put it into F:\Quantum 
GIS\python\plugins

The Python and PyQt libraries bundled within qgis 0.11.0-x are: Python 2.5.2 
and PyQt 4.4.2
Different Python and PyQt version installed libraries may cause errors if 
the python script is launched outside the qgis tree (dir and subdirs)

Regards,

Marco 



More information about the Qgis-developer mailing list