<div>My computer has both python2.5 and python2.6 installed. But ruuning my .py files with python2.6 has error like this:</div>
<div>importError: No module named utilsExtension<br>So I have been choosing to use python2.5. </div>
<div>Is there anyway that I can install python-vtk for python2.5 in my computer? </div>
<div> </div>
<div> </div>
<div>2010/5/6 Denis Barbier <span dir="ltr"><<a href="mailto:bouzim@gmail.com">bouzim@gmail.com</a>></span><br></div>
<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On 2010/5/6 Tingting HAN wrote:<br></div>
<div>
<div></div>
<div class="h5">> The linux distribution I use is Ubuntu 9.10. I tried sudo apt-get install<br>> python-vtk.<br>> shau@tityro:/home/hantingting/Downloads/triMC3D/python$ sudo apt-get install<br>> 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>> But when I run stl_decimate.py file, it is still the same situation:<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>> So I have installed VTK, but it still can't be found.<br>
> There are several people working on the same Linux computer in our lab. I am<br>> the user "hantingting", and I am not sudoer, as shown below:<br>><br>> hantingting@tityro:~/Downloads/triMC3D/python$ sudo apt-get install vtk<br>
> [sudo] password for hantingting:<br>> hantingting is not in the sudoers file. This incident will be reported.<br>> So the user "shau" uses sudo to install VTK. Is the problem related to this?<br><br>
</div></div>No, if vtk is installed by apt-get, all users have access to it.<br><br>According to<br> <a href="http://packages.ubuntu.com/karmic/python-vtk" target="_blank">http://packages.ubuntu.com/karmic/python-vtk</a><br>
python-vtk is available only with python2.6 on your distribution, so try running<br> python2.6 stl_decimate.py<br>or even<br> python stl_decimate.py<br><font color="#888888"><br>Denis<br></font></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>