Re: Hash Error

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Steve Pieper-2
I'm seeing python hash issue like what Kilian repoted on my ubuntu builds now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04 (fully patched) and I tried both cmake 2.8 download (not the debian system one) and just installed the current cmake git 'next' branch and both failed.

If I manually download python I get hash errors from other python packages.  I also tried switching http to https and it didn't resolve the issue.

I saw Matt checked in some fixes related to this kind of issue - did it end up working on your system?  Do others have this issue?

Mac and windows build fine for me.

-Steve


On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:
Hi Kilian,

Not sure what is wrong.

As a workaround, within External_python.cmake you could change the lines:

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with


  

    URL "file:///path/to/Download/Python-2.7.3.tgz"
    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

Hth
Jc



On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]> wrote:
When I build slicer from scratch I get the following error

-- downloading...
     src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
     dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
     timeout='none'
CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>

and the file Python-2.7.3.tgz is empty.

- I have no problem downloading the file via
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

What program does cmake use to download that file or what else could be wrong ?

The feedback from the developer list was not helpful

K



On 3/22/2014 2:21 AM, Mark Pearson wrote:
You will also see this error if the download is blocked by a firewall.


On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov <[hidden email]> wrote:
You could probably just swap the hash in the cmake file

https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51

On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]> wrote:
> When building Slicer from scratch on Ubuntu 13.04 I get the following
> error message
>
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>
>
>
> make[2]: ***
> [python-source-prefix/src/python-source-stamp/python-source-download]
> Error 1
> make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> What to do ?
>
> Thanks
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.






--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Steve Pieper-2
Update: I did a fresh build on mac and ran into the same error (the build was fine earlier today before I deleted everything and rebuilt from scratch)

CMake Error at python-source-prefix/src/python-source-stamp/download-python-source.cmake:9 (file):
  file DOWNLOAD HASH mismatch

    for file: [/Users/pieper/slicer4/latest/Slicer-superbuild/Python-2.7.3.tgz]
      expected hash: [2cf641732ac23b18d139be077bd906cd]
        actual hash: [a92bb819884c799dba8c5502edd1e128]





On Wed, Apr 16, 2014 at 4:46 PM, Steve Pieper <[hidden email]> wrote:
I'm seeing python hash issue like what Kilian repoted on my ubuntu builds now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04 (fully patched) and I tried both cmake 2.8 download (not the debian system one) and just installed the current cmake git 'next' branch and both failed.

If I manually download python I get hash errors from other python packages.  I also tried switching http to https and it didn't resolve the issue.

I saw Matt checked in some fixes related to this kind of issue - did it end up working on your system?  Do others have this issue?

Mac and windows build fine for me.

-Steve


On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:
Hi Kilian,

Not sure what is wrong.

As a workaround, within External_python.cmake you could change the lines:

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with


  

    URL "file:///path/to/Download/Python-2.7.3.tgz"
    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

Hth
Jc



On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]> wrote:
When I build slicer from scratch I get the following error

-- downloading...
     src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
     dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
     timeout='none'
CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>

and the file Python-2.7.3.tgz is empty.

- I have no problem downloading the file via
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

What program does cmake use to download that file or what else could be wrong ?

The feedback from the developer list was not helpful

K



On 3/22/2014 2:21 AM, Mark Pearson wrote:
You will also see this error if the download is blocked by a firewall.


On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov <[hidden email]> wrote:
You could probably just swap the hash in the cmake file

https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51

On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]> wrote:
> When building Slicer from scratch on Ubuntu 13.04 I get the following
> error message
>
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>
>
>
> make[2]: ***
> [python-source-prefix/src/python-source-stamp/python-source-download]
> Error 1
> make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> What to do ?
>
> Thanks
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.






--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Matt McCormick
Hi Steve,

I think upstream python.org did a redirect from HTTP to HTTPS.

To download, the CMake that is used much be built with OpenSSL
support.  The configuration was not on by default in my local CMake
build.

Hope this helps,
Matt

On Wed, Apr 16, 2014 at 4:50 PM, Steve Pieper <[hidden email]> wrote:

> Update: I did a fresh build on mac and ran into the same error (the build
> was fine earlier today before I deleted everything and rebuilt from scratch)
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>   file DOWNLOAD HASH mismatch
>
>     for file:
> [/Users/pieper/slicer4/latest/Slicer-superbuild/Python-2.7.3.tgz]
>       expected hash: [2cf641732ac23b18d139be077bd906cd]
>         actual hash: [a92bb819884c799dba8c5502edd1e128]
>
>
>
>
>
> On Wed, Apr 16, 2014 at 4:46 PM, Steve Pieper <[hidden email]> wrote:
>>
>> I'm seeing python hash issue like what Kilian repoted on my ubuntu builds
>> now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04
>> (fully patched) and I tried both cmake 2.8 download (not the debian system
>> one) and just installed the current cmake git 'next' branch and both failed.
>>
>> If I manually download python I get hash errors from other python
>> packages.  I also tried switching http to https and it didn't resolve the
>> issue.
>>
>> I saw Matt checked in some fixes related to this kind of issue - did it
>> end up working on your system?  Do others have this issue?
>>
>> Mac and windows build fine for me.
>>
>> -Steve
>>
>>
>> On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin
>> <[hidden email]> wrote:
>>>
>>> Hi Kilian,
>>>
>>> Not sure what is wrong.
>>>
>>> As a workaround, within External_python.cmake you could change the lines:
>>>
>>>     URL "http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz"
>>>     URL_MD5 "2cf641732ac23b18d139be077bd906cd"
>>>
>>> with
>>>
>>>
>>>
>>>     URL "file:///path/to/Download/Python-2.7.3.tgz"
>>>     URL_MD5 "2cf641732ac23b18d139be077bd906cd"
>>>
>>> Hth
>>> Jc
>>>
>>>
>>>
>>> On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]>
>>> wrote:
>>>>
>>>> When I build slicer from scratch I get the following error
>>>>
>>>> -- downloading...
>>>>      src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
>>>>      dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
>>>>      timeout='none'
>>>> CMake Error at
>>>> >
>>>> > python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
>>>> > (file):
>>>> >    file DOWNLOAD HASH mismatch
>>>> >
>>>> >      for file:
>>>> > [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>>>> >        expected hash: [2cf641732ac23b18d139be077bd906cd]
>>>> >          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>>>> >
>>>>
>>>> and the file Python-2.7.3.tgz is empty.
>>>>
>>>> - I have no problem downloading the file via
>>>> wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
>>>>
>>>> What program does cmake use to download that file or what else could be
>>>> wrong ?
>>>>
>>>> The feedback from the developer list was not helpful
>>>>
>>>> K
>>>>
>>>>
>>>>
>>>> On 3/22/2014 2:21 AM, Mark Pearson wrote:
>>>>
>>>> You will also see this error if the download is blocked by a firewall.
>>>>
>>>>
>>>> On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov
>>>> <[hidden email]> wrote:
>>>>>
>>>>> You could probably just swap the hash in the cmake file
>>>>>
>>>>>
>>>>> https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51
>>>>>
>>>>> On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]>
>>>>> wrote:
>>>>> > When building Slicer from scratch on Ubuntu 13.04 I get the following
>>>>> > error message
>>>>> >
>>>>> >
>>>>> > CMake Error at
>>>>> >
>>>>> > python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
>>>>> > (file):
>>>>> >    file DOWNLOAD HASH mismatch
>>>>> >
>>>>> >      for file:
>>>>> > [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>>>>> >        expected hash: [2cf641732ac23b18d139be077bd906cd]
>>>>> >          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>>>>> >
>>>>> >
>>>>> >
>>>>> > make[2]: ***
>>>>> > [python-source-prefix/src/python-source-stamp/python-source-download]
>>>>> > Error 1
>>>>> > make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
>>>>> > make[1]: *** Waiting for unfinished jobs....
>>>>> >
>>>>> >
>>>>> > What to do ?
>>>>> >
>>>>> > Thanks
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > slicer-devel mailing list
>>>>> > [hidden email]
>>>>> > http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>>>>> > To unsubscribe: send email to
>>>>> > [hidden email] with unsubscribe as the
>>>>> > subject
>>>>> >
>>>>> > http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>>>>> >
>>>>> >
>>>>> > The information in this e-mail is intended only for the person to
>>>>> > whom it is
>>>>> > addressed. If you believe this e-mail was sent to you in error and
>>>>> > the e-mail
>>>>> > contains patient information, please contact the Partners Compliance
>>>>> > HelpLine at
>>>>> > http://www.partners.org/complianceline . If the e-mail was sent to
>>>>> > you in error
>>>>> > but does not contain patient information, please contact the sender
>>>>> > and properly
>>>>> > dispose of the e-mail.
>>>>> >
>>>>> _______________________________________________
>>>>> slicer-devel mailing list
>>>>> [hidden email]
>>>>> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>>>>> To unsubscribe: send email to
>>>>> [hidden email] with unsubscribe as the
>>>>> subject
>>>>>
>>>>> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> slicer-devel mailing list
>>>> [hidden email]
>>>> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>>>> To unsubscribe: send email to
>>>> [hidden email] with unsubscribe as the
>>>> subject
>>>>
>>>> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>>>>
>>>>
>>>> The information in this e-mail is intended only for the person to whom
>>>> it is
>>>> addressed. If you believe this e-mail was sent to you in error and the
>>>> e-mail
>>>> contains patient information, please contact the Partners Compliance
>>>> HelpLine at
>>>> http://www.partners.org/complianceline . If the e-mail was sent to you
>>>> in error
>>>> but does not contain patient information, please contact the sender and
>>>> properly
>>>> dispose of the e-mail.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> +1 919 869 8849
>>
>>
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email]
> with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Isaiah Norton-2
In reply to this post by Steve Pieper-2
This is very strange. I am seeing download failures every time I download that file inside the hospital network.

I get truncated downloads for Python-2.7.3.tgz (ex: 2MB, 13MB, .5MB, 8MB, 6MB; should be 13.5). Tried both Chrome and Firefox on Windows, and wget on another (linux) computer also inside hospital.

However, on my computer at home and on a university server outside BWH, the download is fine the first time (hash is correct).



On Wed, Apr 16, 2014 at 4:50 PM, Steve Pieper <[hidden email]> wrote:
Update: I did a fresh build on mac and ran into the same error (the build was fine earlier today before I deleted everything and rebuilt from scratch)

CMake Error at python-source-prefix/src/python-source-stamp/download-python-source.cmake:9 (file):
  file DOWNLOAD HASH mismatch

    for file: [/Users/pieper/slicer4/latest/Slicer-superbuild/Python-2.7.3.tgz]
      expected hash: [2cf641732ac23b18d139be077bd906cd]
        actual hash: [a92bb819884c799dba8c5502edd1e128]





On Wed, Apr 16, 2014 at 4:46 PM, Steve Pieper <[hidden email]> wrote:
I'm seeing python hash issue like what Kilian repoted on my ubuntu builds now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04 (fully patched) and I tried both cmake 2.8 download (not the debian system one) and just installed the current cmake git 'next' branch and both failed.

If I manually download python I get hash errors from other python packages.  I also tried switching http to https and it didn't resolve the issue.

I saw Matt checked in some fixes related to this kind of issue - did it end up working on your system?  Do others have this issue?

Mac and windows build fine for me.

-Steve


On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:
Hi Kilian,

Not sure what is wrong.

As a workaround, within External_python.cmake you could change the lines:

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with


  

    URL "file:///path/to/Download/Python-2.7.3.tgz"
    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

Hth
Jc



On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]> wrote:
When I build slicer from scratch I get the following error

-- downloading...
     src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
     dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
     timeout='none'
CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>

and the file Python-2.7.3.tgz is empty.

- I have no problem downloading the file via
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

What program does cmake use to download that file or what else could be wrong ?

The feedback from the developer list was not helpful

K



On 3/22/2014 2:21 AM, Mark Pearson wrote:
You will also see this error if the download is blocked by a firewall.


On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov <[hidden email]> wrote:
You could probably just swap the hash in the cmake file

https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51

On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]> wrote:
> When building Slicer from scratch on Ubuntu 13.04 I get the following
> error message
>
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>
>
>
> make[2]: ***
> [python-source-prefix/src/python-source-stamp/python-source-download]
> Error 1
> make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> What to do ?
>
> Thanks
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.






--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Kilian Pohl-2
In reply to this post by Steve Pieper-2
Hi Steve,

Here is the temp hack that made it work for me (JC suggested it)
- cd /tmp; wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
- I checked that the hash was correct via md5sum
-  changed in n External_python.cmake

  URL "http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz"
    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

- and then ran cmake

Hope it works. At least I now know that I am not alone in this world

Kilian


On 4/16/2014 1:50 PM, Steve Pieper wrote:
Update: I did a fresh build on mac and ran into the same error (the build was fine earlier today before I deleted everything and rebuilt from scratch)

CMake Error at python-source-prefix/src/python-source-stamp/download-python-source.cmake:9 (file):
  file DOWNLOAD HASH mismatch

    for file: [/Users/pieper/slicer4/latest/Slicer-superbuild/Python-2.7.3.tgz]
      expected hash: [2cf641732ac23b18d139be077bd906cd]
        actual hash: [a92bb819884c799dba8c5502edd1e128]





On Wed, Apr 16, 2014 at 4:46 PM, Steve Pieper <[hidden email]> wrote:
I'm seeing python hash issue like what Kilian repoted on my ubuntu builds now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04 (fully patched) and I tried both cmake 2.8 download (not the debian system one) and just installed the current cmake git 'next' branch and both failed.

If I manually download python I get hash errors from other python packages.  I also tried switching http to https and it didn't resolve the issue.

I saw Matt checked in some fixes related to this kind of issue - did it end up working on your system?  Do others have this issue?

Mac and windows build fine for me.

-Steve


On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:
Hi Kilian,

Not sure what is wrong.

As a workaround, within External_python.cmake you could change the lines:

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with


  

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

Hth
Jc



On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]> wrote:
When I build slicer from scratch I get the following error

-- downloading...
     src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
     dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
     timeout='none'
CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>

and the file Python-2.7.3.tgz is empty.

- I have no problem downloading the file via
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

What program does cmake use to download that file or what else could be wrong ?

The feedback from the developer list was not helpful

K



On 3/22/2014 2:21 AM, Mark Pearson wrote:
You will also see this error if the download is blocked by a firewall.


On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov <[hidden email]> wrote:
You could probably just swap the hash in the cmake file

https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51

On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]> wrote:
> When building Slicer from scratch on Ubuntu 13.04 I get the following
> error message
>
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>
>
>
> make[2]: ***
> [python-source-prefix/src/python-source-stamp/python-source-download]
> Error 1
> make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> What to do ?
>
> Thanks
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.






--
<a moz-do-not-send="true" href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849




-- 
Kilian M. Pohl, Ph.D. 

Senior Research Scientist
SRI International

Consulting Assistant Professor
Department of Psychiatry & Behavioral Sciences
Stanford University

333 Ravenswood Ave
Menlo Park, CA 94025 

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Steve Pieper-2
@Matt - how to I check if cmake was built with ssl?

@Isaiah - yes, the failing machines for me are on the BWH network.  I also did not have the problem on a machine at home.

@Kilian - we are all in the same gang.


On Wed, Apr 16, 2014 at 5:53 PM, Kilian Pohl <[hidden email]> wrote:
Hi Steve,

Here is the temp hack that made it work for me (JC suggested it)
- cd /tmp; wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
- I checked that the hash was correct via md5sum
-  changed in n External_python.cmake

  URL "http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz"
    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

- and then ran cmake

Hope it works. At least I now know that I am not alone in this world

Kilian



On 4/16/2014 1:50 PM, Steve Pieper wrote:
Update: I did a fresh build on mac and ran into the same error (the build was fine earlier today before I deleted everything and rebuilt from scratch)

CMake Error at python-source-prefix/src/python-source-stamp/download-python-source.cmake:9 (file):
  file DOWNLOAD HASH mismatch

    for file: [/Users/pieper/slicer4/latest/Slicer-superbuild/Python-2.7.3.tgz]
      expected hash: [2cf641732ac23b18d139be077bd906cd]
        actual hash: [a92bb819884c799dba8c5502edd1e128]





On Wed, Apr 16, 2014 at 4:46 PM, Steve Pieper <[hidden email]> wrote:
I'm seeing python hash issue like what Kilian repoted on my ubuntu builds now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04 (fully patched) and I tried both cmake 2.8 download (not the debian system one) and just installed the current cmake git 'next' branch and both failed.

If I manually download python I get hash errors from other python packages.  I also tried switching http to https and it didn't resolve the issue.

I saw Matt checked in some fixes related to this kind of issue - did it end up working on your system?  Do others have this issue?

Mac and windows build fine for me.

-Steve


On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:
Hi Kilian,

Not sure what is wrong.

As a workaround, within External_python.cmake you could change the lines:

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with


  

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

Hth
Jc



On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]> wrote:
When I build slicer from scratch I get the following error

-- downloading...
     src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
     dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
     timeout='none'
CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>

and the file Python-2.7.3.tgz is empty.

- I have no problem downloading the file via
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

What program does cmake use to download that file or what else could be wrong ?

The feedback from the developer list was not helpful

K



On 3/22/2014 2:21 AM, Mark Pearson wrote:
You will also see this error if the download is blocked by a firewall.


On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov <[hidden email]> wrote:
You could probably just swap the hash in the cmake file

https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51

On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]> wrote:
> When building Slicer from scratch on Ubuntu 13.04 I get the following
> error message
>
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>
>
>
> make[2]: ***
> [python-source-prefix/src/python-source-stamp/python-source-download]
> Error 1
> make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> What to do ?
>
> Thanks
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.






--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849




-- 
Kilian M. Pohl, Ph.D. 

Senior Research Scientist
SRI International

Consulting Assistant Professor
Department of Psychiatry & Behavioral Sciences
Stanford University

333 Ravenswood Ave
Menlo Park, CA 94025 


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Jean-Christophe Fillion-Robin

On Thu, Apr 17, 2014 at 10:16 PM, Steve Pieper <[hidden email]> wrote:
@Matt - how to I check if cmake was built with ssl?


On unix, you could do the following:

$ strings /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep OPENSSL
OPENSSL_1.0.0

and / or

$ ldd /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep ssl
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fb553e6f000)


Note that if you download the binaries from cmake.org, we are built with openssl. See [1]

If you build it yourself, you have to make sure to configure/build with -DCMAKE_USE_OPENSSL:BOOL=1 ... not that running the bootstrap script to build cmake without cmake won't enable the SSL support.

Hth
Jc

[1] https://github.com/Kitware/CMake/blob/2fca2b23107c1e57116cea0dad6c4f9dd9c0c146/Utilities/Release/magrathea_release.cmake#L13


--
+1 919 869 8849

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Jean-Christophe Fillion-Robin
Hi Folks,

Here is a one liner to check that CMake is downloading the file as expected:

echo "file(DOWNLOAD https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz ./Python-2.7.3.tgz SHOW_PROGRESS EXPECTED_MD5 2cf641732ac23b18d139be077bd906cd)" > test_download.cmake && cmake -P test_download.cmake && md5sum Python-2.7.3.tgz


... and an other one with wget:

wget https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz && md5sum Python-2.7.3.tgz


Checking both method on your workstation would be interesting.

Let me know what are your findings,
Hth
Jc




On Thu, Apr 17, 2014 at 11:49 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:

On Thu, Apr 17, 2014 at 10:16 PM, Steve Pieper <[hidden email]> wrote:
@Matt - how to I check if cmake was built with ssl?


On unix, you could do the following:

$ strings /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep OPENSSL
OPENSSL_1.0.0

and / or

$ ldd /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep ssl
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fb553e6f000)


Note that if you download the binaries from cmake.org, we are built with openssl. See [1]

If you build it yourself, you have to make sure to configure/build with -DCMAKE_USE_OPENSSL:BOOL=1 ... not that running the bootstrap script to build cmake without cmake won't enable the SSL support.

Hth
Jc

[1] https://github.com/Kitware/CMake/blob/2fca2b23107c1e57116cea0dad6c4f9dd9c0c146/Utilities/Release/magrathea_release.cmake#L13



--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849



--
+1 919 869 8849

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Steve Pieper-2
Hi Jc - 

Based on my previous experience I'd say the other python packages will also run into download problems even if the initial Python-2.7.3.tgz issue is manually resolved.

Unfortunately the cmake download site has only i386 builds and they won't run on my x64 ubuntu install.

So I guess it's necessary to build cmake by hand and enable openssl support.  If I have time I'll give that a shot and write down the steps needed.

Before going down that path again I had built the 'next' branch of cmake a few days ago and it was a 3.x version.  Does anyone have experience building a slicer superbuild with cmake 3.x or should I stick with 2.8.x?

-Steve


On Fri, Apr 18, 2014 at 8:55 AM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:
Hi Folks,

Here is a one liner to check that CMake is downloading the file as expected:

echo "file(DOWNLOAD https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz ./Python-2.7.3.tgz SHOW_PROGRESS EXPECTED_MD5 2cf641732ac23b18d139be077bd906cd)" > test_download.cmake && cmake -P test_download.cmake && md5sum Python-2.7.3.tgz


... and an other one with wget:

wget https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz && md5sum Python-2.7.3.tgz


Checking both method on your workstation would be interesting.

Let me know what are your findings,
Hth
Jc




On Thu, Apr 17, 2014 at 11:49 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:

On Thu, Apr 17, 2014 at 10:16 PM, Steve Pieper <[hidden email]> wrote:
@Matt - how to I check if cmake was built with ssl?


On unix, you could do the following:

$ strings /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep OPENSSL
OPENSSL_1.0.0

and / or

$ ldd /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep ssl
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fb553e6f000)


Note that if you download the binaries from cmake.org, we are built with openssl. See [1]

If you build it yourself, you have to make sure to configure/build with -DCMAKE_USE_OPENSSL:BOOL=1 ... not that running the bootstrap script to build cmake without cmake won't enable the SSL support.

Hth
Jc

[1] https://github.com/Kitware/CMake/blob/2fca2b23107c1e57116cea0dad6c4f9dd9c0c146/Utilities/Release/magrathea_release.cmake#L13



--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849



--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Isaiah Norton-2
In reply to this post by Jean-Christophe Fillion-Robin
Working fine now for me. Strange.


On Fri, Apr 18, 2014 at 8:55 AM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:
Hi Folks,

Here is a one liner to check that CMake is downloading the file as expected:

echo "file(DOWNLOAD https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz ./Python-2.7.3.tgz SHOW_PROGRESS EXPECTED_MD5 2cf641732ac23b18d139be077bd906cd)" > test_download.cmake && cmake -P test_download.cmake && md5sum Python-2.7.3.tgz


... and an other one with wget:

wget https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz && md5sum Python-2.7.3.tgz


Checking both method on your workstation would be interesting.

Let me know what are your findings,
Hth
Jc




On Thu, Apr 17, 2014 at 11:49 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:

On Thu, Apr 17, 2014 at 10:16 PM, Steve Pieper <[hidden email]> wrote:
@Matt - how to I check if cmake was built with ssl?


On unix, you could do the following:

$ strings /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep OPENSSL
OPENSSL_1.0.0

and / or

$ ldd /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep ssl
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fb553e6f000)


Note that if you download the binaries from cmake.org, we are built with openssl. See [1]

If you build it yourself, you have to make sure to configure/build with -DCMAKE_USE_OPENSSL:BOOL=1 ... not that running the bootstrap script to build cmake without cmake won't enable the SSL support.

Hth
Jc

[1] https://github.com/Kitware/CMake/blob/2fca2b23107c1e57116cea0dad6c4f9dd9c0c146/Utilities/Release/magrathea_release.cmake#L13



--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849



--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Jean-Christophe Fillion-Robin
In reply to this post by Steve Pieper-2
Hi,

1) You can build CMake using a prior version of CMake, that way you will be able to build it passing -DCMAKE_USE_OPENSSL:BOOL=1

2) Is there an issue if you use CMake having SSL support ?

Hth
Jc


On Fri, Apr 18, 2014 at 9:44 AM, Steve Pieper <[hidden email]> wrote:
Hi Jc - 

Based on my previous experience I'd say the other python packages will also run into download problems even if the initial Python-2.7.3.tgz issue is manually resolved.

Unfortunately the cmake download site has only i386 builds and they won't run on my x64 ubuntu install.

So I guess it's necessary to build cmake by hand and enable openssl support.  If I have time I'll give that a shot and write down the steps needed.

Before going down that path again I had built the 'next' branch of cmake a few days ago and it was a 3.x version.  Does anyone have experience building a slicer superbuild with cmake 3.x or should I stick with 2.8.x?

-Steve


On Fri, Apr 18, 2014 at 8:55 AM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:
Hi Folks,

Here is a one liner to check that CMake is downloading the file as expected:

echo "file(DOWNLOAD https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz ./Python-2.7.3.tgz SHOW_PROGRESS EXPECTED_MD5 2cf641732ac23b18d139be077bd906cd)" > test_download.cmake && cmake -P test_download.cmake && md5sum Python-2.7.3.tgz


... and an other one with wget:

wget https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz && md5sum Python-2.7.3.tgz


Checking both method on your workstation would be interesting.

Let me know what are your findings,
Hth
Jc




On Thu, Apr 17, 2014 at 11:49 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:

On Thu, Apr 17, 2014 at 10:16 PM, Steve Pieper <[hidden email]> wrote:
@Matt - how to I check if cmake was built with ssl?


On unix, you could do the following:

$ strings /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep OPENSSL
OPENSSL_1.0.0

and / or

$ ldd /home/jchris/Support/cmake-2.8.12.2/bin/cmake | grep ssl
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fb553e6f000)


Note that if you download the binaries from cmake.org, we are built with openssl. See [1]

If you build it yourself, you have to make sure to configure/build with -DCMAKE_USE_OPENSSL:BOOL=1 ... not that running the bootstrap script to build cmake without cmake won't enable the SSL support.

Hth
Jc

[1] https://github.com/Kitware/CMake/blob/2fca2b23107c1e57116cea0dad6c4f9dd9c0c146/Utilities/Release/magrathea_release.cmake#L13



--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849



--
<a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849




--
+1 919 869 8849

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

pinter
In reply to this post by Steve Pieper-2

Hi all,

 

I'm getting the same thing on Ubuntu 12.04. I built CMake from source. Does anyone know how to enable ssl for the CMake build?

 

Thanks,

csaba

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Steve Pieper
Sent: April 17, 2014 22:16
To: Kilian Pohl
Cc: [hidden email]
Subject: Re: [slicer-devel] Hash Error

 

@Matt - how to I check if cmake was built with ssl?

 

@Isaiah - yes, the failing machines for me are on the BWH network.  I also did not have the problem on a machine at home.

 

@Kilian - we are all in the same gang.

 

On Wed, Apr 16, 2014 at 5:53 PM, Kilian Pohl <[hidden email]> wrote:

Hi Steve,

Here is the temp hack that made it work for me (JC suggested it)
- cd /tmp; wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
- I checked that the hash was correct via md5sum
-  changed in n External_python.cmake


  URL "http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz"

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with

    URL "<a href="file:///\\tmp\Python-2.7.3.tgz">file:///tmp/Python-2.7.3.tgz"

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"


- and then ran cmake

Hope it works. At least I now know that I am not alone in this world

Kilian




On 4/16/2014 1:50 PM, Steve Pieper wrote:

Update: I did a fresh build on mac and ran into the same error (the build was fine earlier today before I deleted everything and rebuilt from scratch)

 

CMake Error at python-source-prefix/src/python-source-stamp/download-python-source.cmake:9 (file):

  file DOWNLOAD HASH mismatch

 

    for file: [/Users/pieper/slicer4/latest/Slicer-superbuild/Python-2.7.3.tgz]

      expected hash: [2cf641732ac23b18d139be077bd906cd]

        actual hash: [a92bb819884c799dba8c5502edd1e128]

 

 

 

 

On Wed, Apr 16, 2014 at 4:46 PM, Steve Pieper <[hidden email]> wrote:

I'm seeing python hash issue like what Kilian repoted on my ubuntu builds now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04 (fully patched) and I tried both cmake 2.8 download (not the debian system one) and just installed the current cmake git 'next' branch and both failed.

 

If I manually download python I get hash errors from other python packages.  I also tried switching http to https and it didn't resolve the issue.

 

I saw Matt checked in some fixes related to this kind of issue - did it end up working on your system?  Do others have this issue?

 

Mac and windows build fine for me.

 

-Steve

 

On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:

Hi Kilian,

Not sure what is wrong.

As a workaround, within External_python.cmake you could change the lines:

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with


  

    URL "<a href="file:///\\path\to\Download\Python-2.7.3.tgz">file:///path/to/Download/Python-2.7.3.tgz"

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

Hth

Jc

 

 

On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]> wrote:

When I build slicer from scratch I get the following error


-- downloading...
     src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
     dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
     timeout='none'
CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>

and the file Python-2.7.3.tgz is empty.

- I have no problem downloading the file via
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

What program does cmake use to download that file or what else could be wrong ?

The feedback from the developer list was not helpful

K


On 3/22/2014 2:21 AM, Mark Pearson wrote:

You will also see this error if the download is blocked by a firewall.

 

On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov <[hidden email]> wrote:

You could probably just swap the hash in the cmake file

https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51


On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]> wrote:
> When building Slicer from scratch on Ubuntu 13.04 I get the following
> error message
>
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>
>
>
> make[2]: ***
> [python-source-prefix/src/python-source-stamp/python-source-download]
> Error 1
> make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> What to do ?
>
> Thanks
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ

 

 

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
 
 
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

 

 



--
<a href="tel:%2B1%20919%20869%208849" target="_blank">+1 919 869 8849

 

 

 

-- 
Kilian M. Pohl, Ph.D. 
 
Senior Research Scientist
SRI International
 
Consulting Assistant Professor
Department of Psychiatry & Behavioral Sciences
Stanford University
 
333 Ravenswood Ave
Menlo Park, CA 94025 

 


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

Steve Pieper-2
Hi Csaba - 

You need to build cmake from source using another copy of cmake and then you can enable ssl in the build options (i.e. don't use the cmake source's bootstrap script).

-Steve


On Thu, Apr 24, 2014 at 1:11 PM, Csaba Pinter <[hidden email]> wrote:

Hi all,

 

I'm getting the same thing on Ubuntu 12.04. I built CMake from source. Does anyone know how to enable ssl for the CMake build?

 

Thanks,

csaba

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Steve Pieper
Sent: April 17, 2014 22:16
To: Kilian Pohl
Cc: [hidden email]
Subject: Re: [slicer-devel] Hash Error

 

@Matt - how to I check if cmake was built with ssl?

 

@Isaiah - yes, the failing machines for me are on the BWH network.  I also did not have the problem on a machine at home.

 

@Kilian - we are all in the same gang.

 

On Wed, Apr 16, 2014 at 5:53 PM, Kilian Pohl <[hidden email]> wrote:

Hi Steve,

Here is the temp hack that made it work for me (JC suggested it)
- cd /tmp; wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
- I checked that the hash was correct via md5sum
-  changed in n External_python.cmake


  URL "http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz"

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"


- and then ran cmake

Hope it works. At least I now know that I am not alone in this world

Kilian




On 4/16/2014 1:50 PM, Steve Pieper wrote:

Update: I did a fresh build on mac and ran into the same error (the build was fine earlier today before I deleted everything and rebuilt from scratch)

 

CMake Error at python-source-prefix/src/python-source-stamp/download-python-source.cmake:9 (file):

  file DOWNLOAD HASH mismatch

 

    for file: [/Users/pieper/slicer4/latest/Slicer-superbuild/Python-2.7.3.tgz]

      expected hash: [2cf641732ac23b18d139be077bd906cd]

        actual hash: [a92bb819884c799dba8c5502edd1e128]

 

 

 

 

On Wed, Apr 16, 2014 at 4:46 PM, Steve Pieper <[hidden email]> wrote:

I'm seeing python hash issue like what Kilian repoted on my ubuntu builds now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04 (fully patched) and I tried both cmake 2.8 download (not the debian system one) and just installed the current cmake git 'next' branch and both failed.

 

If I manually download python I get hash errors from other python packages.  I also tried switching http to https and it didn't resolve the issue.

 

I saw Matt checked in some fixes related to this kind of issue - did it end up working on your system?  Do others have this issue?

 

Mac and windows build fine for me.

 

-Steve

 

On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:

Hi Kilian,

Not sure what is wrong.

As a workaround, within External_python.cmake you could change the lines:

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with


  

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

Hth

Jc

 

 

On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]> wrote:

When I build slicer from scratch I get the following error


-- downloading...
     src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
     dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
     timeout='none'
CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>

and the file Python-2.7.3.tgz is empty.

- I have no problem downloading the file via
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

What program does cmake use to download that file or what else could be wrong ?

The feedback from the developer list was not helpful

K


On 3/22/2014 2:21 AM, Mark Pearson wrote:

You will also see this error if the download is blocked by a firewall.

 

On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov <[hidden email]> wrote:

You could probably just swap the hash in the cmake file

https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51


On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]> wrote:
> When building Slicer from scratch on Ubuntu 13.04 I get the following
> error message
>
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>
>
>
> make[2]: ***
> [python-source-prefix/src/python-source-stamp/python-source-download]
> Error 1
> make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> What to do ?
>
> Thanks
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ

 

 

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
 
 
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

 

 



--
<a href="tel:%2B1%20919%20869%208849" target="_blank">+1 919 869 8849

 

 

 

-- 
Kilian M. Pohl, Ph.D. 
 
Senior Research Scientist
SRI International
 
Consulting Assistant Professor
Department of Psychiatry & Behavioral Sciences
Stanford University
 
333 Ravenswood Ave
Menlo Park, CA 94025 

 



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Hash Error

pinter

Thanks, Steve!

 

From: Steve Pieper [mailto:[hidden email]]
Sent: Thursday, April 24, 2014 14:10
To: Csaba Pinter
Cc: Kilian Pohl; [hidden email]
Subject: Re: [slicer-devel] Hash Error

 

Hi Csaba - 

 

You need to build cmake from source using another copy of cmake and then you can enable ssl in the build options (i.e. don't use the cmake source's bootstrap script).

 

-Steve

 

On Thu, Apr 24, 2014 at 1:11 PM, Csaba Pinter <[hidden email]> wrote:

Hi all,

 

I'm getting the same thing on Ubuntu 12.04. I built CMake from source. Does anyone know how to enable ssl for the CMake build?

 

Thanks,

csaba

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Steve Pieper
Sent: April 17, 2014 22:16
To: Kilian Pohl
Cc: [hidden email]
Subject: Re: [slicer-devel] Hash Error

 

@Matt - how to I check if cmake was built with ssl?

 

@Isaiah - yes, the failing machines for me are on the BWH network.  I also did not have the problem on a machine at home.

 

@Kilian - we are all in the same gang.

 

On Wed, Apr 16, 2014 at 5:53 PM, Kilian Pohl <[hidden email]> wrote:

Hi Steve,

Here is the temp hack that made it work for me (JC suggested it)
- cd /tmp; wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
- I checked that the hash was correct via md5sum
-  changed in n External_python.cmake


  URL "http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz"

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with

    URL "<a href="file:///\\tmp\Python-2.7.3.tgz">file:///tmp/Python-2.7.3.tgz"

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"


- and then ran cmake

Hope it works. At least I now know that I am not alone in this world

Kilian




On 4/16/2014 1:50 PM, Steve Pieper wrote:

Update: I did a fresh build on mac and ran into the same error (the build was fine earlier today before I deleted everything and rebuilt from scratch)

 

CMake Error at python-source-prefix/src/python-source-stamp/download-python-source.cmake:9 (file):

  file DOWNLOAD HASH mismatch

 

    for file: [/Users/pieper/slicer4/latest/Slicer-superbuild/Python-2.7.3.tgz]

      expected hash: [2cf641732ac23b18d139be077bd906cd]

        actual hash: [a92bb819884c799dba8c5502edd1e128]

 

 

 

 

On Wed, Apr 16, 2014 at 4:46 PM, Steve Pieper <[hidden email]> wrote:

I'm seeing python hash issue like what Kilian repoted on my ubuntu builds now.  The build worked fine until a week or so ago.  I'm using ubuntu 13.04 (fully patched) and I tried both cmake 2.8 download (not the debian system one) and just installed the current cmake git 'next' branch and both failed.

 

If I manually download python I get hash errors from other python packages.  I also tried switching http to https and it didn't resolve the issue.

 

I saw Matt checked in some fixes related to this kind of issue - did it end up working on your system?  Do others have this issue?

 

Mac and windows build fine for me.

 

-Steve

 

On Tue, Apr 8, 2014 at 11:14 PM, Jean-Christophe Fillion-Robin <[hidden email]> wrote:

Hi Kilian,

Not sure what is wrong.

As a workaround, within External_python.cmake you could change the lines:

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

with


  

    URL "<a href="file:///\\path\to\Download\Python-2.7.3.tgz">file:///path/to/Download/Python-2.7.3.tgz"

    URL_MD5 "2cf641732ac23b18d139be077bd906cd"

Hth

Jc

 

 

On Tue, Apr 8, 2014 at 11:04 PM, Kilian Pohl <[hidden email]> wrote:

When I build slicer from scratch I get the following error


-- downloading...
     src='http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz'
     dst='/software/Slicer4/superbuild/Python-2.7.3.tgz'
     timeout='none'
CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>

and the file Python-2.7.3.tgz is empty.

- I have no problem downloading the file via
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

What program does cmake use to download that file or what else could be wrong ?

The feedback from the developer list was not helpful

K

On 3/22/2014 2:21 AM, Mark Pearson wrote:

You will also see this error if the download is blocked by a firewall.

 

On Sat, Mar 22, 2014 at 6:35 AM, Andriy Fedorov <[hidden email]> wrote:

You could probably just swap the hash in the cmake file

https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake#L51


On Fri, Mar 21, 2014 at 3:17 PM, Kilian Pohl <[hidden email]> wrote:
> When building Slicer from scratch on Ubuntu 13.04 I get the following
> error message
>
>
> CMake Error at
> python-source-prefix/src/python-source-stamp/download-python-source.cmake:9
> (file):
>    file DOWNLOAD HASH mismatch
>
>      for file: [/software/Slicer4/superbuild_withoutEM/Python-2.7.3.tgz]
>        expected hash: [2cf641732ac23b18d139be077bd906cd]
>          actual hash: [d41d8cd98f00b204e9800998ecf8427e]
>
>
>
> make[2]: ***
> [python-source-prefix/src/python-source-stamp/python-source-download]
> Error 1
> make[1]: *** [CMakeFiles/python-source.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> What to do ?
>
> Thanks
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ

 

 

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
 
 
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

 

 



--
<a href="tel:%2B1%20919%20869%208849" target="_blank">+1 919 869 8849

 

 

 

-- 
Kilian M. Pohl, Ph.D. 
 
Senior Research Scientist
SRI International
 
Consulting Assistant Professor
Department of Psychiatry & Behavioral Sciences
Stanford University
 
333 Ravenswood Ave
Menlo Park, CA 94025 

 

 


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.