pipcook icon indicating copy to clipboard operation
pipcook copied to clipboard

boa: md5sum mismatch of tar archive

Open kyleslight opened this issue 4 years ago • 12 comments

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

kyleslight avatar Jul 03 '20 11:07 kyleslight

@FeelyChau May I ask you to have a check?

yorkie avatar Jul 03 '20 12:07 yorkie

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.

FeelyChau avatar Jul 06 '20 12:07 FeelyChau

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

yorkie avatar Jul 06 '20 12:07 yorkie

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.

yorkie avatar Jul 06 '20 12:07 yorkie

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.

FeelyChau avatar Jul 06 '20 12:07 FeelyChau

It's the way to fix this problem ASAP.

yorkie avatar Jul 06 '20 12:07 yorkie

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

FeelyChau avatar Jul 06 '20 12:07 FeelyChau

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

$ sw_vers
$ ls /sbin/md5

FeelyChau avatar Jul 06 '20 13:07 FeelyChau

@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

kyleslight avatar Jul 06 '20 13:07 kyleslight

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

yorkie avatar Jul 06 '20 13:07 yorkie

@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.

FeelyChau avatar Jul 06 '20 13:07 FeelyChau

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

No idea yet...

kyleslight avatar Jul 06 '20 13:07 kyleslight