[Qgis-developer] Help needed with PyQGIS

Learn Qgis learn.qgis at gmail.com
Thu Mar 24 05:42:55 EDT 2011


Hi Marco,

thanks for replying... It was able to find SIP and PyQt. But it is not able
to find core.lib, gui.lib from Python/QGIS directory. How do we build these
files? Where is source code to build these files ? These files are available
with default Quantam GIS Installation Setup. I want to build them so that
they are compatible with Python 27. I am not able to find any documentation
about these files.

thanks in advance,
Afzal

On Thu, Mar 24, 2011 at 2:14 PM, Marco Bernasocchi
<marco at bernawebdesign.ch>wrote:

> I had the same issue, try sip 4.10.5 and PyQt 4.7.4 and it should work,
> there are some problems with kde backports versions.
> As well, i'd be nicer to sign your message with a name... ;)
> ciao
> Marco
>
> On 03/24/2011 06:00 AM, Learn Qgis wrote:
> > Hi All,
> >
> > Is there anybody who can help me out with Python integration in QGIS....
> > ?  Please help me... I need to learn to integrate Python in QGIS.
> >
> > thanks in Advance,
> > QGIS Learner
> >
> >
> > On Thu, Mar 17, 2011 at 10:34 PM, Charlie Sharpsteen
> > <chuck at sharpsteen.net <mailto:chuck at sharpsteen.net>> wrote:
> >
> >     On Wed, Mar 16, 2011 at 10:20 PM, Learn Qgis <learn.qgis at gmail.com
> >     <mailto:learn.qgis at gmail.com>> wrote:
> >
> >         Hi,
> >
> >         I am new to QGIS. I am trying to build the source code using
> >         CMAKE to Visual Studio 2008 environment with python binding.
> >
> >         I am using Python 2.7, SIP 4.12.1 and PyQt 4.8.3
> >
> >         I am getting below error....
> >
> >         *Couldn't load PyQGIS.
> >         Python support will be disabled.
> >         *
> >
> >         *
> >         Traceback (most recent call last):
> >           File "", line 1, in
> >         ImportError: dynamic module does not define init function
> (initcore)
> >
> >
> >
> >
> >
> >
> >
> >         *
> >
> >         *Python version:
> >         2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit
> (Intel)]
> >
> >         QGIS version:
> >         1.6.0-Copiapo 'Copiapo', exported
> >
> >         Python path:
> >         ['D:/dev/cpp/build/src/app/**Debug/./python', 'C:/Documents and
> >         Settings/Administrator/.qgis/**python', 'C:/Documents and
> >         Settings/Administrator/.qgis/**python/plugins',
> >         'D:/dev/cpp/build/src/app/**Debug/./python/plugins',
> >         'E:\\Python27\\Lib\\site-**packages', 'E:\\Python27\\Lib',
> >         'D:\\dev\\cpp\\build\\src\\**app\\Debug',
> >         'C:\\WINDOWS\\system32\\**python27.zip', 'E:\\Python27\\DLLs',
> >         'E:\\Python27\\lib\\plat-win', 'E:\\Python27\\lib\\lib-tk',
> >         'E:\\Python27']*
> >
> >
> >
> >         Please help me in resolving this error....
> >
> >
> >         thanks in advance...
> >
> >
> >     Usually this means that Python could not find the PyQt module or
> >     could not load it for some reason.  Check your environment
> >     variables---specifically PATH and PYTHONPATH.
> >
> >     -Charlie
> >
> >
> >
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> --
> Marco Bernasocchi
> www.bernawebdesign.ch
> skype: mbernasocchi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110324/85f3e17e/attachment.html


More information about the Qgis-developer mailing list