<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Roland,</p>
    <p>some progress around pyimagetool. It is not intended to be used
      as an application, but only as a widget or through a jupyter
      notebook.</p>
    <p>However, it requires some files to be writable, which is wierd.</p>
    <p>A solution to identify the issue is to brute force:</p>
    <ul>
      <li>sudo chmod -R a+rwx /usr/lib/python3/dist-packages/pyimagetool<br>
      </li>
    </ul>
    <p>Then one can launch for instance</p>
    <ul>
      <li>jupyter-notebook
        /usr/share/pyimagetool/examples/ExampleNotebook.ipynb</li>
    </ul>
    <p>which fully works on bullseye.</p>
    <p><br>
    </p>
    <p>But is now broken on bookworm, as pyqt6 has changed some of its
      API.</p>
    <pre style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 1px 0px; margin: 0px; line-height: inherit; color: rgb(0, 0, 0); word-break: break-all; overflow-wrap: break-word; background-color: rgb(255, 255, 255); border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">File <span class="ansi-green-fg" style="box-sizing: border-box; color: rgb(0, 162, 80);">/usr/lib/python3/dist-packages/pyimagetool/PGImageTool.py:24</span>, in <span class="ansi-cyan-fg" style="box-sizing: border-box; color: rgb(96, 198, 200);">PGImageTool</span><span class="ansi-blue-fg" style="box-sizing: border-box; color: rgb(32, 143, 251);">()</span>
<span class="ansi-green-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(0, 116, 39); font-weight: bold;">     22</span> index_to_coord: List[<span style="box-sizing: border-box; color: rgb(0, 135, 0);">str</span>] <span style="box-sizing: border-box; color: rgb(98, 98, 98);">=</span> [<span style="box-sizing: border-box; color: rgb(175, 0, 0);">'</span><span style="box-sizing: border-box; color: rgb(175, 0, 0);">x</span><span style="box-sizing: border-box; color: rgb(175, 0, 0);">'</span>, <span style="box-sizing: border-box; color: rgb(175, 0, 0);">'</span><span style="box-sizing: border-box; color: rgb(175, 0, 0);">y</span><span style="box-sizing: border-box; color: rgb(175, 0, 0);">'</span>, <span style="box-sizing: border-box; color: rgb(175, 0, 0);">'</span><span style="box-sizing: border-box; color: rgb(175, 0, 0);">z</span><span style="box-sizing: border-box; color: rgb(175, 0, 0);">'</span>, <span style="box-sizing: border-box; color: rgb(175, 0, 0);">'</span><span style="box-sizing: border-box; color: rgb(175, 0, 0);">t</span><span style="box-sizing: border-box; color: rgb(175, 0, 0);">'</span>]
<span class="ansi-green-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(0, 116, 39); font-weight: bold;">     23</span> frame_rate <span style="box-sizing: border-box; color: rgb(98, 98, 98);">=</span> <span style="box-sizing: border-box; color: rgb(98, 98, 98);">60</span>
<span class="ansi-green-fg" style="box-sizing: border-box; color: rgb(0, 162, 80);">---> 24</span> bin_pen <span style="box-sizing: border-box; color: rgb(98, 98, 98);">=</span> pg<span style="box-sizing: border-box; color: rgb(98, 98, 98);">.</span>mkPen(style<span style="box-sizing: border-box; color: rgb(98, 98, 98);">=</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43);">pg</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43); color: rgb(98, 98, 98);">.</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43);">Qt</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43); color: rgb(98, 98, 98);">.</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43);">QtCore</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43); color: rgb(98, 98, 98);">.</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43);">Qt</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43); color: rgb(98, 98, 98);">.</span><span class="ansi-yellow-bg" style="box-sizing: border-box; background-color: rgb(221, 182, 43);">DashLine</span>)
<span class="ansi-green-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(0, 116, 39); font-weight: bold;">     26</span> mouse_hover <span style="box-sizing: border-box; color: rgb(98, 98, 98);">=</span> QtCore<span style="box-sizing: border-box; color: rgb(98, 98, 98);">.</span>Signal(<span style="box-sizing: border-box; color: rgb(0, 135, 0);">str</span>)  <span style="box-sizing: border-box; color: rgb(95, 135, 135);"># event fired when the mouse moves on an image</span>
<span class="ansi-green-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(0, 116, 39); font-weight: bold;">     28</span> <span class="ansi-bold" style="box-sizing: border-box; font-weight: bold; color: rgb(0, 135, 0);">def</span> <span style="box-sizing: border-box; color: rgb(0, 0, 255);">__init__</span>(<span style="box-sizing: border-box; color: rgb(0, 135, 0);">self</span>, data: RegularDataArray, parent<span style="box-sizing: border-box; color: rgb(98, 98, 98);">=</span><span class="ansi-bold" style="box-sizing: border-box; font-weight: bold; color: rgb(0, 135, 0);">None</span>, layout<span style="box-sizing: border-box; color: rgb(98, 98, 98);">=</span><span style="box-sizing: border-box; color: rgb(98, 98, 98);">0</span>):

<span class="ansi-red-fg" style="box-sizing: border-box; color: rgb(231, 92, 88);">AttributeError</span>: type object 'Qt' has no attribute 'DashLine'</pre>
    <p></p>
    <div class="moz-cite-prefix">I pushed an issue on the relevant
      github project:</div>
    <div class="moz-cite-prefix">
      <ul>
        <li><a class="moz-txt-link-freetext"
            href="https://github.com/kgord831/PyImageTool/issues/5">https://github.com/kgord831/PyImageTool/issues/5</a></li>
      </ul>
    </div>
    <div class="moz-cite-prefix">So my conclusion is that this is
      deprecated, and not maintained anymore (last commit dates from Jan
      2021).</div>
    <div class="moz-cite-prefix">An adaption to current QT6 would be
      needed. The only solution, as it works for bullseye, is to save
      the package into bullseye-backport.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">For freeart/tomogui, this is the same,
      the package is not anymore adapted to Debian libraries and not
      maintained. It does not even build. <br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Let's send bug reports to debian lists,
      and let them be kicked-out.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    Emmanuel.
    <p></p>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title>signature</title>
      <div style="font-family: arial, helvetica, sans-serif; font-size:
        12pt; color: rgb(0, 0, 0);">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div>
          <div><span style="font-family: courier new, courier, monaco,
              monospace, sans-serif;"><span style="color: rgb(0, 0,
                255);">/ ___|<span style="color: rgb(255, 153, 0);">__/\_</span>|
                |   | ____|_ _| |</span>      FARHI Emmanuel</span><br>
            <span style="font-family: courier new, courier, monaco,
              monospace, sans-serif;"><span style="color: rgb(0, 0,
                255);">\___ \<span style="color: rgb(255, 153, 0);">\  
                   </span>| |   |  _|  | || |</span>      Div Exp/Data
              Reduction and Analysis Team</span><br>
            <span style="font-family: courier new, courier, monaco,
              monospace, sans-serif;"><span style="color: rgb(0, 0,
                255);"> ___) <span style="color: rgb(255, 153, 0);">/_
                   _</span>| |___| |___ | || |___</span>   Tel : <span
                class="Object" role="link"
                id="OBJ_PREFIX_DWT373_com_zimbra_phone"><a
                  href="callto:+33%20%281%29%2069%2035%2096%2004"
                  onclick="window.top.Com_Zimbra_Phone.unsetOnbeforeunload()">+33
                  (1) 69 35 96 04</a></span></span><br>
            <span style="font-family: courier new, courier, monaco,
              monospace, sans-serif;"><span style="color: rgb(0, 0,
                255);">|____/ <span style="color: rgb(255, 153, 0);"> \/</span>
                |_____|_____|___|_____|</span>  Saint-Aubin BP 48 -
              91192 GIF/YVETTE CEDEX</span><br>
            <span style="font-family: courier new, courier, monaco,
              monospace, sans-serif;">                       <span
                style="color: rgb(0, 0, 255);">SYNCHROTRON</span>  <span
                class="Object" role="link"
                id="OBJ_PREFIX_DWT374_com_zimbra_url"><a target="_blank"
                  href="http://www.synchrotron-soleil.fr"
                  class="moz-txt-link-freetext">http://www.synchrotron-soleil.fr</a></span></span></div>
        </div>
      </div>
    </div>
  </body>
</html>