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 revision Previous revision
Next revision
Previous revision
python_notes [2019/09/30 17:12]
juckins
python_notes [2020/05/20 20:00] (current)
juckins
Line 1: Line 1:
 ==== Python Notes ==== ==== Python Notes ====
 +
 +__20 May 2020__
 +
 +Updated Chrome via yum to version 83.0.4103.61-1 and now check_envoy.pl fails.
 +
 +Did the following as root to fix:
 +
 +  # /usr/local/bin/pip3 uninstall chromedriver-binary
 +  # /usr/local/bin/pip3 install chromedriver-binary
 +  # /usr/bin/python3 -m pip install --upgrade pip
 +  # find /usr -name "chromedriver" -exec ls -l {} \;
 +  # chmod 755 /usr/local/lib/python3.6/site-packages/chromedriver_binary/chromedriver
 +
 +Re-ran the cron and script worked.
 +
 +Then tried looking at old packages needing an update:
 +
 +  # cd /usr/local/bin
 +  # ./pip3 list --outdated
 +  # pip_upgrade_outdated
 +
 +__8 April 2020__
 +
 +Upgraded Chrome via yum to version 81.0.4044.92 and now check_envoy.pl fails.
 +
 +Did the following as root to fix:
 +
 +  # /usr/local/bin/pip3 uninstall chromedriver-binary
 +  # /usr/local/bin/pip3 install chromedriver-binary
 +  # /usr/local/bin/pip3 install pip-upgrade-outdated
      
 +  # cd /usr/local/bin
 +  # ./pip3 install --upgrade
 +  # ./pip3 list --outdated
 +  # pip_upgrade_outdated
 +  
 +  # find /usr -name "chromedriver" -exec ls -l {} \;
 +  
 +  /usr/local/lib/python3.6/site-packages/chromedriver_binary/chromedriver
 +  
 +  # chmod 755 /usr/local/lib/python3.6/site-packages/chromedriver_binary/chromedriver
 +
 +The pip upgrade moved the astral package to v2.1 which broke sun.py and it needed some major changes.  Had to work through the [[https://astral.readthedocs.io/en/latest/index.html|Astral]] package docs.
 +  
 +__11 December 2019__
 +
 +Upgraded Chrome via yum to version 79.0.3945.79 and now check_envoy.pl fails.
 +
 +Did the following as root to fix:
 +
 +  # /usr/local/bin/pip3 uninstall chromedriver-binary
 +  # /usr/local/bin/pip3 install chromedriver-binary
 +  # /usr/local/bin/pip3 install pip-upgrade-outdated
 +  # pip-upgrade-outdated
 +  
 +  # find /usr -name "chromedriver" -exec ls -l {} \;
 +  
 +  /usr/lib/python3.6/site-packages/chromedriver
 +  /usr/local/lib/python3.6/site-packages/chromedriver_binary/chromedriver
 +
 +  # chmod 755 /usr/local/lib/python3.6/site-packages/chromedriver_binary/chromedriver
 +
 +Note that both **/usr/bin/pip3.6** and **/usr/local/bin/pip3.6** exist on the system now...needs to be fixed.
 +
 +
 +
 +----
 +
 With CentOS7.7, python3 can load from base.  Do the following to fix previously-installed IUS release: With CentOS7.7, python3 can load from base.  Do the following to fix previously-installed IUS release:
  
python_notes.1569877924.txt.gz ยท Last modified: 2019/09/30 17:12 by juckins