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

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

Open
andriusdc opened this issue Aug 15, 2024 · 3 comments
Open

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

andriusdc opened this issue Aug 15, 2024 · 3 comments

Comments

@andriusdc
Copy link

andriusdc commented Aug 15, 2024

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?

@rikharigaurav
Copy link

@andriusdc did you found out the solution??

@Maaz2404
Copy link

same issue

@vinaykakkad
Copy link

Downgrading the pip version fixed the issue for me.

! pip install -U pip==24.0.0

Changing the version of torch and torchtext might be required. (#86 (comment))

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

No branches or pull requests

4 participants