<div>The linux distribution I use is Ubuntu 9.10. I tried sudo apt-get install python-vtk.<br><a href="mailto:shau@tityro:/home/hantingting/Downloads/triMC3D/python$">shau@tityro:/home/hantingting/Downloads/triMC3D/python$</a> sudo apt-get install python-vtk<br>
[sudo] password for shau:<br>Reading package lists... Done<br>Building dependency tree<br>Reading state information... Done<br>python-vtk is already the newest version.<br>python-vtk set to manually installed.<br>0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.<br>
</div>
<div>But when I run stl_decimate.py file, it is still the same situation:</div>
<div> <a href="mailto:hantingting@tityro:~/Downloads/triMC3D/python$">hantingting@tityro:~/Downloads/triMC3D/python$</a> python2.5 stl_decimate.py<br>Traceback (most recent call last):<br> File "stl_decimate.py", line 9, in <module><br>
import vtk<br>ImportError: No module named vtk. </div>
<div> </div>
<div>So I have installed VTK, but it still can't be found. </div>
<div>There are several people working on the same Linux computer in our lab. I am the user "hantingting", and I am not sudoer, as shown below:</div>
<div> </div>
<div><a href="mailto:hantingting@tityro:~/Downloads/triMC3D/python$">hantingting@tityro:~/Downloads/triMC3D/python$</a> sudo apt-get install vtk<br>[sudo] password for hantingting:<br>hantingting is not in the sudoers file. This incident will be reported.<br>
</div>
<div>So the user "shau" uses sudo to install VTK. Is the problem related to this?</div>
<div> </div>
<div>I have also tried to do as VTK documentation on this website:</div>
<div><a href="file:///home/hantingting/Downloads/VTK/README.html#Compilation">file:///home/hantingting/Downloads/VTK/README.html#Compilation</a></div>
<div> </div>
<div>$ ls -d VTK<br>VTK/<br>$ mkdir VTK-build<br>$ cd VTK-build<br>$ ccmake ../VTK<br>$ make</div>
<div> </div>
<div>But I have difficulty to install and run CMake. Do I have to install CMake build VTK exactly as the documentation? I think sudo apt-get install is an easier way, but could it work as well? </div>
<div><br> </div>
<div class="gmail_quote">2010/5/6 Denis Barbier <span dir="ltr"><<a href="mailto:bouzim@gmail.com">bouzim@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">On 2010/5/6 Tingting HAN wrote:<br>> Dear Officer,<br>><br>> I work on linux and have python originally installed in the system:<br>> shau@tityro:/home/hantingting/Downloads$ python<br>> Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)<br>
> [GCC 4.4.1] on linux2<br>> Type "help", "copyright", "credits" or "license" for more information.<br>> I want to install package VTK, but there is the following problem:<br>
> shau@tityro:/home/hantingting/Downloads$ sudo apt-get install vtk[sudo]<br>> password for shau:<br>> Reading package lists... Done<br>> Building dependency tree<br>> Reading state information... Done<br>> Package vtk is not available, but is referred to by another package.<br>
> This may mean that the package is missing, has been obsoleted, or<br>> is only available from another source<br>> However the following packages replace it:<br>> vtk-tcl<br>> E: Package vtk has no installation candidate<br>
> shau@tityro:/home/hantingting/Downloads$<br>> And when I tried to run a file stl_decimate.py, the following error shows<br>> that VTK package is still not installed<br>> hantingting@tityro:~/Downloads/triMC3D/python$ python2.5 stl_decimate.py<br>
> Traceback (most recent call last):<br>> File "stl_decimate.py", line 9, in <module><br>> import vtk<br>> ImportError: No module named vtk<br><br></div></div> You seem to be using a Debian-based distro, thus<br>
sudo apt-get install python-vtk<br>may be what you are looking for. If not, please tell which Linux<br>distribution you are using.<br><br>Denis<br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br><br clear="all"><br>-- <br>
Best regards,<br>HAN Tingting<br><br>ETSI de Telecomunicación - office C-203-1<br>Dpto. Ingeniería Electrónica<br>Ciudad Universitaria s/n<br>Madrid 28040, Spain<br>TEL: +34 65 232 4340<br>Department of Photoelectric Information Engineering<br>
Zhejiang University<br>Hangzhou 310027, P. R.China<br><br>