Skip to content

Broken functionality because of missing dependency should be shown in GUI #285

Closed

Description

@gdementen

And not only in an exception. For example, if one tried to export to Excel without xlwings installed (see larray-project/larray#1128), we raise an helpful exception but a user using the GUI would never see it.

Activity

  1. added this to the 0.35 milestone on Feb 7, 2025
  2. gdementen commented on Mar 12, 2025

    @gdementen
    CollaboratorAuthor

    In fact, the user-visible error message was already foreseen and this is apparently fixed in the devel branch already without changing the "outer function" with the error message code 😉 . The problem is that the exception raised (Exception) was not the same as the Exception caught (ImportError):

    Traceback (most recent call last):
      File "C:\soft\Miniconda3x64\envs\dev313\Lib\site-packages\larray_editor\arraywidget.py", line 1097, in to_excel
        self.data_adapter.to_excel(raw_data, axes_names, vlabels, hlabels)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\soft\Miniconda3x64\envs\dev313\Lib\site-packages\larray_editor\arrayadapter.py", line 373, in to_excel
        wb = la.open_excel()
      File "C:\soft\Miniconda3x64\envs\dev313\Lib\site-packages\larray\inout\xw_excel.py", line 643, in open_excel
        raise Exception("open_excel() is not available because xlwings is not installed")
    Exception: open_excel() is not available because xlwings is not installed
    
  3. gdementen commented on Dec 15, 2025

    @gdementen
    CollaboratorAuthor

    merged in #299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions