Hello Chiara,
from the final error you get, apparently you got all the installation right.
I wonder why you have to explicitly source .profile (any Ubuntu users out
there?). Maybe you have a .bashrc in your home that takes over the .profile?
Give it a check, and if you have a .bashrc move the lines you added to .profile
to .bashrc, open a new terminal window (it has to be new) and try again.
Anyway, the final error means that your system loaded VTK ok, but you're
apparently trying to load a vtp file using the STL reader (in VTK you have to
use different classes for different formats).
Can you please post the exact lines you're using to read the file?
Cheers
Luca
On Mar 5, 2013, at 3:54 PM, Chiara Trentin wrote:
> Dear Luca and VTK/VMTK Users,
>
> sorry for the delay in my answer.
> I installed again Ubuntu on my PC for being sure I canceled a bad vmtk/vtk
> installation done in the past.
> I followed the Install from source guide in vmtk.org/Main/Installation step by
> step verifying that git, python an cmake are of the required version.
> I installed also build-essential.
> Afterwards I followed the Installation list, first git repository then mkdir
> cd
> into it, run cmake create Unix Makefile and sun the compiler.
>
> Finally I set the PATH.
> Restart the pc an tryed a python script.
> First I obtained an error:
>
>
> >>> import vtk
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/opt/vmtk-build/Install/bin/Python/vtk/__init__.py", line 41, in
> <module>
> from vtkCommonPython import *
> ImportError: libvtkCommonPythonD.so.5.10: cannot open shared object file: No
> such file or directory
>
> I went through it with source .profile.
>
> But running a script in which I am reading an STL File I got:
>
> ERROR: In /opt/vmtk-build/VTK/IO/vtkSTLReader.cxx, line 378
> vtkSTLReader (0xa2304b8): STLReader error reading file: PRE_INNER_WALL.vtp
> Premature EOF while reading point.
>
> Do you have any suggestion?
> Thanks a lot
>
> Chiara
>
> 2012/12/4 Chiara Trentin <chiara.tren...@iusspavia.it>
> Dear all,
> I have successfully installed vmtk/VTK/ITK using the instructions of the VMTK
> website.
> Unfortunately, when I try to run some module (e.g., vmtksurfacereader) the
> following error message appears:
>
> ERROR: In /opt/vmtk-build/VTK/IO/vtkSTLReader.cxx, line 446
> vtkSTLReader (0xa709548): STLReader error reading file:
> Gamba_Piegata_lumen.stl Premature EOF while reading end solid.
>
> *** glibc detected *** python: double free or corruption (!prev): 0x0a70b030
> ***
> ======= Backtrace: =========
> /lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb737eee2]
> bla bla bla
>
> I have a similar issue when using VTK python scripts...
> Is there anyone who can help me?
>
> In the following some useful info about the software version.
>
> Ubuntu 12.04.1 LTS (release 12.04, precise)
> git 1.7.9.5
> python 2.7.3
> cmake 2.8.7
> linux-libc-dev 3.2.0-34.53
>
>
> Thanks a lot
>
> Chiara
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users