<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 6, 2015 at 10:10 AM, Denis Rouzaud <span dir="ltr"><<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Never used, I would think it would work directly.<br></div></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">​According to the plugin author the plugin with uic.loadUiTypes works on Linux but it certainly does not work on Windows.​</div></div><div><div class="gmail_default" style="font-size:small">​</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    But why not adding a new rule to the makefile to compile the ui?</div></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">​If that's necessary to get custom widgets work on all platforms, why not. But I don't know where to start to make that work.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Best wishes.</div><div class="gmail_default" style="font-size:small">Anita​</div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><div><div class="h5"><br>
    <br>
    <br>
    <br>
    <div>On 08/06/2015 10:06 AM, Anita Graser
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div style="font-size:small"><br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Thu, Aug 6, 2015 at 9:44 AM, Denis
            Rouzaud <span dir="ltr"><<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Well, how is
                compiled the UI file?<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>
              <div style="font-size:small">​The
                plugin builder creates a template that uses
                uic.loadUiType</div>
              <br>
              FORM_CLASS, _ = uic.loadUiType(os.path.join(<br>
              os.path.dirname(__file__), 'cartogram_dialog_base.ui'))
              <div style="font-size:small">​</div>
            </div>
            <div>
              <div style="font-size:small">​So the
                UI is compiled automatically when the plugin starts in
                QGIS.</div>
              <div style="font-size:small"><br>
              </div>
              <div style="font-size:small">Best
                wishes,</div>
              <div style="font-size:small">Anita​</div>
              <br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Usually, it is done
                prior to deployment using pyuic4<br>
                <br>
                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.<br>
                <br>
                Was pyuic4 run in an Osgeo shell?
                <div>
                  <div><br>
                    <br>
                    <br>
                    <br>
                    <div>On 08/06/2015 09:39 AM, Anita Graser wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div style="font-size:small"><br>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">On Thu, Aug 6, 2015
                            at 9:24 AM, Denis Rouzaud <span dir="ltr"><<a href="mailto:denis.rouzaud@gmail.com" target="_blank"></a><a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                              <div bgcolor="#FFFFFF" text="#000000"> You
                                need to have qgis lib in your python
                                path.<br>
                                On windows, that would be
                                C:\OSGeo4W\apps\qgis-dev\python\qgis<br>
                                To check this, just do "from qgis.gui
                                import *" in python. If you don't have
                                an error, then pyuic4 will work
                                properly.<br>
                              </div>
                            </blockquote>
                            <div><br>
                            </div>
                            <div>​My point is that the plugin needs to
                              work out of the box - and it doesn't. <br>
                            </div>
                            <div>
                              <div style="font-size:small">Usually all
                                paths are set correctly on Win in the
                                OSGeo shell. Only in this case there is
                                an issue.</div>
                              <div style="font-size:small"><br>
                              </div>
                              <div style="font-size:small">Best wishes,</div>
                              <div style="font-size:small">Anita</div>
                              <div style="font-size:small">​<br>
                              </div>
                            </div>
                          </div>
                          <br>
                        </div>
                        <div class="gmail_extra"><br>
                        </div>
                        <div class="gmail_extra"><br>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>