Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


python_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
python_notes [2021/05/03 08:24] juckinspython_notes [2021/11/16 13:39] juckins
Line 1: Line 1:
 ==== Python Install Notes ==== ==== Python Install Notes ====
 +
 +__16 Nov 2021__
 +  
 +Upgraded several python packages.
 +  
 +  [root@tidewater: ~]# python3 -m pip list --outdated
 +  Package             Version        Latest         Type
 +  ------------------- -------------- -------------- -----
 +  certifi             2021.5.30      2021.10.8      wheel
 +  charset-normalizer  2.0.6          2.0.7          wheel
 +  chromedriver-binary 94.0.4606.61.0 96.0.4664.35.0 sdist
 +  idna                3.2            3.3            wheel
 +  Pillow              8.3.2          8.4.0          wheel
 +  pytz                2021.1         2021.3         wheel
 +  setuptools          58.1.0         59.1.1         wheel
 +  
 +  [root@tidewater: ~]# python3 -m pip install --upgrade <package_name>
 +
 +__29 Sep 2021__
 +
 +Upgraded the following python3 packages using the commands listed below:
 +
 +  pip
 +  charset-normalizer
 +  setuptools
 +  urllib3
 +  chromedriver-binary
 +  
 +Then got the following error message for chromedriver-binary:
 +
 +  selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 95
 +  Current browser version is 94.0.4606.61 with binary path /usr/bin/google-chrome
 +
 +So did the following to fix:
 +
 +  python3 -m pip install chromedriver-binary==94.0.4606.61
 +  find /usr -name "chromedriver" -exec ls -l {} \;
 +  chmod 755 /usr/local/lib/python3.6/site-packages/chromedriver_binary/chromedriver
 +
 +__21 Jul 2021__
 +
 +  # python3 -m pip list --outdated
 +  Package             Version        Latest         Type
 +  ------------------- -------------- -------------- -----
 +  certifi             2020.12.5      2021.5.30      wheel
 +  chromedriver-binary 91.0.4472.19.0 92.0.4515.43.0 sdist
 +  idna                3.1            3.2            wheel
 +  requests            2.25.1         2.26.0         wheel
 +  setuptools          57.0.0         57.4.0         wheel
 +  urllib3             1.26.5         1.26.6         wheel
 +
 +Upgraded all using:
 +
 +  python3 -m pip install --upgrade <package_name>
 +  
 +Note on chromedriver-binary...don't forget to check/adjust permissions:
 +
 +  # find /usr -name "chromedriver" -exec ls -l {} \;
 +  # chmod 755 /usr/local/lib/python3.6/site-packages/chromedriver_binary/chromedriver
 +
 +__26 May 2021__
 +
 +
 +These packages were outdated:
 +
 +  # python3 -m pip list --outdated
 +  Package             Version        Latest         Type
 +  ------------------- -------------- -------------- -----
 +  chromedriver-binary 90.0.4430.24.0 91.0.4472.19.0 sdist
 +  pip                 21.1.1         21.1.2         wheel
 +  setuptools          56.0.0         57.0.0         wheel
 +  WARNING: You are using pip version 21.1.1; however, version 21.1.2 is available.
 +  You should consider upgrading via the '/bin/python3 -m pip install --upgrade pip' command.
 +
 +Upgraded all using:
 +
 +  python3 -m pip install --upgrade <package_name>
 +  
  
 __15 Apr 2021__ __15 Apr 2021__
python_notes.txt · Last modified: 2023/04/05 08:56 by juckins