Hi Everybody,

I was trying to use VMTK again ( after a long while), and took me some time to 
have get a working installation on my windows 7 64 bit  pc, but than again, 
things worked, but not all scripts... Some of them ended with a error in the 
command line window similar to:

Error from pype: 'module' object has no attribute 'vtkvmtkSmoothCapPolyData'
Error from pype: 'module' object has no attribute ' vtkvmtkCurvedMPRImageFilter'
Error from pype: 'module' object has no attribute 
'vtkvmtkIterativeClosestPointTransform'

After some debugging it seemed to be restricted to files in the ./vtkVmtk/Misc 
directory.

After checking 'vtkvmtk.py' I realised that the problem was also restricted to 
NON-posix OS;

if os.name == 'posix':
    from libvtkvmtkCommonPython import *
    from libvtkvmtkComputationalGeometryPython import *
    from libvtkvmtkDifferentialGeometryPython import *
    from libvtkvmtkIOPython import *
    from libvtkvmtkMiscPython import *
    from libvtkvmtkRenderingPython import *
    from libvtkvmtkSegmentationPython import *
    from libvtkvmtkITKPython import *
else:
    from vtkvmtkCommonPython import *
    from vtkvmtkComputationalGeometryPython import *
    from vtkvmtkDifferentialGeometryPython import *
    from vtkvmtkIOPython import *
    from vtkvmtkRenderingPython import *
    from vtkvmtkSegmentationPython import *
    from vtkvmtkITKPython import *

When I added :
   from vtkvmtkMiscPython import *
before the line 
    from vtkvmtkRenderingPython import *

I had access to the full funcionality of VMTK again.

Best regards,
Hugo

--------------------------------
H.A.F. Gratama van Andel
Software Developer
MILabs B.V.
Post address:
Heidelberglaan 100 STR 4.205
3584 CX Utrecht
the Netherlands
Room nr.: STR 4.104
Phone  :  +31 88 756 8336
WWW    :  milabs.com
e-mail :  h...@milabs.com



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to