Hi Hugo,
 thanks for reporting the changes here.

Related to the ITK issue, I still have to finish the port to ITK 4, which will 
solve them. 
For the time being, I forked ITK on Github and applied the patches. Please 
update your local repository with git pull 
to get the new references to the dependencies in Superbuild.

As to the Python path issue, I added a note on the website.

Thanks again!

Luca


On Jul 12, 2012, at 10:46 AM, Hugo A.F. Gratama van Andel wrote:

> Hi Luca,
> 
> Thanks for the changes. I also build VMTK from source on my windows 7 64 bit 
> system using the 'Superbuild' option. 
> 
> For the list: to make it work I had to make the following changes:
> 
> Apparently 'FindPythonLibs' is not working correctly on Windows 7 64 bit, see:
> [CMake] FindPythonLibs no longer finding Python libs in Windows 7 64 bit 
> http://www.cmake.org/pipermail/cmake/2011-July/045471.html
> and
> [CMake] FindPythonLibs fails inexplicably 
> http://www.cmake.org/pipermail/cmake/2011-November/047820.html
> 
> If your build is throwing errors you can resolve this by editing the the 
> CMakeCache.txt in the .\ VTK-Build\ directory:
> 
> //Path to a file.
> PYTHON_INCLUDE_DIR:PATH=PYTHON_INCLUDE_DIR-NOTFOUND
> change this to the correct path on your system e.g.:
> PYTHON_INCLUDE_DIR:PATH=C:/Python27/include
> 
> //Path to a library.
> PYTHON_LIBRARY:FILEPATH=PYTHON_LIBRARY-NOTFOUND
> change this to the correct path on your system e.g.:
> PYTHON_LIBRARY:FILEPATH=C:/Python27/libs/python27.lib
> 
> //Path to a program.
> PYTHON_EXECUTABLE:FILEPATH=PYTHON_EXECUTABLE-NOTFOUND
> change this to the correct path on your system e.g.:
> PYTHON_EXECUTABLE:FILEPATH=C:/Python27/python.exe
> 
> I also had to edit two files in the ./ITK/code/algorithms folder as posted 
> earlier by PM, Jabir on Jun 7, 2012, at 3:51:
> 
> 1. itkCurvesLevelSetFunction.h  --> line 99: added 'this->' before 
> PropagationSpeed.
> 
> 2. itkGeodesicActiveContourLevelSetFunction.h  --> line 114: added 'this->' 
> before PropagationSpeed.
> 
> Best regards,
> Hugo
> 
>> -----Original Message-----
>> From: Luca Antiga [mailto:luca.ant...@orobix.com]
>> Sent: woensdag 11 juli 2012 16:52
>> To: Hugo A.F. Gratama van Andel
>> Cc: vmtk-users@lists.sourceforge.net
>> Subject: Re: [vmtk-users] Error from pype: 'module' object has no attribute
>> ... NON-posix OS error
>> 
>> Dear Hugo,
>> this is pretty crazy, since I thought we had tests that cover this - turns 
>> out
>> this slipped through the cracks (a big one, by the way).
>> The thing is now fixed in the repository. We'll release new binaries in the
>> next few days.
>> Thank you so much for your report
>> 
>> Luca
>> 
>> 
>> On Jul 11, 2012, at 3:45 PM, Hugo A.F. Gratama van Andel wrote:
>> 
>>> 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
>> 
>> 
>> -----
>> Geen virus gevonden in dit bericht.
>> Gecontroleerd door AVG - www.avg.com
>> Versie: 2012.0.2195 / Virusdatabase: 2437/5124 - datum van uitgifte: 07/10/12
> 
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
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