<type 'exceptions.IOError'> | Python 2.7.12: /usr/bin/python2 Fri Mar 29 09:01:33 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/html/cgi-bin/ti4-map-generator-cgi.py in |
249 args = cgi.FieldStorage() |
250 if "image" in args: |
=> 251 return_image(args["image"].value) |
252 elif "get_layouts" in args: |
253 return_layouts() |
return_image = <function return_image>, args = FieldStorage(None, None, [MiniFieldStorage('image', 'galaxy_VXXDHI.png')]), ].value = [MiniFieldStorage('image', 'galaxy_VXXDHI.png')] |
/var/www/html/cgi-bin/ti4-map-generator-cgi.py in return_image(image='galaxy_VXXDHI.png') |
147 filename = os.path.join(GENERATED_DIR, image) |
148 print('Content-type: image/png\n') |
=> 149 with open(filename) as f: |
150 sys.stdout.flush() |
151 sys.stdout.write(f.read()) |
builtin open = <built-in function open>, filename = '../generated/galaxy_VXXDHI.png', f undefined |
<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '../generated/galaxy_VXXDHI.png'
args =
(2, 'No such file or directory')
errno =
2
filename =
'../generated/galaxy_VXXDHI.png'
message =
''
strerror =
'No such file or directory'