Why conda install local package generate redundant file?

0 views
Skip to first unread message

cy yan

unread,
Jul 17, 2017, 8:58:16 AM7/17/17
to conda - Public
Hello,

  I meet a weird question when I use conda install package from a local package.  Everytime I have a local package,  it will generate a redundant file like "file: " style, it looks bad. So, I have google it and draw a bit conclusion: 

(1) This case has only occured  in installing local package,  however installing package from Internet is ok,  so :  conda install keras=2.0.2 is ok. 

[yancy@hp anaconda2]$ pwd
/home/yancy/anaconda2
[yancy@hp anaconda2]$ ls
bin  conda-meta  doc  envs  etc  include  lib  libexec  LICENSE.rst  LICENSE.txt  mkspecs  phrasebooks  pkgs  plugins  qml  README.rst  sbin  share  ssl  translations  var
[yancy@hp anaconda2]$ ./bin/conda info
Current conda install:

               platform : linux-64
         conda version : 4.2.9
      conda is private : False
     conda-env version : 4.2.9
   conda-build version : 2.0.2
        python version : 2.7.12.final.0
      requests version : 2.11.1
      root environment : /home/yancy/anaconda2  (writable)
   default environment : /home/yancy/anaconda2
      envs directories : /home/yancy/anaconda2/envs
         package cache : /home/yancy/anaconda2/pkgs
          channel URLs : https://repo.continuum.io/pkgs/free/linux-64/
                         https://repo.continuum.io/pkgs/free/noarch/
                         https://repo.continuum.io/pkgs/pro/linux-64/
                         https://repo.continuum.io/pkgs/pro/noarch/
           config file : /home/yancy/.condarc
          offline mode : False


Then, I install keras=2.0.2 from local.

Resolving repo.continuum.io (repo.continuum.io)... 104.16.19.10, 104.16.18.10, 2400:cb00:2048:1::6810:120a, ...
Connecting to repo.continuum.io (repo.continuum.io)|104.16.19.10|:443... connected.
... ...
[yancy@hp anaconda2]$ ./bin/conda install --use-local keras-2.0.2-py27_0.tar.bz2
Fetching packages ...
keras-2.0.2-py 100% |##############################################################################################################################################################################################| Time: 0:00:00 126.34 MB/s
Extracting packages ...
... ...

[yancy@hp anaconda2]$ ls
bin  conda-meta  doc  envs  etc  file:  include  keras-2.0.2-py27_0.tar.bz2  lib  libexec  LICENSE.rst  LICENSE.txt  mkspecs  phrasebooks  pkgs  plugins  qml  README.rst  sbin  share  ssl  translations  var

[yancy@hp anaconda2]$ ls -l file\:/
total 0
drwxrwxr-x. 3 yancy yancy 19 Jul 17 14:22 home
[yancy@hp anaconda2]$ ls -l file\:/home/
total 0
drwxrwxr-x. 3 yancy yancy 25 Jul 17 14:22 yancy
[yancy@hp anaconda2]$ ls -l file\:/home/yancy/anaconda2\:\:/
total 0
[yancy@hp anaconda2]$


And then, I add --debug parameter to conda install command, I locate related some info:

[yancy@hp anaconda2]$ ./bin/conda install --debug keras-2.0.2-py27_0.tar.bz2
... ...

DEBUG conda.common.disk:rm_rf(184): rm_rf /home/yancy/anaconda2/pkgs/keras-2.0.2-py27_0
DEBUG conda.common.disk:rm_rf(211): rm_rf failed. Not a link, file, or directory: /home/yancy/anaconda2/pkgs/keras-2.0.2-py27_0
DEBUG conda.common.disk:rm_rf(184): rm_rf /home/yancy/anaconda2/file:/home/yancy/anaconda2::/.tmp-keras-2.0.2-py27_0    <================ This line
DEBUG conda.common.disk:rm_rf(184): rm_rf /home/yancy/anaconda2/pkgs/keras-2.0.2-py27_0

Someone can explain reason, real thanks! 

Nehal J Wani

unread,
Jul 30, 2017, 3:47:16 PM7/30/17
to cy yan, conda - Public
This was fixed in https://github.com/conda/conda/pull/3813 and released in v4.3.0. Please update conda to 4.3.x


Cheers!

Nehal J Wani

--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+un...@continuum.io.
To post to this group, send email to co...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/6a649fbc-d641-4812-b611-37e5c283e5fc%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Reply all
Reply to author
Forward
0 new messages