When using latest version of Python (3.7.4 for now), the following error will occor when uploading images.
File "...\lib\cgi.py", line 220, in parse_multipart
headers['Content-Length'] = pdict['CONTENT-LENGTH']
KeyError: 'CONTENT-LENGTH'
The same problem won't happen in Python 3.6, because 'CONTENT-LENGTH' isn't necessary. But in Python 3.7 it is.
I found a way to temporary fix it for Python 3.7.
open 'server.py' and add a line under def parse_POST(self):
When using latest version of Python (3.7.4 for now), the following error will occor when uploading images.
The same problem won't happen in Python 3.6, because 'CONTENT-LENGTH' isn't necessary. But in Python 3.7 it is. I found a way to temporary fix it for Python 3.7.
Change line
id_str = re.sub(r'\W+', '', id_str.decode())
in def do_POST(self):Then it's good to go. Successed with: Windows 10, Python 3.7.4 , CUDA 10.1