[Qgis-developer] Compiling ui files with custom widgets creates wrong imports
Jürgen E. Fischer
jef at norbit.de
Sat Sep 19 02:47:06 PDT 2015
Hi Lauri,
On Sat, 19. Sep 2015 at 12:11:11 +0300, Lauri Kajan wrote:
> The actual problem might be that
> C:\OSGeo4W64\apps\qgis-dev\python\PyQt4\uic\widget-plugins\qgis_customwidgets.py
> file is not found by pyuic4.
> After I copied that file
> to C:\OSGeo4W64\apps\Python27\Lib\site-packages\PyQt4\uic\widget-plugins
> everything works ok.
>
> Is this a osgeo4w bug or could this be fixed by us?
> Should the qgis postinstall bat copy qgis_customwidgets.py file to the
> right place?
No, qgis-dev might not be the only installed version - so you have to setup the
PYTHONPATH to use the version you target.
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
QGIS release manager (PSC) Germany IRC: jef on FreeNode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150919/bfa72b3b/attachment.pgp>
More information about the Qgis-developer
mailing list