Re: [vmtk-users] No module named vtk
Brought to you by:
davidsteinman,
lucantiga
From: David W. <dm...@en...> - 2009-12-19 19:36:39
|
Thanks, Luca. I've looked at my setup and here's the current state of my .bashrc: #VMTK Environment vars PATH=/usr/local/bin/../bin:$PATH export PATH LD_LIBRARY_PATH=/usr/local/bin/../lib:/usr/local/bin/../lib/vmtk:/usr/local/bin/../lib/InsightToolkit:/usr/local/bin/../lib/vtk:$LD_LIBRARY_PATH export LD_LIBRARY_PATH PYTHONPATH=/usr/local/bin/../lib/python2.6/site-packages:/usr/local/bin/../lib/vmtk:$PYTHONPATH export PYTHONPATH Here's the error I'm now getting: Traceback (most recent call last): File "/usr/local/bin/../bin/vmtk", line 4, in <module> from vmtk import pypes File "/usr/local/lib/vmtk/vmtk/__init__.py", line 2, in <module> import vtkvmtk File "/usr/local/lib/vmtk/vmtk/vtkvmtk.py", line 5, in <module> import vtk File "/usr/local/lib/python2.6/site-packages/vtk/__init__.py", line 41, in <module> from common import * File "/usr/local/lib/python2.6/site-packages/vtk/common.py", line 7, in <module> from libvtkCommonPython import * ImportError: libvtkCommonPythonD.so.5.4: cannot open shared object file: No such file or directory It looks like a VTK linking error, but I don't know what I'm doing wrong here. Any suggestions? On Fri, Dec 18, 2009 at 4:50 PM, Luca Antiga <luc...@gm...> wrote: > Hi David, > I don't remember how it is on 64 bit Ubuntu, but are you sure that this > path > > /usr/local/bin/../lib/python2.3/site-packages > is correct? It seems that you should have a greater python version number > there. And that's the location where the python vtk module is installed, > which makes me think that this is the root of the problem (maybe you took > the setting from running vmtkenv, which at this point you shouldn't trust > 100%) > Hope this helps > > Luca > > > > On Dec 17, 2009, at 6:50 PM, David Welch wrote: > > Hi all, >> >> I'm installing VMTK on a 64-bit laptop with Jaunty. I've built everything >> from source and when I try to run VMTK this error shows: >> >> Traceback (most recent call last): >> File "/usr/local/bin/../bin/vmtk", line 4, in <module> >> from vmtk import pypes >> File "/usr/local/lib/vmtk/vmtk/__init__.py", line 2, in <module> >> import vtkvmtk >> File "/usr/local/lib/vmtk/vmtk/ >> vtkvmtk.py", line 5, in <module> >> import vtk >> ImportError: No module named vtk >> >> I thought it might be my environment variables, so I checked them. >> >> :~$ $LD_LIBRARY_PATH >> bash: >> /home/dmwelch/GNUstep/Library/Libraries:/usr/local/lib:/usr/lib:/usr/local/lib/vtk-5.3:/usr/local/lib/InsightToolkit:/usr/local/lib/vmtk: >> No such file or directory >> >> :~$ $PYTHONPATH >> bash: :/usr/local/lib/vmtk: No such file or directory >> >> When I looked up the directory tree, these folders are there. I ran >> vmtkenv to see what variables I should have there: >> :~$ vmtkenv >> PATH=/usr/local/bin/../bin:$PATH >> export PATH >> >> LD_LIBRARY_PATH=/usr/local/bin/../lib:/usr/local/bin/../lib/vmtk:/usr/local/bin/../lib/InsightToolkit:$LD_LIBRARY_PATH >> export LD_LIBRARY_PATH >> >> DYLD_LIBRARY_PATH=/usr/local/bin/../lib:/usr/local/bin/../lib/vmtk:/usr/local/bin/../lib/InsightToolkit:$DYLD_LIBRARY_PATH >> export DYLD_LIBRARY_PATH >> >> PYTHONPATH=/usr/local/bin/../lib/python2.3/site-packages:/usr/local/bin/../lib/vmtk:$PYTHONPATH >> export PYTHONPATH >> >> I copied the output into my .bashrc file, restarted the terminal, and ran >> vmtk again. No luck. >> Has anyone else run into this problem? I double-checked that python >> wrapping was on for vtk, just in case I overlooked it. Any other ideas? >> >> Thanks everyone, >> >> David Welch >> Graduate Student >> Dept. of Biomedical Engineering >> University of Iowa >> Lab: (319) 335-5279 >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev_______________________________________________ >> vmtk-users mailing list >> vmt...@li... >> https://lists.sourceforge.net/lists/listinfo/vmtk-users >> > > -- David Welch Graduate Student Dept. of Biomedical Engineering University of Iowa Lab: (319) 335-5279 |