[Debian-pan-maintainers] RefNX Debian packaging:

Emmanuel FARHI emmanuel.farhi at synchrotron-soleil.fr
Fri Aug 18 08:55:49 BST 2023


Hi Roland,

I've just tested the refnx package that you have recently pushed to Debian.

The installation is performed with the current package found on tracker

  * sudo apt install ./python3-refnx_0.1.33-2_amd64.deb python3-qtpy
    python3-matplotlib python3-periodictable

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.

The refnx command then produces the error:

    $ refnx
    /usr/lib/python3/dist-packages/refnx/reflect/reflect_model.py:200:
    UserWarning: Can't use the C abeles backend
       warnings.warn("Can't use the C abeles backend")
    /usr/lib/python3/dist-packages/refnx/reflect/reflect_model.py:233:
    UserWarning: Using the SLOW reflectivity calculation.
       warnings.warn("Using the SLOW reflectivity calculation.")
    Traceback (most recent call last):
       File "/usr/bin/refnx", line 33, in <module>
         sys.exit(load_entry_point('refnx==0.1.33', 'gui_scripts',
    'refnx')())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File
    "/usr/lib/python3/dist-packages/refnx/reflect/_app/__init__.py",
    line 54, in main
         sys.exit(gui(expt_file=expt_file))
                  ^^^^^^^^^^^^^^^^^^^^^^^^
       File
    "/usr/lib/python3/dist-packages/refnx/reflect/_app/__init__.py",
    line 32, in gui
         myapp = MotofitMainWindow()
                 ^^^^^^^^^^^^^^^^^^^
       File "/usr/lib/python3/dist-packages/refnx/reflect/_app/view.py",
    line 86, in __init__
         self.ui = uic.loadUi(os.path.join(UI_LOCATION, "motofit.ui"), self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/usr/lib/python3/dist-packages/PyQt5/uic/__init__.py", line
    241, in loadUi
         return DynamicUILoader(package).loadUi(uifile, baseinstance,
    resource_suffix)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/usr/lib/python3/dist-packages/PyQt5/uic/Loader/loader.py",
    line 66, in loadUi
         return self.parse(filename, resource_suffix)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py", line
    1037, in parse
         actor(elem)
       File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py", line
    828, in createUserInterface
         self.traverseWidgetTree(elem)
       File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py", line
    806, in traverseWidgetTree
         handler(self, child)
       File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py", line
    777, in createAction
         self.setupObject("QAction", self.currentActionGroup or
    self.toplevelWidget,
       File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py", line
    230, in setupObject
         self.wprops.setProperties(obj, branch)
       File "/usr/lib/python3/dist-packages/PyQt5/uic/properties.py",
    line 415, in setProperties
         prop_value = self.convert(prop, widget)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/usr/lib/python3/dist-packages/PyQt5/uic/properties.py",
    line 378, in convert
         return func(prop[0], **args)
                ^^^^^^^^^^^^^^^^^^^^^
       File "/usr/lib/python3/dist-packages/PyQt5/uic/properties.py",
    line 129, in _enum
         return self._pyEnumMember(prop.text)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/usr/lib/python3/dist-packages/PyQt5/uic/properties.py",
    line 111, in _pyEnumMember
         return getattr(QtCore.Qt, membername)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: type object 'Qt' has no attribute
    'Qt::ShortcutContext::ApplicationShortcut'

This is a recent code, so perhaps Qt6 should be selected ? This is what 
appears at least in the github history at:

  * https://github.com/refnx/refnx

Is there a way to have the qtpy package install and use the Qt6 libraries ?

Emmanuel.

-- 
signature
/ ___|__/\_| |   | ____|_ _| |      FARHI Emmanuel
\___ \\ | |   |  _|  | || |      Div Exp/Data Reduction and Analysis Team
  ___) /_  _| |___| |___ | || |___   Tel : +33 (1) 69 35 96 04 
<callto:+33%20%281%29%2069%2035%2096%2004>
|____/  \/ |_____|_____|___|_____|  Saint-Aubin BP 48 - 91192 GIF/YVETTE 
CEDEX
SYNCHROTRON http://www.synchrotron-soleil.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20230818/d8337bed/attachment-0001.htm>


More information about the Debian-pan-maintainers mailing list