[Qgis-developer] Compiling ui files with custom widgets creates wrong imports

Denis Rouzaud denis.rouzaud at gmail.com
Thu Aug 6 00:44:37 PDT 2015


Well, how is compiled the UI file?
Usually, it is done prior to deployment using pyuic4

If pyuic4 was run without the proper python path, you won't have any 
error at compilation but the plugin won't work if it contains QGIS widgets.

Was pyuic4 run in an Osgeo shell?



On 08/06/2015 09:39 AM, Anita Graser wrote:
>
>
> On Thu, Aug 6, 2015 at 9:24 AM, Denis Rouzaud <denis.rouzaud at gmail.com 
> <mailto:denis.rouzaud at gmail.com>> wrote:
>
>     You need to have qgis lib in your python path.
>     On windows, that would be C:\OSGeo4W\apps\qgis-dev\python\qgis
>     To check this, just do "from qgis.gui import *" in python. If you
>     don't have an error, then pyuic4 will work properly.
>
>
> ​My point is that the plugin needs to work out of the box - and it 
> doesn't.
> Usually all paths are set correctly on Win in the OSGeo shell. Only in 
> this case there is an issue.
>
> Best wishes,
> Anita
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150806/8e013c9e/attachment.html>


More information about the Qgis-developer mailing list