<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>I was wondering about that.  Chimera's PyQt5 package is actually
      named PyQt5_commercial.  It should be possible to install
      PyQtChart outside of the system location, you just need to insure
      that all of its binary dependencies are in memory before it is
      loaded.  But you would need to compile and package your own
      version.  Way easier to stick with matplotlib.</p>
    <p><br>
    </p>
    <p>Another option is to use the PyQtWebEngine functionality and use
      a JavaScript plotting library.  The ViewDock tool does that.</p>
    <p><br>
    </p>
    <p>    -- Greg<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 5/13/2020 8:12 PM, Anthony James
      Schaefer wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:MN2PR02MB590163CED7D528B8FB90DB20FCBC0@MN2PR02MB5901.namprd02.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="font-family: Arial, Helvetica, sans-serif;">Greg, </span><br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="font-family: Arial, Helvetica, sans-serif;">Thanks
          for the response. I've tried what you suggested, and
          unfortunately the same thing happens. It looks as though pip
          doesn't recognize ChimeraX's PyQt5 as satisfactory.
        </span><br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="font-family: Arial, Helvetica, sans-serif;">I am
          starting to second pyqtchart. It looks as though QChart goes
          right in the PyQt5 directory. I've tried to cheese this with
          importlib to no avail (wouldn't use it even if it did). If the
          QChart module has to get installed inside ChimeraX's PyQt5,
          users would probably have to run ChimeraX with privileges when
          they install my bundle (at least on windows if they used the
          default install location). I don't want that, so I'll probably
          stick with matplotlib.
        </span><br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="font-family: Arial, Helvetica, sans-serif;">My
          bundle will be on the toolshed after I get my own tools to
          work (preferably as intended) and we get our dependency up on
          PyPI. IMO, manually installing AaronTools is the most involved
          part of my bundle's installation. The toolshed won't make that
          easier until it's on PyPI. On top of that, I've got several
          tools that don't do what I want.
          <br>
        </span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="font-family: Arial, Helvetica, sans-serif;"></span><br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="font-family: Arial, Helvetica, sans-serif;">Best,</span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="font-family: Arial, Helvetica, sans-serif;">Tony</span><br>
      </div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b> Greg
          Couch <a class="moz-txt-link-rfc2396E" href="mailto:gregc@cgl.ucsf.edu"><gregc@cgl.ucsf.edu></a><br>
          <b>Sent:</b> Wednesday, May 13, 2020 9:08 PM<br>
          <b>To:</b> Anthony James Schaefer
          <a class="moz-txt-link-rfc2396E" href="mailto:tony.schaefer@uga.edu"><tony.schaefer@uga.edu></a><br>
          <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:chimerax-users@cgl.ucsf.edu">chimerax-users@cgl.ucsf.edu</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:chimerax-users@cgl.ucsf.edu"><chimerax-users@cgl.ucsf.edu></a><br>
          <b>Subject:</b> Re: [chimerax-users] pyqtchart</font>
        <div> </div>
      </div>
      <div><font color="BA0C2F">[EXTERNAL SENDER - PROCEED CAUTIOUSLY]</font><br>
        <br>
        <div>
          <p>The easiest solution for you would be for ChimeraX to
            bundle in the compatible version of PyQtChart.  But we can't
            without releasing ChimeraX under the GPL license.   And
            we're not willing to do that at this time.</p>
          <p><br>
          </p>
          <p>So the next best thing is for you to give an explicit
            version in the dependency tag.  Right now, ChimeraX is using
            PyQt5 5.12.3 with Qt 5.12.8.  So the dependencies should be
            (untested!):</p>
          <p> ...<br>
            <Dependencies><br>
                <Dependency name="pyqtchart" version="==5.12"/</p>
          <p>    <Dependency name="ChimeraX-Core"
            version="~=1.0rc1"/></p>
          <p></Dependencies><br>
            ...</p>
          <p>And after the ChimeraX 1.0 release, change that dependency
            to "~=1.0.0", and you should consider making your bundle
            generally available on the ChimeraX Toolshed.  Later, when
            ChimeraX 1.1 comes out that uses a different version of
            PyQt, you will need to make a new release of your bundle
            with those dependencies.  That is, your bundle will need to
            be tied to the exact version of ChimeraX.<br>
          </p>
          <p><br>
          </p>
          <p>    HTH,</p>
          <p><br>
          </p>
          <p>    Greg<br>
          </p>
          <p><br>
          </p>
          <div class="x_moz-cite-prefix">On 5/13/2020 5:11 PM, Anthony
            James Schaefer wrote:<br>
          </div>
          <blockquote type="cite">
            <style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <span style="font-family:Arial,Helvetica,sans-serif">Hello,</span></div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <br>
            </div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <span style="font-family:Arial,Helvetica,sans-serif">I'm
                interesting in using pyqtchart (</span><a
                href="https://pypi.org/project/PyQtChart/"
                id="LPNoLP666198" moz-do-not-send="true"><span
                  style="font-family:Arial,Helvetica,sans-serif">https://pypi.org/project/PyQtChart/</span></a><span
                style="font-family:Arial,Helvetica,sans-serif">) as an
                alternative to matplotlib for some plots in my bundle (I
                like the default style better, it resizes better - small
                things like that). If I list pyqtchart as a dependency
                in my bundle_info.xml like</span></div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <br>
            </div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <span style="font-family:Arial,Helvetica,sans-serif">...</span><br>
            </div>
            <span style="font-family:Arial,Helvetica,sans-serif"><Dependencies></span><br>
            <div><span style="font-family:Arial,Helvetica,sans-serif">   
                <Dependency name="pyqtchart"/></span><br>
            </div>
            <div><span style="font-family:Arial,Helvetica,sans-serif"></Dependencies></span></div>
            <div><span style="font-family:Arial,Helvetica,sans-serif">...<br>
              </span></div>
            <div><span><br>
              </span></div>
            <div><span style="font-family:Arial,Helvetica,sans-serif">a
                new version of PyQt5 gets installed in the directory
                where bundles get installed. The QChart module from
                pyqtchart gets installed in this new PyQt5 package. I
                can't use the QChart module because it's not in the
                PyQt5 that ChimeraX uses. </span><span><br>
              </span></div>
            <div><span><br>
              </span></div>
            <div><span style="font-family:Arial,Helvetica,sans-serif">Is
                there anything I can do with my bundle to get it to
                install a usable pyqtchart?</span></div>
            <div><span><br>
              </span></div>
            <div><span style="font-family:Arial,Helvetica,sans-serif">Thanks,</span></div>
            <div><span><br>
              </span></div>
            <div><span style="font-family:Arial,Helvetica,sans-serif">Tony</span><span><br>
              </span></div>
            <br>
            <fieldset class="x_mimeAttachmentHeader"></fieldset>
            <pre class="x_moz-quote-pre">_______________________________________________
ChimeraX-users mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:ChimeraX-users@cgl.ucsf.edu" moz-do-not-send="true">ChimeraX-users@cgl.ucsf.edu</a>
Manage subscription:
<a class="x_moz-txt-link-freetext" href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" moz-do-not-send="true">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a>
</pre>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </body>
</html>