InsightSoftwareConsortium / ITKAnalyzeObjectMap

Reader/Writer for Analyze Object Maps
0 stars 5 forks source link

Python wrapping cannot complete without errors #23

Open mseng10 opened 4 years ago

mseng10 commented 4 years ago

Description

When electing to enable Python Wrapping for this module, the result is various errors that inevitably break the wrapping process. Ultimately, the present wrapping configuration needs to address several errors that were slowly introduced over time.

Steps to Reproduce

You may follow this tutorial or view the terminal commands below:

$ curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh -O
$ chmod u+x dockcross-manylinux-download-cache-and-build-module-wheels.sh
$ export ITK_PACKAGE_VERSION="v5.1.1.post1"
$ ./dockcross-manylinux-download-cache-and-build-module-wheels.sh cp${{ matrix.python-version }}

Expected behavior

No errors/warnings generated when building Python packages.

Actual behavior

Terminal Output

Here is a link to the package build on my forked repository or you can look at the terminal output below:

[1/13] Building CXX object src/CMakeFiles/AnalyzeObjectLabelMap.dir/itkAnalyzeObjectEntry.cxx.o
[2/13] Building CXX object      
src/CMakeFiles/AnalyzeObjectLabelMap.dir/itkAnalyzeObjectLabelMapImageIOFactory.cxx.o
[3/13] Creating directories for 'castxml'
[4/13] Building CXX object src/CMakeFiles/AnalyzeObjectLabelMap.dir/itkAnalyzeObjectLabelMapImageIO.cxx.o
[5/13] Linking CXX static library ../../../ITK-cp36-cp36m-manylinux1_x64/lib/libitkAnalyzeObjectLabelMap-5.1.a
[6/13] Performing download step (download, verify and extract) for 'castxml'
Downloading...
dst='/work/_skbuild/linux-x86_64-3.6/cmake-build/Wrapping/Generators/CastXML/castxml-prefix/src/archive.tar'
timeout='none'
[download 0% complete]
[download 1% complete]
...
verifying file...
file='/work/_skbuild/linux-x86_64-3.6/cmake-build/Wrapping/Generators/CastXML/castxml-prefix/src/archive.tar'
Downloading... done
extracting...
src='/work/_skbuild/linux-x86_64-3.6/cmake-build/Wrapping/Generators/CastXML/castxml-prefix/src/archive.tar'
dst='/work/_skbuild/linux-x86_64-3.6/cmake-build/Wrapping/Generators/CastXML/castxml-prefix/src/castxml'
extracting... [tar xf]
extracting... [analysis]
extracting... [rename]
extracting... [clean up]
extracting... done

[7/13] No patch step for 'castxml'
[8/13] No update step for 'castxml'
[9/13] No configure step for 'castxml'
[10/13] No build step for 'castxml'
[11/13] Performing install step for 'castxml'
[12/13] Completed 'castxml'
[12/13] Install the project...
Install configuration: "Release"
Install component: "PythonWheelRuntimeLibraries"
error: package directory '_skbuild/linux-x86_64-3.6/cmake-install/itk' does not exist

Reproducibility

These errors/warnings are generated 100% of the time.

Versions

Environment

Closing Remarks

Below is the TODO list for this issue.

thewtex commented 4 months ago

Addressed by #32