[Insight-users] Problems building python bindings for itk

Bill Lorensen bill.lorensen at gmail.com
Wed Jul 11 21:50:06 EDT 2012


Maybe some else can comment, but I do not think ITK works with Python 3.

On Wed, Jul 11, 2012 at 9:45 PM, Willi <surfersparadise85-itk at yahoo.com>wrote:

> Now using ITK v4.2 and I got rid of most of the errors but I still think
> Python 3.2 is not yet fully supported since I get errors like this:
>
> ------ Erstellen gestartet: Projekt: ITKStatisticsSwig, Konfiguration:
> Release x64 ------
> Der Buildvorgang wurde am 12.07.2012 03:24:55 gestartet.
> InitializeBuildStatus:
>   "x64\Release\ITKStatisticsSwig\ITKStatisticsSwig.unsuccessfulbuild" wird
> erstellt, da "AlwaysCreate" angegeben wurde.
> CustomBuild:
>   Building Custom Rule
> C:/ITK/src/Modules/Numerics/Statistics/wrapping/CMakeLists.txt
>   CMake does not need to re-run because
> C:\ITK\bin\Wrapping\Modules\ITKStatistics\CMakeFiles\generate.stamp is
> up-to-date.
>   Generating itkSample.xml
>   Generating itkHistogram.xml
>   Generating itkListSample.xml
>   Generating itkMembershipFunctionBase.xml
>   Generating itkDistanceMetric.xml
>   Generating itkEuclideanDistanceMetric.xml
>   Generating itkHistogramToEntropyImageFilter.xml
>   Generating itkHistogramToIntensityImageFilter.xml
>   Generating itkHistogramToLogProbabilityImageFilter.xml
>   Generating itkHistogramToProbabilityImageFilter.xml
>   Generating itkHistogramToRunLengthFeaturesFilter.xml
>   Generating itkHistogramToTextureFeaturesFilter.xml
>   Generating itkImageToHistogramFilter.xml
>   Generating itkKdTree.xml
>   Generating itkMaskedImageToHistogramFilter.xml
>   Generating itkScalarImageToCooccurrenceMatrixFilter.xml
>   Generating itkScalarImageToHistogramGenerator.xml
>   Generating itkScalarImageToRunLengthFeaturesFilter.xml
>   Generating itkScalarImageToRunLengthMatrixFilter.xml
>   Generating itkScalarImageToTextureFeaturesFilter.xml
>   Generating ../../Typedefs/itkSample.idx
>   Traceback (most recent call last):
>     File "C:/ITK/src/Wrapping/Generators/SwigInterface/idx.py", line 7, in
> <module>
>       import pygccxml, sys, cStringIO
>     File
> "C:\ITK\src\Wrapping\Generators\SwigInterface\pygccxml-1.0.0\pygccxml\__init__.py",
> line 32, in <module>
>       import pygccxml.declarations as declarations
>     File
> "C:\ITK\src\Wrapping\Generators\SwigInterface\pygccxml-1.0.0\pygccxml\declarations\__init__.py",
> line 10, in <module>
>       import compilers
>   ImportError: No module named compilers
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error
> MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.
>
>
> Another strange error I got is this one and I didnt find out why:
>
>
> ------ Erstellen gestartet: Projekt: ITKIOImageBaseGccXML, Konfiguration:
> Release x64 ------
> Der Buildvorgang wurde am 12.07.2012 03:24:51 gestartet.
> InitializeBuildStatus:
>
> "x64\Release\ITKIOImageBaseGccXML\ITKIOImageBaseGccXML.unsuccessfulbuild"
> wird erstellt, da "AlwaysCreate" angegeben wurde.
> CustomBuild:
>   Building Custom Rule
> C:/ITK/src/Modules/IO/ImageBase/wrapping/CMakeLists.txt
>   CMake does not need to re-run because
> C:\ITK\bin\Wrapping\Modules\ITKIOImageBase\CMakeFiles\generate.stamp is
> up-to-date.
>   Generating ITKIOImageBaseBase.xml
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:
> In member function 'typename _Myvec::const_reference
> std::_Vector_const_iterator<_Myvec>::operator*() const [with _Myvec =
> std::_Vector_val<double, std::allocator<double> >]':
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/memory:376:
>   instantiated from '_FwdIt std::_Uninit_copy(_InIt, _InIt, _FwdIt,
> _Alloc&, std::_Nonscalar_ptr_iterator_tag) [with _InIt =
> std::_Vector_const_iterator<std::_Vector_val<double, std::allocator<double>
> > >, _FwdIt = double*, _Alloc = std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/memory:414:
>   instantiated from '_FwdIt std::_Uninitialized_copy(_InIt, _InIt, _FwdIt,
> _Alloc&) [with _InIt = std::_Vector_const_iterator<std::_Vector_val<double,
> std::allocator<double> > >, _FwdIt = double*, _Alloc =
> std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:1318:
>   instantiated from 'typename std::_Vector_val<_Ty, _Ax>::_Alty::pointer
> std::vector<_Ty, _Ax>::_Ucopy(_Iter, _Iter, typename std::_Vector_val<_Ty,
> _Ax>::_Alty::pointer) [with _Iter =
> std::_Vector_const_iterator<std::_Vector_val<double, std::allocator<double>
> > >, _Ty = double, _Ax = std::allocator<double>]'
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:538:
>   instantiated from 'std::vector<_Ty, _Ax>::vector(const std::vector<_Ty,
> _Ax>&) [with _Ty = double, _Ax = std::allocator<double>]'
>   C:/ITK/src/Modules/IO/ImageBase/include/itkImageIOBase.h:148:
> instantiated from here
>
> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:82:
> error: '__noop' was not declared in this scope
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error
> MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.
>
>
> Any help is so much appreciated.
>
> Cheers,
> Willi
>
>   ------------------------------
> *Von:* Willi <surfersparadise85-itk at yahoo.com>
> *An:* "insight-users at itk.org" <insight-users at itk.org>
> *Gesendet:* 22:08 Mittwoch, 11.Juli 2012
> *Betreff:* [Insight-users] Problems building python bindings for itk
>
> Hello all,
>
> since a couple of days I am trying to build ITK v4.1 as downloaded from
> the webpage.
> The main ITK building is working without any problems but if I want to add
> wrapping support nothing is working.
>
> I am using a Windows 7 x64 with Visual Studio 10 and want to add wrapping
> support for my installed Python version 3.2
>
> I downloaded GCCXML on my own using cvs (since it didnt work with GCCXML
> downloaded and used within the ITK building process) then made the CMake
> stuff and also built the target vcInstallPatch which I assumed will get me
> rid of the "VC10 not supported"-error that I received when using ITK and I
> receive the error:
>
> CUSTOMBUILD : error : Could not run
> C:/GCCXML/bin/bin/Release/gccxml_cc1plus.exe:
> Der Dateiname oder die Erweiterung ist zu lang
>
> "Der Dateiname oder die Erweiterung ist zu lang" == "Filename or extension
> is too long"
>
> Can you please help me. I am freakin out since I am trying to compile it
> for three days now.
>
>
> Cheers,
> Willi
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120711/77e42780/attachment.htm>


More information about the Insight-users mailing list