alibaba / pipcook

Machine learning platform for Web developers
https://alibaba.github.io/pipcook/
Apache License 2.0
2.54k stars 206 forks source link

boa: md5sum mismatch of tar archive #302

Open kyleslight opened 4 years ago

kyleslight commented 4 years ago

macOS install boa will throw a warning md5: command not found (but it will not break installation process and the output model works well)

> node tools/install-python.js && node tools/install-requirements.js

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 50.3M  100 50.3M    0     0  4074k      0  0:00:12  0:00:12 --:--:-- 3907k
PREFIX=/Users/kyleslight/code_pool/node/test_space/test/output/node_modules/@pipcook/boa/.miniconda
./Miniconda3-latest-MacOSX-x86_64.sh: line 369: md5: command not found
WARNING: md5sum mismatch of tar archive
expected: e947884fafc78860e75e43579fa3c270
     got: 
Unpacking payload ...
Collecting package metadata (current_repodata.json): done                                                                                                                                                     
Solving environment: done

This issue seems related with version of conda: https://stackoverflow.com/questions/35930923/anaconda-failing-md5-check-for-update

yorkie commented 4 years ago

@FeelyChau May I ask you to have a check?

FeelyChau commented 4 years ago

It's not the same problem with the issue you offered. This error message means the command md5 is not installed on your macOS, may I ask you to check the OS version? As far as I know, this command should be pre-installed on macOS.

yorkie commented 4 years ago

@FeelyChau we should make sure all the dependencies installed before running these tool scripts.

yorkie commented 4 years ago

As we have done at https://github.com/alibaba/pipcook/blob/master/packages/boa/tools/check-dependence.js, we need to add the md5/md5sum to the check list, too.

FeelyChau commented 4 years ago

As we have done at https://github.com/alibaba/pipcook/blob/master/packages/boa/tools/check-dependence.js, we need to add the md5/md5sum to the check list, too.

As a third-party of boa, it's hard to list its dependences.

yorkie commented 4 years ago

It's the way to fix this problem ASAP.

FeelyChau commented 4 years ago

Do you know the way to install md5 on macos? I try to find but failed.

FeelyChau commented 4 years ago

@kyleslight cloud you execute these command on your mac, and put the output here?

$ sw_vers
$ ls /sbin/md5
kyleslight commented 4 years ago

@kyleslight cloud you execute these command on your mac, and put the output here?

$ sw_vers
$ ls /sbin/md5
➜  ~ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.5
BuildVersion:   19F101
➜  ~ ls /sbin/md5
/sbin/md5

Seems /sbin is not in my PATH env, after appending it, the command md5 works well

➜  ~ md5 -s test
MD5 ("test") = 098f6bcd4621d373cade4e832627b4f6
yorkie commented 4 years ago

@kyleslight is there any reason why the /sbin not in the PATH?

FeelyChau commented 4 years ago

@kyleslight cloud you execute these command on your mac, and put the output here?

$ sw_vers
$ ls /sbin/md5
➜  ~ sw_vers
ProductName:  Mac OS X
ProductVersion:   10.15.5
BuildVersion: 19F101
➜  ~ ls /sbin/md5
/sbin/md5

Seems /sbin is not in my PATH env, after appending it, the command md5 works well

➜  ~ md5 -s test
MD5 ("test") = 098f6bcd4621d373cade4e832627b4f6

That's the problem, boa should be installed correctly if the env fixed.

kyleslight commented 4 years ago

@kyleslight is there any reason why the /sbin not in the PATH?

No idea yet...