Skip to content

Fix Travis: rm: cannot remove `/home/travis/miniconda/lib/libm.*': No such file or directory#2231

Merged
shelhamer merged 1 commit intoBVLC:masterfrom
tnarihi:fix-travis-miniconda
Mar 31, 2015
Merged

Fix Travis: rm: cannot remove `/home/travis/miniconda/lib/libm.*': No such file or directory#2231
shelhamer merged 1 commit intoBVLC:masterfrom
tnarihi:fix-travis-miniconda

Conversation

@tnarihi
Copy link
Copy Markdown
Contributor

@tnarihi tnarihi commented Mar 31, 2015

I am not sure the reason, but the latest Miniconda installation process doesn't leave libm.* in $HOME/miniconda/lib, and then all Travis test fails.

I got the Travis errors from some of my PRs like the following:

Requirement already satisfied (use --upgrade to upgrade): setuptools in /home/travis/miniconda/lib/python2.7/site-packages/setuptools-14.3-py2.7.egg (from protobuf)
Installing collected packages: protobuf
  Running setup.py install for protobuf
    Skipping installation of /home/travis/miniconda/lib/python2.7/site-packages/google/__init__.py (namespace package)
    Installing /home/travis/miniconda/lib/python2.7/site-packages/protobuf-2.6.1-py2.7-nspkg.pth
Successfully installed protobuf-2.6.1
rm: cannot remove `/home/travis/miniconda/lib/libm.*': No such file or directory
The command "sudo -E $SCRIPTS/travis_install.sh" failed and exited with 1 during .
Your build has been stopped.

@tnarihi
Copy link
Copy Markdown
Contributor Author

tnarihi commented Mar 31, 2015

One thing I figured out was conda update --yes conda removed libm.*.

➜  ~  ./miniconda.sh -b
PREFIX=/home/narihira/miniconda
installing: python-2.7.9-1 ...
installing: conda-env-2.1.3-py27_0 ...
installing: openssl-1.0.1k-0 ...
installing: pycosat-0.6.1-py27_0 ...
installing: pyyaml-3.11-py27_0 ...
installing: readline-6.2-2 ...
installing: requests-2.5.3-py27_0 ...
installing: sqlite-3.8.4.1-0 ...
installing: system-5.8-1 ...
installing: tk-8.5.15-0 ...
installing: yaml-0.1.4-0 ...
installing: zlib-1.2.8-0 ...
installing: conda-3.9.1-py27_0 ...
Python 2.7.9 :: Continuum Analytics, Inc.
creating default environment...
installation finished.
WARNING:
    You currently have a PYTHONPATH environment variable set. This may cause
    unexpected behavior when running the Python interpreter in Miniconda.
    For best results, please verify that your PYTHONPATH only points to
    directories of packages that are compatible with the Python interpreter
    in Miniconda: /home/narihira/miniconda
➜  ~  ls miniconda/lib/libm.*  
miniconda/lib/libm.so  miniconda/lib/libm.so.6
➜  ~  conda update --yes conda
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment /home/narihira/miniconda:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    openssl-1.0.1k             |                1         2.6 MB
    sqlite-3.8.4.1             |                1         2.5 MB
    system-5.8                 |                2         170 KB
    tk-8.5.18                  |                0         1.9 MB
    python-2.7.9               |                2        13.4 MB
    requests-2.6.0             |           py27_0         594 KB
    setuptools-14.3            |           py27_0         435 KB
    conda-3.10.0               |           py27_0         164 KB
    pip-6.0.8                  |           py27_0         1.5 MB
    ------------------------------------------------------------
                                           Total:        23.2 MB

The following NEW packages will be INSTALLED:

    pip:        6.0.8-py27_0 
    setuptools: 14.3-py27_0  

The following packages will be UPDATED:

    conda:      3.9.1-py27_0 --> 3.10.0-py27_0
    openssl:    1.0.1k-0     --> 1.0.1k-1     
    python:     2.7.9-1      --> 2.7.9-2      
    requests:   2.5.3-py27_0 --> 2.6.0-py27_0 
    sqlite:     3.8.4.1-0    --> 3.8.4.1-1    
    system:     5.8-1        --> 5.8-2        
    tk:         8.5.15-0     --> 8.5.18-0     

Fetching packages ...
openssl-1.0.1k 100% |###############################################################################################################################################################################################################################| Time: 0:00:03 834.39 kB/s
sqlite-3.8.4.1 100% |###############################################################################################################################################################################################################################| Time: 0:00:02   1.27 MB/s
system-5.8-2.t 100% |###############################################################################################################################################################################################################################| Time: 0:00:00 339.84 kB/s
tk-8.5.18-0.ta 100% |###############################################################################################################################################################################################################################| Time: 0:00:01   1.13 MB/s
python-2.7.9-2 100% |###############################################################################################################################################################################################################################| Time: 0:00:21 652.67 kB/s
requests-2.6.0 100% |###############################################################################################################################################################################################################################| Time: 0:00:00 663.68 kB/s
setuptools-14. 100% |###############################################################################################################################################################################################################################| Time: 0:00:00 598.93 kB/s
conda-3.10.0-p 100% |###############################################################################################################################################################################################################################| Time: 0:00:00 337.61 kB/s
pip-6.0.8-py27 100% |###############################################################################################################################################################################################################################| Time: 0:00:02 776.10 kB/s
Extracting packages ...
[      COMPLETE      ] |#################################################################################################################################################################################################################################################| 100%
Unlinking packages ...
[      COMPLETE      ] |#################################################################################################################################################################################################################################################| 100%
Linking packages ...
[      COMPLETE      ] |#################################################################################################################################################################################################################################################| 100%
➜  ~  ls miniconda/lib/libm.* 
zsh: no matches found: miniconda/lib/libm.*

@tnarihi
Copy link
Copy Markdown
Contributor Author

tnarihi commented Mar 31, 2015

The only difference from the previous passed travis test is:

    system:     5.8-1        --> 5.8-2        

It seems that system-5.8-2 fixes libm problem.

@shelhamer
Copy link
Copy Markdown
Member

Good to know the libm issue is no more. Thanks for the update Takuya!

shelhamer added a commit that referenced this pull request Mar 31, 2015
Fix Travis: no need to remove libm in new Miniconda
@shelhamer shelhamer merged commit d39a3eb into BVLC:master Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants