mayavi icon indicating copy to clipboard operation
mayavi copied to clipboard

ImportError: Could not import backend for traitsui. Make sure you have a suitable UI toolkit like PyQt/PySide or wxPython installed.

Open KangChou opened this issue 5 years ago • 5 comments

ImportError: Could not import backend for traitsui. Make sure you have a suitable UI toolkit like PyQt/PySide or wxPython installed.

KangChou avatar Jun 26 '21 09:06 KangChou

Hey @KangChou. I'm going to close this issue but we can continue diagnosing your installation problems on the issue.

Did you install one of those UI toolkits into your environment? If you're using Python 3, we would recommend PyQt5 or PySide2, unless you explicitly want to use wxPython.

If you did install one of those UI toolkits, can you try setting the ETS_TOOLKIT environment variable? For example, for the Qt packages, ETS_TOOLKIT environment variable needs to be set to qt.

Hope that helps.

rahulporuri avatar Jun 28 '21 04:06 rahulporuri

I am facing the same problem,even pyqt5 is installed in conda env

hitbuyi avatar Oct 06 '22 11:10 hitbuyi

I am facing the same problem,even pyqt5 is installed in conda env

I have the same problem, have you resolved it?

AvrilPi avatar Mar 15 '24 15:03 AvrilPi

Hey @KangChou. I'm going to close this issue but we can continue diagnosing your installation problems on the issue.

Did you install one of those UI toolkits into your environment? If you're using Python 3, we would recommend PyQt5 or PySide2, unless you explicitly want to use wxPython.

If you did install one of those UI toolkits, can you try setting the ETS_TOOLKIT environment variable? For example, for the Qt packages, ETS_TOOLKIT environment variable needs to be set to qt.

Hope that helps.

Hey@rahulporuri, I downloaded mayavi in conda env, and run mayavi2 to successfully display the UI, but I get the same error when I call figure() in python program, could you give me some advice?

AvrilPi avatar Mar 15 '24 16:03 AvrilPi

Hey @KangChou. I'm going to close this issue but we can continue diagnosing your installation problems on the issue. Did you install one of those UI toolkits into your environment? If you're using Python 3, we would recommend PyQt5 or PySide2, unless you explicitly want to use wxPython. If you did install one of those UI toolkits, can you try setting the ETS_TOOLKIT environment variable? For example, for the Qt packages, ETS_TOOLKIT environment variable needs to be set to qt. Hope that helps.

Hey@rahulporuri, I downloaded mayavi in conda env, and run mayavi2 to successfully display the UI, but I get the same error when I call figure() in python program, could you give me some advice?

have you fixed it?

rlczddl avatar Feb 24 '25 03:02 rlczddl