<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Roland,</p>
    <p>I've just tested the refnx package that you have recently pushed
      to Debian.</p>
    <p>The installation is performed with the current package found on
      tracker</p>
    <ul>
      <li>sudo apt install ./python3-refnx_0.1.33-2_amd64.deb
        python3-qtpy python3-matplotlib python3-periodictable<br>
      </li>
    </ul>
    <p>The qtpy, periodictable and matplotlib packages do not seem to be
      required dependencies in the refnx package. They should be added.
      By default Qt5 is selected.</p>
    <p>The refnx command then produces the error:</p>
    <blockquote>
      <p><font face="monospace">$ refnx<br>
/usr/lib/python3/dist-packages/refnx/reflect/reflect_model.py:200:
          UserWarning: Can't use the C abeles backend<br>
            warnings.warn("Can't use the C abeles backend")<br>
/usr/lib/python3/dist-packages/refnx/reflect/reflect_model.py:233:
          UserWarning: Using the SLOW reflectivity calculation.<br>
            warnings.warn("Using the SLOW reflectivity calculation.")<br>
          Traceback (most recent call last):<br>
            File "/usr/bin/refnx", line 33, in <module><br>
              sys.exit(load_entry_point('refnx==0.1.33', 'gui_scripts',
          'refnx')())<br>
                      
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
            File
          "/usr/lib/python3/dist-packages/refnx/reflect/_app/__init__.py",
          line 54, in main<br>
              sys.exit(gui(expt_file=expt_file))<br>
                       ^^^^^^^^^^^^^^^^^^^^^^^^<br>
            File
          "/usr/lib/python3/dist-packages/refnx/reflect/_app/__init__.py",
          line 32, in gui<br>
              myapp = MotofitMainWindow()<br>
                      ^^^^^^^^^^^^^^^^^^^<br>
            File
          "/usr/lib/python3/dist-packages/refnx/reflect/_app/view.py",
          line 86, in __init__<br>
              self.ui = uic.loadUi(os.path.join(UI_LOCATION,
          "motofit.ui"), self)<br>
                       
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
            File "/usr/lib/python3/dist-packages/PyQt5/uic/__init__.py",
          line 241, in loadUi<br>
              return DynamicUILoader(package).loadUi(uifile,
          baseinstance, resource_suffix)<br>
                    
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
            File
          "/usr/lib/python3/dist-packages/PyQt5/uic/Loader/loader.py",
          line 66, in loadUi<br>
              return self.parse(filename, resource_suffix)<br>
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
            File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py",
          line 1037, in parse<br>
              actor(elem)<br>
            File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py",
          line 828, in createUserInterface<br>
              self.traverseWidgetTree(elem)<br>
            File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py",
          line 806, in traverseWidgetTree<br>
              handler(self, child)<br>
            File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py",
          line 777, in createAction<br>
              self.setupObject("QAction", self.currentActionGroup or
          self.toplevelWidget,<br>
            File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py",
          line 230, in setupObject<br>
              self.wprops.setProperties(obj, branch)<br>
            File
          "/usr/lib/python3/dist-packages/PyQt5/uic/properties.py", line
          415, in setProperties<br>
              prop_value = self.convert(prop, widget)<br>
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
            File
          "/usr/lib/python3/dist-packages/PyQt5/uic/properties.py", line
          378, in convert<br>
              return func(prop[0], **args)<br>
                     ^^^^^^^^^^^^^^^^^^^^^<br>
            File
          "/usr/lib/python3/dist-packages/PyQt5/uic/properties.py", line
          129, in _enum<br>
              return self._pyEnumMember(prop.text)<br>
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
            File
          "/usr/lib/python3/dist-packages/PyQt5/uic/properties.py", line
          111, in _pyEnumMember<br>
              return getattr(QtCore.Qt, membername)<br>
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
          AttributeError: type object 'Qt' has no attribute
          'Qt::ShortcutContext::ApplicationShortcut'</font><br>
      </p>
    </blockquote>
    <p>This is a recent code, so perhaps Qt6 should be selected ? This
      is what appears at least in the github history at:</p>
    <ul>
      <li><a class="moz-txt-link-freetext" href="https://github.com/refnx/refnx">https://github.com/refnx/refnx</a></li>
    </ul>
    <p>Is there a way to have the qtpy package install and use the Qt6
      libraries ?</p>
    <p>Emmanuel.<br>
    </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>