<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
This is not fixed.<br>
<br>
Some background info:<br>
<br>
<a class="moz-txt-link-freetext" href="http://gis.stackexchange.com/questions/139625/qgis-plugin-problems-importing-resources-resources-rc-file-plugin-doasnt-l/155599#155599">http://gis.stackexchange.com/questions/139625/qgis-plugin-problems-importing-resources-resources-rc-file-plugin-doasnt-l/155599#155599</a><br>
<br>
This is a problem with "uic.loadUiType".<br>
<br>
I have have determined that if you save your "ui" file in QT
designer with the resources open after you have added a resource,
you get this error.<br>
<br>
This is because QT designer adds<br>
<br>
<blockquote><resources><br>
<include location="resources.qrc"/><br>
</resources><br>
</blockquote>
at the end of the file and this causes uic.loadUiType to look for a
"resources_rc" as "_rc" is a default suffix.<br>
<br>
I think closing the resource browser before saving the "ui" file in
QT Designer will keep this added resources lines from being added to
the end of the "ui" file.<br>
<br>
<div class="moz-signature"><b>Worth Lutz</b><br>
<br>
<br>
</div>
<div class="moz-cite-prefix">On 11/3/2015 6:03 AM, Richard
Duivenvoorde wrote:<br>
</div>
<blockquote cite="mid:56389491.2020709@duif.net" type="cite">
<pre wrap="">On 03-11-15 11:45, Anita Graser wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Tue, Nov 3, 2015 at 10:49 AM, Geo DrinX <<a class="moz-txt-link-abbreviated" href="mailto:geodrinx@gmail.com">geodrinx@gmail.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:geodrinx@gmail.com"><mailto:geodrinx@gmail.com></a>> wrote:
Hello all,
probably you just know, but I found that "PluginBuilder" plugin for
QGIS writes at line 26 of the main .py file the following code:
import resources
I think this is wrong, because in run it returns a python error.
The correct code is:
import resources_rc
Hi Roberto,
Afaik, the plugin builder code is not wrong. You just have to adjust the
name of the output file when compiling the resources.
Best wishes,
Anita
</pre>
</blockquote>
<pre wrap="">
Hi Roberto,
I've had this issue also some time ago, but according to Gary it should
be fixed:
<a class="moz-txt-link-freetext" href="https://github.com/g-sherman/Qgis-Plugin-Builder/issues/34">https://github.com/g-sherman/Qgis-Plugin-Builder/issues/34</a>
Note off course that plugins build with an older version of the builder
still will have the problem.
If you still have this problem with a current plugin, please report back
at the issuelist at Github
Regards,
Richard Duivenvoorde
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</body>
</html>