Skip to content

Bootstrap.py pip installs returning non-zero exit status 1. #88

@andriusdc

Description

@andriusdc

Hello! I am having some trouble on setting up any of the lab's nootebooks.

 if "bootstrap" not in locals() or bootstrap.run:
    # path management for Python
    pythonpath, = !echo $PYTHONPATH
    if "." not in pythonpath.split(":"):
        pythonpath = ".:" + pythonpath
        %env PYTHONPATH={pythonpath}
        !echo $PYTHONPATH

    # get both Colab and local notebooks into the same state
    !wget --quiet https://fsdl.me/gist-bootstrap -O bootstrap.py
    import bootstrap

    # change into the lab directory
    bootstrap.change_to_lab_dir(lab_idx=lab_idx)

    bootstrap.run = False  # change to True re-run setup
    
!pwd
%ls

It keeps returning this error:

CalledProcessError                        Traceback (most recent call last)

[<ipython-input-23-2bb7471f1183>](https://localhost:8080/#) in <cell line: 4>()
     12     # get both Colab and local notebooks into the same state
     13     get_ipython().system('wget --quiet https://fsdl.me/gist-bootstrap -O bootstrap.py')
---> 14     import bootstrap
     15 
     16     # change into the lab directory

3 frames

[/usr/lib/python3.10/subprocess.py](https://localhost:8080/#) in run(input, capture_output, timeout, check, *popenargs, **kwargs)
    524         retcode = process.poll()
    525         if check and retcode:
--> 526             raise CalledProcessError(retcode, process.args,
    527                                      output=stdout, stderr=stderr)
    528     return CompletedProcess(process.args, retcode, stdout, stderr)

CalledProcessError: Command '['pip', 'install', '--quiet', '-r', 'requirements/prod.in']' returned non-zero exit status 1.

Does anyone know how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions