Operating system: Window10
Slicer version: 5.1.0
Expected behavior: build successfully and can run <Slicer_BUILD>/Slicer-build/Slicer.exe
Actual behavior: build failed with some error about python-scipy. And Slicer.exe was not created under Slicer-build folder.
Your build path is too long and that might be the source of this error - see this info.
1 Like
Thanks for your replying~
I’ve shorten the source path. But the error still occurred~
The content of error log file “python-scipy-install-err.log” is as following,
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/scipy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/scipy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/scipy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/scipy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/scipy/
ERROR: Could not find a version that satisfies the requirement scipy==1.8.1 (from versions: none)
ERROR: No matching distribution found for scipy==1.8.1
WARNING: There was an error checking the latest version of pip.
The content of “python-scipy-install-out.log” file is ,
Could not fetch URL https://pypi.org/simple/scipy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/scipy/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
I have built successfully now.
The key points which prevent me from compiling successfully are as following,
- As pieper reminded, my build path is too long,
- For the MSB8066 error, it is always caused by network error. Just run the command “cmake --build . --config Release” again and again.
- The following error message troubled me 3 days,
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'D:\S4\Modules\CLI\GradientAnisotropicDiffusion\Data\Baseline\GradientAnisotropicDiffusionTestWithImageSpacingOff.nhdr.md5;D:\S4\Modules\CLI\GradientAnisotropicDiffusion\Data\Baseline\GradientAnisotropicDiffusionTestWithImageSpacingOff.raw.gz.md5;D:\S4\Modules\CLI\GradientAnisotropicDiffusion\Data\Baseline\GradientAnisotropicDiffusionTestWithImageSpacingOn.nhdr.md5;D:\S4\Modules\CLI\GradientAnisotropicDiffusion\Data\Baseline\GradientAnisotropicDiffusionTestWithImageSpacingOn.raw.gz.md5;D:\S4\Modules\CLI\GradientAnisotropicDiffusion\Data\Input\MRHeadResampled.nhdr.md5;D:\S4\Modules\CLI\GradientAnisotropicDiffusion\Data\Input\MRHeadResampled.raw.gz.md5;D:\S4\Modules\CLI\GrayscaleFillHoleImageFilter\Data\Baseline\GrayscaleFillHoleTest.nhdr.md5;D:\S4\Modules\CLI\GrayscaleFillHoleImageFilter\Data\Baseline\GrayscaleFillHoleTest.raw.gz.md5;D:\S4\Modules\CLI\GrayscaleFillHoleImageFilter\Data\Input\MRHeadResampled.nhdr.md5;D:\S4\Modules\CLI\GrayscaleFillHoleImageFilter\Data\Input\MRHeadResampled.raw.gz.md5;D:\S4\Modules\CLI\GrayscaleGrindPeakImageFilter\Data\Baseline\GrayscaleGrindPeakTest.nhdr.md5;D:\S4\Modules\CLI\GrayscaleGrindPeakImageFilter\Data\Baseline\GrayscaleGrindPeakTest.raw.gz.md5;D:\S4\Modules\CLI\GrayscaleGrindPeakImageFilter\Data\Input\MRHeadResampled.nhdr.md5;D:\S4\Modules\CLI\GrayscaleGrindPeakImageFilter\Data\Input\MRHeadResampled.raw.gz.md5;D:\S4\Modules\CLI\HistogramMatching\Data\Baseline\HistogramMatchingTest.nhdr.md5;D:\S4\Modules\CLI\HistogramMatching\Data\Baseline\HistogramMatchingTest.raw.gz.md5;D:\S4\Modules\CLI\HistogramMatching\Data\Input\CTHeadAxial.nhdr.md5;D:\S4\Modules\CLI\HistogramMatching\Data\Input\CTHeadAxial.raw.gz.md5;D:\S4\Modules\CLI\HistogramMatching\Data\Input\MRHeadResampled.nhdr.md5;D:\S4\Modules\CLI\HistogramMatching\Data\Input\MRHeadResampled.raw.gz.md5;D:\S4\Modules\CLI\LabelMapSmoothing\Data\Baseline\LabelMapSmoothingTest.nhdr.md5;D:\S4\Modules\CLI\LabelMapSmoothing\Data\Baseline\LabelMapSmoothingTest.raw.gz.md5;D:\S4\Modules\CLI\LabelMapSmoothing\Data\Input\CTHeadResampledOtsuSegmented.nhdr.md5;D:\S4\Modules\CLI\LabelMapSmoothing\Data\Input\CTHeadResampledOtsuSegmented.raw.gz.md5;D:\S4\Modules\CLI\MaskScalarVolume\Data\Baseline\MaskedVolume.nrrd.md5;D:\S4\Modules\CLI\MaskScalarVolume\Data\Input\CTHeadAxial.n hdr.md5;D:\S4\Modules\CLI\MaskScalarVolume\Data\Input\CTHeadAxial.raw.gz.md5;D:\S4\Modules\CLI\MaskScalarVolume\Data\Input\CTHeadAxialMask.nrrd.md5;D:\S4\Modules\CLI\MedianImageFilter\Data \Baseline\MedianImageFilterTest.nhdr.md5;D:\S4\Modules\CLI\MedianImageFilter\Data\Baseline\MedianImageFilterTest.raw.md5;D:\S4\Modules\CLI\MedianImageFilter\Data\Input\CTHeadAxial.nhdr.md5 ;D:\S4\Modules\CLI\MedianImageFilter\Data\Input\CTHeadAxial.raw.gz.md5;D:\S4\Modules\CLI\MergeModels\Data\Baseline\sphereCube.vtp.sha256;D:\S4\Modules\CLI\MergeModels\Data\Input\cube.vtk.md5;D:\S4\Modules\CLI\MergeModels\Data\Input\cube.vtp.md5;D:\S4\Modules\CLI\MergeModels\Data\Input\sphere.vtk.md5;D:\S4\Modules\CLI\MergeModels\Data\Input\sphere.vtp.md5;D:\S4\Modules\CLI\ModelMaker\Data\Input\helix-roi-lable2.nrrd.md5;D:\S4\Modules\CLI\ModelMaker\Data\Input\helixMask3Labels.nrrd.md5;D:\S4\Modules\CLI\ModelToLabelMap\Data\Baseline\OAS10001-128.mha.sha256;D:\ S4\Modules\CLI\ModelToLabelMap\Data\Baseline\OAS10001-255.mha.sha256;D:\S4\Modules\CLI\ModelToLabelMap\Data\Input\OAS10001-Transformed.vtp.sha256;D:\S4\Modules\CLI\ModelToLabelMap\Data\Inp ut\OAS10001.nii.gz.sha256;D:\S4\Modules\CLI\MultiplyScalarVolumes\Data\Baseline\MultiplyScalarVolumesTest.1.nrrd.md5;D:\S4\Modules\CLI\MultiplyScalarVolumes\Data\Baseline\MultiplyScalarVol umesTest.nrrd.md5;D:\S4\Modules\CLI\MultiplyScalarVolumes\Data\Input\CTHeadAxial.nhdr.md5;D:\S4\Modules\CLI\MultiplyScalarVolumes\Data\Input\CTHeadAxial.raw.gz.md5;D:\S4\Modules\CLI\N4ITKBiasFieldCorrection\Data\Baseline\he3corrected.nii.gz.md5;D:\S4\Modules\CLI\N4ITKBiasFieldCorrection\Data\Input\he3mask.nii.gz.md5;D:\S4\Modules\CLI\N4ITKBiasFieldCorrection\Data\Input\he3v olume.nii.gz.md5;D:\S4\Modules\CLI\OrientScalarVolume\Data\Baseline\OrientScalarVolumeTestAxial.nrrd.md5;D:\S4\Modules\CLI\OrientScalarVolume\Data\Baseline\OrientScalarVolumeTestCoronal.nr rd.md5;D:\S4\Modules\CLI\OrientScalarVolume\Data\Baseline\OrientScalarVolumeTestSagittal.nrrd.md5;D:\S4\Modules\CLI\OrientScalarVolume\Data\Input\fixed.nrrd.md5;D:\S4\Modules\CLI\ResampleD TIVolume\Data\Baseline\Brain_slice.nrrd.md5;D:\S4\Modules\CLI\ResampleDTIVolume\Data\Baseline\dt-helix-ref-BS.nrrd.md5;D:\S4\Modules\CLI\ResampleDTIVolume\Data\Baseline\dt-helix-ref-BSInte rpolation.nrrd.md5;D:\S4\Modules\CLI\ResampleDTIVolume\Data\Baseline\dt-helix-ref-HField.nrrd.md5;D:\S4\Modules\CLI\ResampleDTIVolume\Data\Baseline\dt-helix-ref-Rotated.nrrd.md5;D:\S4\Modu les\CLI\ResampleDTIVolume\Data\Baseline\dt-helix-ref-RotationAndAffine.nrrd.md5;D:\S4\Modules\CLI\ResampleDTIVolume\Data\Input\deformationField.nrrd.md5;D:\S4\Modules\CLI\ResampleDTIVolume \Data\Input\dt-helix.nrrd.md5;D:\S4\Modules\CLI\ResampleScalarVectorDWIVolume\Data\Input\MRHeadResampled.nhdr.md5;D:\S4\Modules\CLI\ResampleScalarVectorDWIVolume\Data\Input\MRHeadResampled .raw.gz.md5;D:\S4\Modules\CLI\ResampleScalarVectorDWIVolume\Data\Input\MRHeadResampledBSplineInterpolationTest.nrrd.md5;D:\S4\Modules\CLI\ResampleScalarVectorDWIVolume\Data\Input\MRHeadRes ampledBSplineWSInterpolationTest.nrrd.md5;D:\S4\Modules\CLI\ResampleScalarVectorDWIVolume\Data\Input\MRHeadResampledHField.nrrd.md5;D:\S4\Modules\CLI\ResampleScalarVectorDWIVolume\Data\Inp ut\MRHeadResampledHFieldTest.nrrd.md5;D:\S4\Modules\CLI\ResampleScalarVectorDWIVolume\Data\Input\MRHeadResampledRotationAndAffine.nrrd.md5;D:\S4\Modules\CLI\ResampleScalarVectorDWIVolume\Data\Input\MRHeadResampledRotationNN.nrrd.md5;D:\S4\Modules\CLI\ResampleScalarVolume\Data\Baseline\ResampleScalarVolumeTest.nhdr.md5;D:\S4\Modules\CLI\ResampleScalarVolume\Data\Baseline\Res ampleScalarVolumeTest.raw.gz.md5;D:\S4\Modules\CLI\ResampleScalarVolume\Data\Input\MRHeadResampled.nhdr.md5;D:\S4\Modules\CLI\ResampleScalarVolume\Data\Input\MRHeadResampled.raw.gz.md5;D:\ S4\Modules\CLI\RobustStatisticsSegmenter\Data\Input\grayscale-label.nrrd.md5;D:\S4\Modules\CLI\RobustStatisticsSegmenter\Data\Input\grayscale.nrrd.md5;D:\S4\Modules\CLI\SimpleRegionGrowing Segmentation\Data\Baseline\SimpleRegionGrowingSegmentationTest.nhdr.md5;D:\S4\Modules\CLI\SimpleRegionGrowingSegmentation\Data\Baseline\SimpleRegionGrowingSegmentationTest.raw.gz.md5;D:\S4 \Modules\CLI\SimpleRegionGrowingSegmentation\Data\Input\MRHeadResampled.nhdr.md5;D:\S4\Modules\CLI\SimpleRegionGrowingSegmentation\Data\Input\MRHeadResampled.raw.gz.md5;D:\S4\Modules\CLI\S ubtractScalarVolumes\Data\Baseline\SubtractScalarVolumesTest.nhdr.md5;D:\S4\Modules\CLI\SubtractScalarVolumes\Data\Baseline\SubtractScalarVolumesTest.raw.gz.md5;D:\S4\Modules\CLI\SubtractS calarVolumes\Data\Input\CTHeadAxial.nhdr.md5;D:\S4\Modules\CLI\SubtractScalarVolumes\Data\Input\CTHeadAxial.raw.gz.md5;D:\S4\Modules\CLI\SubtractScalarVolumes\Data\Input\CTHeadAxialDoubled .nhdr.md5;D:\S4\Modules\CLI\SubtractScalarVolumes\Data\Input\CTHeadAxialDoubled.raw.gz.md5;D:\S4\Modules\CLI\TestGridTransformRegistration\Data\Input\CTHeadAxial.nhdr.md5;D:\S4\Modules\CLI \TestGridTransformRegistration\Data\Input\CTHeadAxial.raw.gz.md5;D:\S4\Modules\CLI\ThresholdScalarVolume\Data\Baseline\ThresholdScalarVolumeTest.nhdr.md5;D:\S4\Modules\CLI\ThresholdScalarV olume\Data\Baseline\ThresholdScalarVolumeTest.raw.gz.md5;D:\S4\Modules\CLI\ThresholdScalarVolume\Data\Input\CTHeadAxial.nhdr.md5;D:\S4\Modules\CLI\ThresholdScalarVolume\Data\Input\CTHeadAx ial.raw.gz.md5;D:\S4\Modules\CLI\VotingBinaryHoleFillingImageFilter\Data\Baseline\VotingBinaryHoleFillingImageFilterTest.nhdr.md5;D:\S4\Modules\CLI\VotingBinaryHoleFillingImageFilter\Data\ Baseline\VotingBinaryHoleFillingImageFilterTest.raw.gz.md5;D:\S4\Modules\CLI\VotingBinaryHoleFillingImageFilter\Data\Input\CTHeadResampledOtsuSegmented.nhdr.md5;D:\S4\Modules\CLI\VotingBin aryHoleFillingImageFilter\Data\Input\CTHeadResampledOtsuSegmented.raw.gz.md5;D:\S4R\Slicer-build\CMakeFiles\4a390c3a73f82eba1be75b2f4104c2cb\SlicerData.rule' exited with code 1. [D:\S4R\Slicer-build\SlicerData.vcxproj] [D:\S4R\Slicer.vcxproj]
→ it will remind you the download path from which the file was downloaded failed .
At fisrt i tried to
1. copy the download path to chrome, and found that it can downloaded successfully.
2. copy the file to <slice_build>/ExternalData/Objects/MD5 manually.
3. And re-build again. Then the similar error message appeared again, but with a different download path. then i repeat from 1 to 3.
I found it’s too slow because there are many files listed in this error message . The i try to find the rule. i found out that this step is trying to download some files to your <slice_build>/ExternalData/Objects/MD5 from “https://github.com/Slicer/SlicerTestingData/releases/download/“subfix of the file”/“the content of the file””, then i wirite a small program to anaysis the error message and do the download automatically.
→ At last , i build succesfully.
It’s great that you were able to get the build completed
The build should not have required so much manual effort though, and maybe someone can comment. Perhaps these issues are a consequence of unstable network connections during the build?
Yes, i agree, it may caused by the unstable network.