-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
importing mayavi.mlab results in error #875
Comments
Most likely you do not have a GUI toolkit installed into your environment. You need to have one of PyQt, PySide2 or wxPython (version 3.x, currently) installed. |
I've installed both PyQt and PySide2 but I still get the error, i've checked my pip list and they are both installed. Do I need to set them somehow before importing? |
I also have the same problem.
Could anyone suggest me how to solve it? I have installed both pyqt and VTK |
@aconceicao The traceback you show looks unrelated to the toolkit error the OP was reporting. There's a separate issue here, which is that the |
Same error. I have PyQt5 installed
Also, typing mayavi2 in the cmd opens the GUI |
@Huzaifg Thanks for the report. It would be really helpful if you could show the complete traceback, and give system information and provide exact instructions to reproduce. |
Hey @mdickinson!
I am building an executable using Pyinstaller which uses mayavi. I have created a virtual environment using virtualenv with all the required modules installed. Mayavi opens in the virtual environment and |
Ah, PyInstaller. In that case the problem is likely related to enthought/pyface#350. |
I have the same problem but am not using pyinstaller. |
@dorkama Thanks for the report. Can you provide more information about exactly what you did, what operating system you're using, what versions of Python, Mayavi, VTK and other packages you're using, where you got them from, and exactly what results you got (including any relevant tracebacks)? We'd be happy to help, but there are many variables here and it's hard to diagnose or reproduce your issue without more information. |
Happens also in VS code debug mode. |
When I try and use
import mayavi.mlab
I get the following issue:
No traitsui.toolkits plugin found for toolkit null
Does anyone know how to fix this?
Thank you
The text was updated successfully, but these errors were encountered: