[Qgis-developer] QGIS Python support in a library
Tom Elwertowski
telwertowski at comcast.net
Thu May 29 12:06:53 EDT 2008
A full path seems to be needed for QLibrary to find libqgispython on a Mac. I don't know if this is a Qt deficiency but did notice other QLibrary instances are using full paths.
After loading libqgispython, I get "Import error: No module named qgis.core" The Python path included with this message did not contain a path to the Mac qgis bundle. I assume it was looking for share/qgis/python/qgis/core.so
All paths for all components probably need to be checked for the Mac. I may not have time to get through everything for at least a day.
I also had problems building the Mac libqgispython. A quick look at CMakeLists.txt suggests this shouldn't be necessary but I needed to manually add the path to libgeos to the generated Makefiles.
Tom
John C. Tull wrote:
> On May 28, 2008, at 4:28 PM, Martin Dobias wrote:
>
>> On Thu, May 29, 2008 at 12:04 AM, John C. Tull
>> <john.tull at wildnevada.org> wrote:
>>> With some patches from Jurgen, it is now building. Unfortunately,
>>> python is
>>> disabled in the running binary that I built.
>>
>> If you build debug version, at some stage during initialization it
>> shows information about success / failure of loading the qgispython
>> library and initializing python. Could you check what does it say?
>>
>> Martin
>
> This is reported:
>
> 5/28/08 5:38:10 PM [0x0-0x4d04d].org.qgis.qgis[7306] Debug:
> /Users/jctull/sources/qgis/trunk/src/app/qgisapp.cpp: 385: (QgisApp)
> Couldn't load Python support library.
>
> John
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
More information about the Qgis-developer
mailing list