the-full-stack / fsdl-text-recognizer-2022

Source of the FSDL 2022 labs, which are at https://github.com/full-stack-deep-learning/fsdl-text-recognizer-2022-labs
https://fullstackdeeplearning.com/course
MIT License
82 stars 26 forks source link

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

Open andriusdc opened 2 months ago

andriusdc commented 2 months ago

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 commented 2 months ago

@andriusdc did you found out the solution??