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 [2020/05/20 09:11] juckinspython_notes [2020/10/06 16:10] juckins
Line 1: Line 1:
-==== Python Notes ====+==== Python Install Notes ==== 
 + 
 +__6 Oct 2020__ 
 +  # python3 -m pip install dictor 
 +  # python3 -m pip install demjson 
 +  # python3 -m pip install wheel 
 + 
 +__26 Aug 2020__ 
 + 
 +Updated Chrome via yum to version 85.0.4183.83-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.
  
 __20 May 2020__ __20 May 2020__
Line 19: Line 38:
   # cd /usr/local/bin   # cd /usr/local/bin
   # ./pip3 list --outdated   # ./pip3 list --outdated
- +  # pip_upgrade_outdated
-(how to fix?) +
  
 __8 April 2020__ __8 April 2020__
Line 36: Line 53:
   # ./pip3 install --upgrade   # ./pip3 install --upgrade
   # ./pip3 list --outdated   # ./pip3 list --outdated
-  # pip-upgrade-outdated+  # pip_upgrade_outdated
      
   # find /usr -name "chromedriver" -exec ls -l {} \;   # find /usr -name "chromedriver" -exec ls -l {} \;
Line 122: Line 139:
      
   $ pip list   $ pip list
-   
-[[https://docs.python.org/3/howto/logging.html|Logging in python]] 
- 
-  logging.basicConfig(format='%(asctime)s %(message)s', filename=log_file, level=logging.DEBUG) 
-  logging.debug('This message should go to the log file') 
-  logging.info('So should this') 
-  logging.warning('And this, too') 
- 
- 
-[[https://realpython.com/python-pep8/|Write beautiful python code with PEP-8]] 
python_notes.txt · Last modified: 2023/04/05 08:56 by juckins