Want to subscribe to topics you're interested in?
Become a Member

centmin.sh Centminmod doesn't auto fix the pip upgrade

Discussion in 'Bug Reports' started by pamamolf, Aug 8, 2020.

  1. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    8:34 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Hello

    On latest Centminod i am getting even if i re run centmin this:

    Code:
    WARNING: You are using pip version 20.1.1; however, version 20.2.1 is available.
    You should consider upgrading via the '/usr/bin/python2 -m pip install --upgrade pip' command.
    WARNING: You are using pip version 20.1.1; however, version 20.2.1 is available.
    You should consider upgrading via the '/usr/bin/python2 -m pip install --upgrade pip' command.
    If i am not wrong Centminmod was auto fixing it and when i re run the message was not there....


    But now i am getting it always ...

    * I just run manually:
    Code:
    /usr/bin/python2 -m pip install --upgrade pip
    and now is ok.

    It will be great also if it is possible to get twice the same warning. The first two lines is ok :)

    Thank you
     
    Last edited: Aug 8, 2020
  2. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    3:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Python pip probably updated as 20.2.1 is new and changes things again.

    what output do you get for the following commands
    Code (Text):
    pip -V
    pip2 -V
    pip3 -V
    

    and
    Code (Text):
    which pip
    which pip2
    which pip3
    

    and for
    Code (Text):
    pip install --upgrade pip
    pip2 install --upgrade pip
    pip3 install --upgrade pip
    
     
  3. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    8:34 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    pip -V:
    Code:
    pip 20.2.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
    pip2 -V:
    Code:
    pip 20.2.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
    pip3 -V:
    Code:
    -bash: pip3: command not found
    which pip:
    Code:
    /usr/bin/pip
    which pip2:
    Code:
    /usr/bin/pip2
    which pip3:
    Code:
    /usr/bin/which: no pip3 in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin)

    pip install --upgrade pip:
    Code:
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (20.2.1)
    pip2 install --upgrade pip:
    Code:
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (20.2.1)
    pip3 install --upgrade pip:
    Code:
    -bash: pip3: command not found
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    3:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks all good with expected output
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    3:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    centmin.sh does a check if pip upgrades are available and does them if it can and if not, alerts you to do them manually (as designed).
     
  6. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    8:34 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Just wondering why Centminmod as it prompts the correct command to fix it, is not able to run it successfully ....
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    3:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    it prompts when there's a version update so will happen each time a new version is detected as available for update - the aim for this routine in centmin.sh runs is to alert users there are pip related updates and give them the command to do it, rather than let users use older pip related versions and not know how to update them
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    3:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, you can also skip the pip update check routine on centmin.sh runs via persistent config file /etc/centminmod/custom_config.inc set
    Code (Text):
    SKIP_PIP_UPDATES='y'

    but then you would need to know how to check for pip updates yourself
     
  9. Andy

    Andy Active Member

    544
    89
    28
    Aug 6, 2014
    Ratings:
    +133
    Local Time:
    12:34 PM
    Got this today when going to centminmod menu

    WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
    You should consider upgrading via the '/usr/bin/python2 -m pip install --upgrade pip' command.
     
  10. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    3:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    That is normal and the intended design.