vais-ral / CCPi-VirtualMachine

Set of scripts and configuration to prepare VM based on Scientific Linux 7 from scratch with CCPi from binaries or source codes.
MIT License
2 stars 2 forks source link

installing conda-build fails #4

Closed paskino closed 5 years ago

paskino commented 5 years ago

the command to install conda-build fails with

ERROR conda.core.link:_execute(502): An error occurred while uninstalling package 'conda-forge::conda-4.5.11-py35_0'.
PermissionError(13, 'Permission denied')
Attempting to roll back.

Rolling back transaction: done

PermissionError(13, 'Permission denied')
TomasKulhanek commented 5 years ago

Permission denied - conda-build should have write permission - e.g. use sudo or chown -R vagrant:vagrant /opt/ccpi

paskino commented 5 years ago

it seems it doesn't want to uninstall a package (itself) An error occurred while uninstalling package 'conda-forge::conda-4.5.11-py35_0'

It does work in another environment.

paskino commented 5 years ago

Following the output of conda info. I see base environment : /opt/ccpi (read only) may be the problem?

     active environment : py3
    active env location : /opt/ccpi/envs/py3
            shell level : 1
       user config file : /home/vagrant/.condarc
 populated config files : 
          conda version : 4.5.11
    conda-build version : not installed
         python version : 3.7.0.final.0
       base environment : /opt/ccpi  (read only)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /opt/ccpi/pkgs
                          /home/vagrant/.conda/pkgs
       envs directories : /home/vagrant/.conda/envs
                          /opt/ccpi/envs
               platform : linux-64
             user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Linux/3.10.0-862.11.6.el7.x86_64 rhel/7.5 glibc/2.17
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
TomasKulhanek commented 5 years ago

fixed. During installation script run by root. After installation /opt/ccpi ownership set to vagrant user.