Cannot open VTK output file

Using conda install -c conda-forge jsoncpp==1.8.1 has resulted in the MFiX vtk/3D modeling functioning properly in the mfix-21.1.2 environment!

Thank you very much Charles and Jeff for working with us on this issue.

1 Like

Thank you for your patience. We will do another point release on Monday to address this issue, and hopefully this work around will be sufficient till then.

thanks you this work for me

Hi,Jeff. I’m sorry to disturb you, I have tried all ways mentioned above but still failed to solve this problem. What can I do?

@Y_Guo : We want to help you get this sorted out. Are you on Windows or Linux? What version of the Anaconda installer are you using? What’s the error you are getting?

– Charles

I also run the “conda install -c conda-forge jsoncpp==1.8.1” on both windows and Linux but it did not help. I am using anaconda 4.10.1 and python 3.7.10
In addition, I found the button under the geometry column can not work normally. It did not allow me to introduce the STL file.

I install on Linux and the anaconda version is 4.10.1.
The detailed errors are as follows:

Could not import VTK, please check your installation.
traceback:
Traceback (most recent call last):
File “/home/user/anaconda3/envs/mfix-21.1.2/lib/python3.7/site-packages/vtkmodules/vtkIOParallel.py”, line 5, in
from .vtkIOParallelPython import *
ImportError: libjsoncpp.so.19: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/user/anaconda3/envs/mfix-21.1.2/lib/python3.7/site-packages/mfixgui/vtk_widgets/init.py”, line 8, in
import vtk
File “/home/user/anaconda3/envs/mfix-21.1.2/lib/python3.7/site-packages/vtk.py”, line 32, in
all_spec.loader.exec_module(all_m)
File “/home/user/anaconda3/envs/mfix-21.1.2/lib/python3.7/site-packages/vtkmodules/all.py”, line 83, in
from .vtkIOParallel import *
File “/home/user/anaconda3/envs/mfix-21.1.2/lib/python3.7/site-packages/vtkmodules/vtkIOParallel.py”, line 9, in
from vtkIOParallelPython import *
ModuleNotFoundError: No module named ‘vtkIOParallelPython’

@yueyuanhe - I think you are seeing a different problem - the issues with the tbb and jsoncpp libraries keep the GUI from starting at all. Can you please start a new thread for the problem you are seeing, and include your project file & error messages?

Thanks

– Charles

@Y_Guo - and anyone else having difficulty installing 21.1.2 on Linux:

On Linux the workaround is a little different. Try:

$ conda activate mfix-21.1.2
$ conda install jsoncpp=1.8.3

this got me a working MFiX on Linux - please let me know if this works for you.

We hope the installation goes more smoothly on the next release - sorry for the inconvenience.

– Charles

1 Like

@Y_Guo and anyone else with installation issues - we just released version 21.1.3 which should install cleanly on Linux and Windows. If your installation is already working there’s no reason to upgrade, but if you are still having trouble give this a shot and let me know if it works for you.

– Charles

I have solved this problem by typing " $ conda install jsoncpp=1.8.3". Thank you for your solution.

1 Like

Hi Charles,
The updated 21.1.3 solved my problem. Thank you very much.

Regards
Yuanhe