Closed wyangattud closed 6 years ago
Which version of VTK are you using? A few people running recent versions of VTK have reported problems like this- it looks like VTK may have made some changes that are not backwards-compatible. I am running VTK 6.3 here and it is working OK.
I am using VTK 8.1.0 now. I will try the old version. Thank you a lot.
I am using python 2.7.14, pytough 1.5.0 and vtk 6.3.0, but still got an error when running 'Hydrostatic 3D Model' in Pytough example, as follow:
Traceback (most recent call last):
File "tiga.py", line 51, in
Yes, I think that is a separate issue, and one that has been recently fixed in the PyTOUGH testing branch: https://github.com/acroucher/PyTOUGH/commit/786d8559ce155be45a52bff1609243d74d90b628
Can you try pulling the latest testing branch and see if it fixes your problem?
Yes, it fixes my problem. Thank you very much.
I think this problem is now fixed by commit cba5177df703365448c643daaacb62851d38502c. It was caused by some changes made in VTK 7.1 (the vtkCharArray SetTupleValues() method was changed to SetTypedTuple()). So the PyTOUGH VTK export should now work for VTK 7.1 and later.
When I try to use lst.write_vtk to generate the vtk files, it gives me the following info: AttributeError: 'vtkCommonCorePython.vtkCharArray' object has no attribute 'SetTupleValue'. Does anyone also meet this error?