Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install pip dependencies #3

Closed
sebastian-luna-valero opened this issue Apr 25, 2023 · 4 comments
Closed

Cannot install pip dependencies #3

sebastian-luna-valero opened this issue Apr 25, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@sebastian-luna-valero
Copy link
Contributor

Hi,

When I try binder with a repository containing pip dependencies in the conda environment (e.g. https://github.com/pangeo-data/foss4g-2022/blob/main/.binder/environment.yml) I run into this issue:

PermissionError: [Errno 13] Permission denied: '/home/jovyan/.binder/condaenv.5ubl3yce.requirements.txt'

Do you know why?

Best regards,
Sebastian

@sebastian-luna-valero
Copy link
Contributor Author

A bit more context:

Installing pip dependencies: ...working... failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<    
Traceback (most recent call last):      File "/srv/conda/lib/python3.10/site-packages/conda/exceptions.py", line 1114, 
    in __call__        return func(*args, **kwargs)     
File "/srv/conda/lib/python3.10/site-packages/conda_env/cli/main.py", line 80, 
    in do_call        exit_code = getattr(module, func_name)(args, parser)     
 File "/srv/conda/lib/python3.10/site-packages/conda_env/cli/main_update.py", line 127, 
    in execute        result[installer_type] = installer.install(prefix, specs, args, env)      
File "/srv/conda/lib/python3.10/site-packages/conda_env/installers/pip.py", line 70, 
    in install        return _pip_install_via_requirements(*args, **kwargs)      
File "/srv/conda/lib/python3.10/site-packages/conda_env/installers/pip.py", line 44, 
    in _pip_install_via_requirements        requirements = Utf8NamedTemporaryFile(mode='w',      
File "/srv/conda/lib/python3.10/site-packages/conda/auxlib/compat.py", line 54, 
    in Utf8NamedTemporaryFile        return NamedTemporaryFile(      
File "/srv/conda/lib/python3.10/tempfile.py", line 559, 
    in NamedTemporaryFile        file = _io.open(dir, mode, buffering=buffering,     
File "/srv/conda/lib/python3.10/tempfile.py", line 556, 
    in opener        fd, name = _mkstemp_inner(dir, prefix, suffix, flags, output_type)      
File "/srv/conda/lib/python3.10/tempfile.py", line 256, 
    in _mkstemp_inner        fd = _os.open(file, flags, 0o600)   
PermissionError: [Errno 13] Permission denied: '/home/jovyan/.binder/condaenv.odqxp255.requirements.txt'

@sebastian-luna-valero
Copy link
Contributor Author

kaniko works when moving the dependencies out of .binder

xref: pangeo-data/foss4g-2022#94

@VladimirVisnovsky VladimirVisnovsky self-assigned this Apr 27, 2023
@VladimirVisnovsky VladimirVisnovsky added the bug Something isn't working label Apr 27, 2023
@VladimirVisnovsky
Copy link
Collaborator

Hi! The issue is with Kaniko not respecting permissions along the path to files while copying in Dockerfile. I've added a small fix (3c3da99 and e61df5f) where I explicitly modify permissions. Can you please confirm that it is working now?

@sebastian-luna-valero
Copy link
Contributor Author

Hi @VladimirVisnovsky

it works indeed, many thanks!

Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants