Skip to content
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

Error trying to view pysph examples (windows 10, anaconda, python 3.7.4) #315

Open
githubrho opened this issue Jul 3, 2021 · 5 comments

Comments

@githubrho
Copy link

githubrho commented Jul 3, 2021

@prabhuramachandran

I get

RuntimeError: No pyface.toolkits plugin could be loaded for qt4

pyqt is installed (according to anaconda navigator). Should PyQT be downgraded to PyQT4?

@prabhuramachandran
Copy link
Contributor

Sorry this is an issue with bitrot on the pysph repo that I will fix ASAP -- the ETS_TOOLKIT used to be qt4 now it is qt, for now do this export ETS_TOOLKIT=qt to fix the problem. Please let me know if that fixes it. Thanks.

@prabhuramachandran
Copy link
Contributor

Actually it may not be this at all. What have you installed pyqt5 or pyside2? It is possible that there is some incompatibility with the VTK you have installed and pyqt. You can test in python with:

import vtk
from PyQt5 import QtGui

assuming pyqt5 above. If that import is failing there is an issue.

@githubrho
Copy link
Author

According to anaconda navigator I have QT Console 5.1.0. When I tried import vtk in python I get:

Traceback (most recent call last):
File "C:\Users---\Anaconda3\lib\site-packages\vtkmodules\vtkIOParallel.py", line 5, in
from .vtkIOParallelPython import *
ImportError: DLL load failed: The specified procedure could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users---\Anaconda3\lib\site-packages\vtk.py", line 32, in
all_spec.loader.exec_module(all_m)
File "C:\Users---\Anaconda3\lib\site-packages\vtkmodules\all.py", line 83, in
from .vtkIOParallel import *
File "C:\Users---\Anaconda3\lib\site-packages\vtkmodules\vtkIOParallel.py", line 9, in
from vtkIOParallelPython import *
ModuleNotFoundError: No module named 'vtkIOParallelPython'

@githubrho
Copy link
Author

Actually I have python 3.7.4

Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32

I have vtk 8.2.0 and vtk--PKG (not sure what this is) installed

@githubrho githubrho changed the title Error trying to view pysph examples (windows 10, anaconda, python 3.8) Error trying to view pysph examples (windows 10, anaconda, python 3.7.4) Jul 4, 2021
@prabhuramachandran
Copy link
Contributor

prabhuramachandran commented Feb 24, 2022

So the VTK modules are not installed properly in your environment. I have found that it is easiest to just pip install vtk to install VTK. Can you try with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants