You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: