I have been fighting for a long time with configuration of xlwings to make the following modelx line to work with it:
from qtpy.QtWidgets import QApplication
Sometimes I succedded, but with the recent Anaconda update I have this issue again.
I don't use QApplication GUI. The problem seems to be that the import command doesn't break immediately and somewhere underneath it throws
qtpy.PythonQtError: No Qt bindings could be found raise PythonQtError('No Qt bindings could be found')
This errors isn't catched by except ImportError statement in the code and xlwings crashes.
So I'm now commenting out line
from modelx.qtgui.api import *
in the modelx __init__.py, but that's ugly
I have been fighting for a long time with configuration of xlwings to make the following modelx line to work with it:
from qtpy.QtWidgets import QApplication
Sometimes I succedded, but with the recent Anaconda update I have this issue again.I don't use QApplication GUI. The problem seems to be that the import command doesn't break immediately and somewhere underneath it throws
qtpy.PythonQtError: No Qt bindings could be found raise PythonQtError('No Qt bindings could be found')
This errors isn't catched byexcept ImportError
statement in the code and xlwings crashes.So I'm now commenting out line
from modelx.qtgui.api import *
in the modelx__init__.py
, but that's ugly