walthowd / husbzb-firmware

Nortek GoControl HUSBZB-1 / EM3581 Firmware update image
GNU General Public License v3.0
246 stars 40 forks source link

Python 2's get-pip.py has moved #16

Closed mattj23 closed 3 years ago

mattj23 commented 3 years ago

The Dockerfile in this repo no longer builds.

Step 7/13 : RUN python2 /tmp/get-pip.py
 ---> Running in ea2cacc91c26
Traceback (most recent call last):
  File "/tmp/get-pip.py", line 24226, in <module>                                                                                                       
    main()                                                                                                                                              
  File "/tmp/get-pip.py", line 199, in main                                                                                                             
    bootstrap(tmpdir=tmpdir)                                                                                                                            
  File "/tmp/get-pip.py", line 82, in bootstrap                                                                                                         
    from pip._internal.cli.main import main as pip_entry_point                                                                                          
  File "/tmp/tmpNrjNmz/pip.zip/pip/_internal/cli/main.py", line 60                                                                                      
    sys.stderr.write(f"ERROR: {exc}")          

The issue is the following line in the Dockerfile:

RUN curl https://bootstrap.pypa.io/get-pip.py --output /tmp/get-pip.py

This references a file which has moved (see related stack overflow issue).

walthowd commented 3 years ago

Thanks! Updated the Dockerfile.