[Qgis-developer] cannot create qgis application from python: errors with provider plugins

Martin Dobias wonder.sk at gmail.com
Mon Mar 16 11:09:25 EDT 2009


On Fri, Mar 13, 2009 at 12:17 AM, G. Allegri <giohappy at gmail.com> wrote:
> I'm working on Windows Vista, with the OSGeo4W stack.
> Just to get in touch with the Windows environemnt, I've tried to run
> the very first example (2_basic_main_window) from the tutorial from
> Martin [1], last version.
> I have:
>
>  - corrected the QMapCanvas attribute from "useQImageToRender" to
> "useImageToRender" (should the tutorial be updated?)
>  - set the qgis_prefix to "C:\\OSGeo4W\\apps\\qgis-dev"
>  - changed the hardcoded layer to one of mine

I'm going to update the examples to work with QGIS 1.0.


> Running the script from the OSGeo4W shell I get a list of errors
> referring to problems with various data providers:
> http://www.geospatial.it/allegri/log.txt

The errors are shown just with plugins (they're not providers). From
the log I see that providers loaded correctly.

> The interface comes up, but nothing is rendered (obviously, having
> seen the log!)
> Is it something with the build of qgis_dev in the OSGeo4W package?
> The same happens with QGis Kore.

You must first click on the upper left button to load and show the test layer.

Martin


More information about the Qgis-developer mailing list