# Paraview failing to read legacy file

**URL:** https://discourse.vtk.org/t/paraview-failing-to-read-legacy-file/15231
**Category:** Support
**Tags:** python
**Created:** [January 31, 2025, 12:53pm UTC](https://discourse.vtk.org/t/paraview-failing-to-read-legacy-file/15231 "2025-01-31T12:53:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Pedro](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/p/919ad9/32.png) [@Pedro](https://discourse.vtk.org/u/Pedro)
#### Post date: [January 31, 2025, 12:53pm UTC](https://discourse.vtk.org/t/paraview-failing-to-read-legacy-file/15231/1 "2025-01-31T12:53:43Z")

</div>

I created a python code that creates a legacy VTK file, but paraview is failing to read it, even thou it’s, as far as I can tell, following the proper formatting.

Paraview version I’m using is 5.13.2

Only thing I’m not sure is correct is using “float” instead of “double”, since what python calls a float is a double on other systems, but I testes changing them and still got the exact same errors.

Start of the file is as follows:

# vtk DataFile Version 2.0

Teste  
ASCII  
DATASET STRUCTURED\_POINTS  
DIMENSIONS 128 128 127  
ORIGIN 0 0 0  
SPACING 0.0490625 0.0490625 0.0490625  
POINT\_DATA 2080768  
VECTORS Rortex float  
LOOKUP\_TABLE default  
1.155890000627035 0.3256918936921766 0.018256678259303306  
0.0 -0.0 -0.0  
4.052412929114809 -18.040831251448406 -3.8406562594587643  
-0.0 -0.0 0.0  
-2.626949714556726 -0.33413316228958717 0.11077602241015674  
-0.0 0.0 0.0  
(Rest of the data)

And the errors I get are:

Generic Warning: In vtkDataReader.cxx, line 1526  
Error reading ascii data. Possible mismatch of datasize with declaration.

ERROR: In vtkDataReader.cxx, line 1024  
vtkStructuredPointsReader (00000263DC0E6DA0): Unsupported point attribute type: -0.0 for file: C:\Users\Usuario\Documents\Pedro\Faculdade\Estagio\_2023\Resultado\Teste.vtk

Any idea what could be causing it? Thank you for your help

---

<div class="post-metadata">

### Author: ![will.schroeder](https://discourse.vtk.org/user_avatar/discourse.vtk.org/will.schroeder/32/233_2.png) [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)
#### Post date: [January 31, 2025, 2:48pm UTC](https://discourse.vtk.org/t/paraview-failing-to-read-legacy-file/15231/2 "2025-01-31T14:48:10Z")

</div>

Vectors have no lookup table

---

<div class="post-metadata">

### Author: ![Pedro](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/p/919ad9/32.png) [@Pedro](https://discourse.vtk.org/u/Pedro)
#### Post date: [January 31, 2025, 3:02pm UTC](https://discourse.vtk.org/t/paraview-failing-to-read-legacy-file/15231/3 "2025-01-31T15:02:11Z")

</div>

Both problems solved, thank you!

I feel bad for not noticing it smyself despite reading the file formats guide 🫠
