<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Obviously you are right: </span><span style="font-size: 10pt; ">With the current Python 2.7.3 it is compiling fine. </span><span style="font-size: 10pt; ">Its not yet finished but so far no errors.</span></div><div><span><br></span></div><div><span>Will there be support for Python 3.x in an upcoming ITK version?</span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> Bill Lorensen <bill.lorensen@gmail.com><br> <b><span style="font-weight: bold;">An:</span></b>
Willi <surfersparadise85-itk@yahoo.com> <br><b><span style="font-weight: bold;">CC:</span></b> "insight-users@itk.org" <insight-users@itk.org> <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 3:50 Donnerstag, 12.Juli 2012<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [Insight-users] Problems building python bindings for itk<br> </font> </div> <br><div id="yiv793841380">Maybe some else can comment, but I do not think ITK works with Python 3.<br><br><div class="yiv793841380gmail_quote">On Wed, Jul 11, 2012 at 9:45 PM, Willi <span dir="ltr"><<a rel="nofollow" ymailto="mailto:surfersparadise85-itk@yahoo.com" target="_blank" href="mailto:surfersparadise85-itk@yahoo.com">surfersparadise85-itk@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv793841380gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div><span><div style="font-size:10pt;">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:</div>
<div style="font-size:10pt;"><br></div><div style="font-size:16px;"><div><span style="font-size:13px;">------ Erstellen gestartet: Projekt: ITKStatisticsSwig, Konfiguration: Release x64 ------</span><br></div><div><font>Der Buildvorgang wurde am 12.07.2012 03:24:55 gestartet.</font></div>
<div><font>InitializeBuildStatus:</font></div><div><font> "x64\Release\ITKStatisticsSwig\ITKStatisticsSwig.unsuccessfulbuild" wird erstellt, da "AlwaysCreate" angegeben wurde.</font></div><div><font>CustomBuild:</font></div>
<div><font> Building Custom Rule
C:/ITK/src/Modules/Numerics/Statistics/wrapping/CMakeLists.txt</font></div><div><font> CMake does not need to re-run because C:\ITK\bin\Wrapping\Modules\ITKStatistics\CMakeFiles\generate.stamp is up-to-date.</font></div>
<div><font> Generating itkSample.xml</font></div><div><font> Generating itkHistogram.xml</font></div><div><font> Generating itkListSample.xml</font></div><div><font> Generating itkMembershipFunctionBase.xml</font></div>
<div><font> Generating itkDistanceMetric.xml</font></div><div><font> Generating itkEuclideanDistanceMetric.xml</font></div><div><font> Generating itkHistogramToEntropyImageFilter.xml</font></div><div><font> Generating itkHistogramToIntensityImageFilter.xml</font></div>
<div><font> Generating itkHistogramToLogProbabilityImageFilter.xml</font></div><div><font>
Generating itkHistogramToProbabilityImageFilter.xml</font></div><div><font> Generating itkHistogramToRunLengthFeaturesFilter.xml</font></div><div><font> Generating itkHistogramToTextureFeaturesFilter.xml</font></div><div>
<font> Generating itkImageToHistogramFilter.xml</font></div><div><font> Generating itkKdTree.xml</font></div><div><font> Generating itkMaskedImageToHistogramFilter.xml</font></div><div><font> Generating itkScalarImageToCooccurrenceMatrixFilter.xml</font></div>
<div><font> Generating itkScalarImageToHistogramGenerator.xml</font></div><div><font> Generating itkScalarImageToRunLengthFeaturesFilter.xml</font></div><div><font> Generating itkScalarImageToRunLengthMatrixFilter.xml</font></div>
<div><font> Generating itkScalarImageToTextureFeaturesFilter.xml</font></div><div><font>
Generating ../../Typedefs/itkSample.idx</font></div><div><font> Traceback (most recent call last):</font></div><div><font> File "C:/ITK/src/Wrapping/Generators/SwigInterface/idx.py", line 7, in <module></font></div>
<div><font> import pygccxml, sys, cStringIO</font></div><div><font> File "C:\ITK\src\Wrapping\Generators\SwigInterface\pygccxml-1.0.0\pygccxml\__init__.py", line 32, in <module></font></div><div><font> import pygccxml.declarations as declarations</font></div>
<div><font> File "C:\ITK\src\Wrapping\Generators\SwigInterface\pygccxml-1.0.0\pygccxml\declarations\__init__.py", line 10, in <module></font></div><div><font> import compilers</font></div><div><font> ImportError: No module named compilers</font></div>
<div><font>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.</font></div><div><br></div></div><div style="font-size:10pt;"><br></div><div style="font-size:10pt;">
Another strange error I got is this one and I didnt find out why:</div><div style="font-size:10pt;"><br></div><div style="font-size:10pt;"><br></div><div style="font-size:10pt;"><div style="font-size:16px;"><font>------ Erstellen gestartet: Projekt: ITKIOImageBaseGccXML, Konfiguration: Release x64 ------</font></div>
<div style="font-size:16px;"><font>Der Buildvorgang wurde am 12.07.2012 03:24:51 gestartet.</font></div><div style="font-size:16px;"><font>InitializeBuildStatus:</font></div><div style="font-size:16px;"><font> "x64\Release\ITKIOImageBaseGccXML\ITKIOImageBaseGccXML.unsuccessfulbuild" wird erstellt, da "AlwaysCreate" angegeben wurde.</font></div>
<div style="font-size:16px;"><font>CustomBuild:</font></div><div style="font-size:16px;"><font> Building Custom Rule C:/ITK/src/Modules/IO/ImageBase/wrapping/CMakeLists.txt</font></div><div style="font-size:16px;"><font> CMake does not need to re-run because C:\ITK\bin\Wrapping\Modules\ITKIOImageBase\CMakeFiles\generate.stamp is up-to-date.</font></div>
<div style="font-size:16px;"><font> Generating ITKIOImageBaseBase.xml</font></div><div style="font-size:16px;"><font> 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> >]':</font></div>
<div style="font-size:16px;"><font>
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>]'</font></div>
<div style="font-size:16px;"><font> 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>]'</font></div>
<div style="font-size:16px;"><font> 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>]'</font></div>
<div style="font-size:16px;"><font> 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>]'</font></div>
<div style="font-size:16px;"><font> C:/ITK/src/Modules/IO/ImageBase/include/itkImageIOBase.h:148: instantiated from here</font></div><div style="font-size:16px;"><font> C:/ITK/bin/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:82: error:
'__noop' was not declared in this scope</font></div><div style="font-size:16px;"><font>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.</font></div>
<div style="font-size:16px;"><br></div></div><div style="font-size:10pt;"><br></div><div style="font-size:10pt;">Any help is so much appreciated.</div><div style="font-size:10pt;"><br></div><div style="font-size:10pt;">Cheers,</div>
<div style="font-size:10pt;">Willi</div></span></div><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">
<div style="font-size:12pt;"> <div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> Willi
<<a rel="nofollow" ymailto="mailto:surfersparadise85-itk@yahoo.com" target="_blank" href="mailto:surfersparadise85-itk@yahoo.com">surfersparadise85-itk@yahoo.com</a>><br> <b><span style="font-weight:bold;">An:</span></b> "<a rel="nofollow" ymailto="mailto:insight-users@itk.org" target="_blank" href="mailto:insight-users@itk.org">insight-users@itk.org</a>" <<a rel="nofollow" ymailto="mailto:insight-users@itk.org" target="_blank" href="mailto:insight-users@itk.org">insight-users@itk.org</a>> <br>
<b><span style="font-weight:bold;">Gesendet:</span></b> 22:08 Mittwoch, 11.Juli 2012<br> <b><span style="font-weight:bold;">Betreff:</span></b> [Insight-users] Problems building python bindings for itk<br> </font> </div><div>
<div class="yiv793841380h5"> <br><div><div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Hello all,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">
<br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">since a couple of days I am trying to build ITK v4.1 as downloaded from the webpage.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">
The main ITK
building is working without any problems but if I want to add wrapping support nothing is working.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">
I am using a Windows 7 x64 with Visual Studio 10 and want to add wrapping support for my installed Python version 3.2</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">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: </span></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">CUSTOMBUILD : error : Could not run C:/GCCXML/bin/bin/Release/gccxml_cc1plus.exe:<br></font></div><div><font face="arial, helvetica, sans-serif">Der Dateiname oder die Erweiterung ist zu lang</font></div>
<div><br></div><div><font face="arial, helvetica, sans-serif">"Der Dateiname oder die Erweiterung ist zu lang" == "Filename or extension is too
long"</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Can you please help me. I am freakin out since I am trying to compile it for three days now.</font></div>
<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span style="font-size:10pt;"><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">
Cheers,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Willi</div></div></div></div><br></div></div>_____________________________________<br>Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br>
<br>Visit other Kitware open-source projects at<br><a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information
visit:<br><a rel="nofollow" target="_blank" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a rel="nofollow" target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>Follow this link to subscribe/unsubscribe:<br><a rel="nofollow" target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br><br><br> </div> </div> </blockquote></div>
</div></div><br>_____________________________________<br>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a rel="nofollow" target="_blank" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a rel="nofollow" target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</div><br><br> </div> </div> </blockquote></div> </div></body></html>