TypeError | Python 3.4.3: /home/ywawycom/py34/bin/python Fri Aug 14 15:19:29 2020 |
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/ywawycom/public_html/cgi-bin/0.py in |
1 #!/home/ywawycom/py34/bin/python |
2 import sys |
3 sys.path[ 0 ] = "/home/ywawycom/0prod" |
4 import h0 |
=> 5 h0.main() |
h0 = <module 'h0' from '/home/ywawycom/0prod/h0.py'>, h0.main = <function main> |
/home/ywawycom/0prod/h0.py in main() |
399 glu.log( grp, logpre + " access") |
400 glu.value['cgi-grpdb'] = grp |
401 glu.value['dispatch'] = hostly[ 2 ] |
402 glu.value['rootpath'] = hostly[ 3 ] |
=> 403 dispatch( morepath ) |
global dispatch = <function dispatch>, morepath = ['favicon.ico'] |
/home/ywawycom/0prod/h0.py in dispatch(pth=['favicon.ico']) |
205 |
206 if glu.value['in-get']: |
=> 207 refer( glu.value['rootpath'], pth ) |
208 else: |
209 if 'id-email' in glu.value: |
global refer = <function refer>, global glu = <module 'glu' from '/home/ywawycom/0prod/glu.py'>, glu.value = {'.Admin': ('glenn.linderman.2@gmail.com',), '.Credentials': ('glid',), '.DirectoryIndex': ('!index.html', '!index.html.br', '*!index.cgi', 'index.html', 'index.html.br', 'index.htm', 'index.htm.br', '*index.cgi', '*index.py', '*index.pl'), 'base-domain': 'npopuk.org.uk', 'base-url': 'https://npopuk.org.uk/', 'cgi-grpdb': {}, 'cgi-log': '/home/ywawycom/0prod/log/cgi.log', 'cgi-script': '/cgi-bin/0.cgi/', 'cgi-store': '/home/ywawycom/0prod/storage', 'cgi-top': '/home/ywawycom/0prod', ...}, pth = ['favicon.ico'] |
/home/ywawycom/0prod/h0.py in refer(rootpath='/home/ywawycom/0fs/np829', pth=['favicon.ico']) |
26 if len( pth ): |
27 fil = pth[ -1 ] |
=> 28 ch.serve_file_from_query( os.path.join( rootpath, *pth[ 0:-1 ]), fil ) |
29 ##################################### |
30 cred = None |
global ch = <module 'cgihelpers' from '/home/ywawycom/0prod/cgihelpers.py'>, ch.serve_file_from_query = <function serve_file_from_query>, global os = <module 'os' from '/home/ywawycom/py34/lib/python3.4/os.py'>, os.path = <module 'posixpath' from '/home/ywawycom/py34/lib/python3.4/posixpath.py'>, os.path.join = <function join>, rootpath = '/home/ywawycom/0fs/np829', pth = ['favicon.ico'], fil = 'favicon.ico' |
/home/ywawycom/0prod/cgihelpers.py in serve_file_from_query(pth='/home/ywawycom/0fs/np829', fil='favicon.ico') |
1699 req["rdl"] = rdl |
1700 req["xdl"] = xdl |
=> 1701 serve_file_from_name( req ) |
1702 ##################################### |
1703 # see http://webpython.codepoint.net/cgi_big_file_upload |
global serve_file_from_name = <function serve_file_from_name>, req = {'cd': 'inline', 'ct': 'image/x-icon', 'dl': 'favicon.ico', 'mod': 1250622874.0, 'pdl': '/home/ywawycom/0fs/np829/favicon.ico', 'pth': '/home/ywawycom/0fs/np829', 'rdl': 'favicon', 'sz': 1078, 'xdl': '.ico'} |
/home/ywawycom/0prod/cgihelpers.py in serve_file_from_name(req={'cd': 'inline', 'ct': 'image/x-icon', 'dl': 'favicon.ico', 'mod': 1250622874.0, 'pdl': '/home/ywawycom/0fs/np829/favicon.ico', 'pth': '/home/ywawycom/0fs/np829', 'rdl': 'favicon', 'sz': 1078, 'xdl': '.ico'}) |
1675 return |
1676 |
=> 1677 serve_file_from_path( req ) |
1678 ##################################### |
1679 def serve_file_from_query( pth, fil ): |
global serve_file_from_path = <function serve_file_from_path>, req = {'cd': 'inline', 'ct': 'image/x-icon', 'dl': 'favicon.ico', 'mod': 1250622874.0, 'pdl': '/home/ywawycom/0fs/np829/favicon.ico', 'pth': '/home/ywawycom/0fs/np829', 'rdl': 'favicon', 'sz': 1078, 'xdl': '.ico'} |
/home/ywawycom/0prod/cgihelpers.py in serve_file_from_path(req={'cd': 'inline', 'ct': 'image/x-icon', 'dl': 'favicon.ico', 'mod': 1250622874.0, 'pdl': '/home/ywawycom/0fs/np829/favicon.ico', 'pth': '/home/ywawycom/0fs/np829', 'rdl': 'favicon', 'sz': 1078, 'xdl': '.ico'}) |
655 if req['xdl'] in ('.appcache'): |
656 cacheable = False |
=> 657 fh = set_file_hdrs( pg, req, fh, cacheable ) |
658 pg.setfileh( fh ) |
659 pg.render( sys.stdout ) |
fh = <_io.BufferedReader name='/home/ywawycom/0fs/np829/favicon.ico'>, global set_file_hdrs = <function set_file_hdrs>, pg = <cgihelpers.Response object>, req = {'cd': 'inline', 'ct': 'image/x-icon', 'dl': 'favicon.ico', 'mod': 1250622874.0, 'pdl': '/home/ywawycom/0fs/np829/favicon.ico', 'pth': '/home/ywawycom/0fs/np829', 'rdl': 'favicon', 'sz': 1078, 'xdl': '.ico'}, cacheable = True |
/home/ywawycom/0prod/cgihelpers.py in set_file_hdrs(pg=<cgihelpers.Response object>, req={'cd': 'inline', 'ct': 'image/x-icon', 'dl': 'favicon.ico', 'mod': 1250622874.0, 'pdl': '/home/ywawycom/0fs/np829/favicon.ico', 'pth': '/home/ywawycom/0fs/np829', 'rdl': 'favicon', 'sz': 1078, 'xdl': '.ico'}, fh=<_io.BufferedReader name='/home/ywawycom/0fs/np829/favicon.ico'>, cacheable=True) |
574 if "mod" in req: |
575 pg.setheaders({'Last-Modified': HTTPDate( req["mod"])}) |
=> 576 glu.log( str( req["pdl"]) + "... " + os.environ.get("HTTP_ACCEPT_ENCODING"), logpre() + '|set_file_hdrs|') |
577 if req["pdl"].endswith('.br'): |
578 # check to see if browser understands the compress mode |
global glu = <module 'glu' from '/home/ywawycom/0prod/glu.py'>, glu.log = <glu.MyLog object>, builtin str = <class 'str'>, req = {'cd': 'inline', 'ct': 'image/x-icon', 'dl': 'favicon.ico', 'mod': 1250622874.0, 'pdl': '/home/ywawycom/0fs/np829/favicon.ico', 'pth': '/home/ywawycom/0fs/np829', 'rdl': 'favicon', 'sz': 1078, 'xdl': '.ico'}, global os = <module 'os' from '/home/ywawycom/py34/lib/python3.4/os.py'>, os.environ = environ({'SHLVL': '1', 'REDIRECT_STATUS': '200',...ATED': '/home/ywawycom/public_html/favicon.ico'}), os.environ.get = <bound method _Environ.get of environ({'SHLVL': ...TED': '/home/ywawycom/public_html/favicon.ico'})>, global logpre = <function logpre> |
TypeError: Can't convert 'NoneType' object to str implicitly
args =
("Can't convert 'NoneType' object to str implicitly",)
with_traceback =
<built-in method with_traceback of TypeError object>