system is Linux
CGIBIN=http://ajh.co/~ajh/cgi-bin
HOMEPAGE=http://ajh.co/~ajh
BASEPAGE=/home/ajh/www
LOGFILE=/home/ajh/local/ajh.co/logs
numtodisplay = 25, startnum = 0 --> -->
 
 
<type 'exceptions.TypeError'>
Python 2.7.17: /usr/bin/python
Sun Dec 3 19:05:47 2023

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/ajh/public_html/cgi-bin/ranktrains.py in <module>()
    128 RANKINGS=LOGFILE+"/trainrank"
    129 VIEWINGS=LOGFILE+"/trainview"
=>  130 totalimages, datatime, votefactor, table = rank.rankdata(RANKINGS)
    131 
    132 if debug:
totalimages undefined, datatime undefined, votefactor undefined, table undefined, rank = <module 'rank' from '/home/ajh/public_html/cgi-bin/rank.py'>, rank.rankdata = <function rankdata>, RANKINGS = '/home/ajh/local/ajh.co/logs/trainrank'
 /home/ajh/public_html/cgi-bin/rank.py in rankdata(CURRENT='/home/ajh/local/ajh.co/logs/trainrank')
     30   totalimages=0
     31   table={}
=>   32   currlist=open(CURRENT,mode="rt",encoding='UTF-8')
     33   currdate=currlist.readline()
     34   currdatetime=strtotime(currdate,startnow)
currlist undefined, builtin open = <built-in function open>, CURRENT = '/home/ajh/local/ajh.co/logs/trainrank', mode undefined, encoding undefined

<type 'exceptions.TypeError'>: 'encoding' is an invalid keyword argument for this function
      args = ("'encoding' is an invalid keyword argument for this function",)
      message = "'encoding' is an invalid keyword argument for this function"