ImportError: on python ./mss_pyui.py
Issue #177
closed
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)
-
-
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)
-
reporter - changed title to ImportError: on python ./mss_pyui.py
-
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.
-
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.
-
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.
-
reporter - changed status to closed
reopen if it happens again
- Log in to comment
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?