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

frd to vtu conversion issue with vtk module #42

Open
jssrivathsa opened this issue Sep 4, 2024 · 3 comments
Open

frd to vtu conversion issue with vtk module #42

jssrivathsa opened this issue Sep 4, 2024 · 3 comments

Comments

@jssrivathsa
Copy link

I am facing this error after compiling the ccx2paraview
in Ubuntu 22.04, python 3.9,

Error--------------------------------------
Traceback (most recent call last):
File "/home/sjagalur1980/CalculiX/ccx2paraview-3.0.0/ccx2paraview/main.py", line 2, in
import cli
File "/home/sjagalur1980/CalculiX/ccx2paraview-3.0.0/ccx2paraview/cli.py", line 13, in
from common import Converter
File "/home/sjagalur1980/CalculiX/ccx2paraview-3.0.0/ccx2paraview/common.py", line 21, in
import vtk
File "/home/sjagalur1980/anaconda3/envs/sjrpy39/lib/python3.9/site-packages/vtk.py", line 47, in
from vtkmodules.vtkRenderingMatplotlib import *
ImportError: /home/sjagalur1980/anaconda3/envs/sjrpy39/lib/python3.9/site-packages/vtkmodules/libvtkPythonInterpreter-9.3.so: undefined symbol: Py_RunMain

@imirzov
Copy link
Collaborator

imirzov commented Sep 4, 2024

Hi.
From provided log I see that there is some problem between vtk library and python version you're using. Python 3.9 is quite old. Moreover I've never been using ccx2paraview with anaconda.

@jssrivathsa
Copy link
Author

thanks for the input. I was able to use directly running the python from the ccx2paraview 3.0.0. But it creates many vtu files. Can we merge all vtu to one file somehow?

@imirzov
Copy link
Collaborator

imirzov commented Sep 6, 2024

No, ccx2paraview does not provide such a possibility. See caution about it in the README:
https://github.com/calculix/ccx2paraview?tab=readme-ov-file#calculix-to-paraview-converter-frd-to-vtkvtu
"""If you have 300 time steps in the FRD, there will be 300 Paraview files. If you need one file - write output only for one step in your CalculiX model."""

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

No branches or pull requests

2 participants