ImportError: on python ./mss_pyui.py

Issue #177 closed
Reimar Bauer created an issue

We have a missing module which gives this error

 python ./mss_pyui.py
Traceback (most recent call last):
  File "./mss_pyui.py", line 46, in <module>
    from mslib.msui.mss_qt import ui_mainwindow as ui
ImportError: cannot import name ui_mainwindow

Comments (7)

  1. Joern Ungermann

    The module in question is present and it works on my end for both PyQT4 and PyQt5. But there may be a timing thing with the order of how the modules are imported and executed. Can you provide instructions how to reproduce the error? Does this relate to the anaconda installed package or the development in the git repo?

  2. Reimar Bauer reporter

    everything works using pycharm or the conda installed program but that has also worked some time ago

    /msui$ python ./mss_pyui.py
    WARNING:nappy.nappy_api:You cannot use nappy NetCDF conversion tools as your system does not have CDMS installed, or it is not in your sys.path.
    Traceback (most recent call last):
      File "./mss_pyui.py", line 57, in <module>
        from mslib.utils import config_loader, setup_logging
    ImportError: cannot import name setup_logging
    CRITICAL:root:Fatal error: Traceback (most recent call last):
      File "./mss_pyui.py", line 57, in <module>
        from mslib.utils import config_loader, setup_logging
    ImportError: cannot import name setup_logging
    
    QWidget: Must construct a QApplication before a QPaintDevice
    Abgebrochen (Speicherabzug geschrieben)
    
  3. Joern Ungermann

    Is this the same or a related error? I also miss a more concrete description of how to replicate the error.

    For the example above, it is not even clear, what mslib is found by mss_pyui as the local one shouldnt be.

  4. Reimar Bauer reporter

    it is the same poblem. But it is only a kind of develoment issue.

    I can ran py.test from my terminal using the env and that is able to do all tests.

  5. Reimar Bauer reporter

    seems to got solved by one of the other commits before.

    ~/projects/mss/mslib/msui$ python ./mss_pyui.py
    WARNING:nappy.nappy_api:You cannot use nappy NetCDF conversion tools as your system does not have CDMS installed, or it is not in your sys.path.
    INFO: Launching user interface...
    GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
    
  6. Log in to comment