pfnet / PaintsChainer

line drawing colorization using chainer
https://paintschainer.preferred.tech/
MIT License
3.77k stars 561 forks source link

How do I Include path for Windows kit? (Include Path INCLUDE for Windows Kit not assigned.) #142

Open acecream26 opened 5 years ago

acecream26 commented 5 years ago

Hi I followed the "Step by step guide for installing chainer (Windows, Tested on Win10 64-bit, python 3.5)" Everything went well, the localhost was, OK, I guess, however, whenever I upload a sketch, its stuck on the "NOW UPLOADING" process. After that, the page will be unresponsive. I have no Idea what happened.

Though, ravaging the command prompt, I found this: Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. I'm pretty sure I included the paths needed, though, I didn't do anything to Visual Studio... is there a path I still need to add in regards to Visual Studio?

But from start to finish, I got these: GPU: -1 start load model serving at localhost : 8000 Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:44] "GET / HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:44] "GET /wPaint/lib/wColorPicker.min.css HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:45] "GET /wPaint/lib/paletteGenerator.js HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:45] "GET /wPaint/wPaint.min.css HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:45] "GET /css/font-awesome.css HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:45] "GET /wPaint/lib/wColorPicker.min.js?ver3 HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:46] "GET /wPaint/wPaint.min.js HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:46] "GET /wPaint/plugins/main/src/wPaint.menu.main.js HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:46] "GET /paints_chainer.js?ver0.6 HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:46] "GET /fonts/fontawesome-webfont.woff2?v=4.7.0 HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:48] "GET /wPaint/plugins/main/img/icons-menu-main.png HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:48] "GET /wPaint/plugins/main/img/cursor-pencil.png HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:30:49] "GET /images/favicon.ico HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat.

Exception happened during processing of request from ('127.0.0.1', 55359) Traceback (most recent call last): File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 313, in _handle_request_noblock self.process_request(request, client_address) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 344, in process_request self.finish_request(request, client_address) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 357, in finish_request self.RequestHandlerClass(request, client_address, self) File "server.py", line 28, in init self, req, client_addr, server) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 646, in init super().init(*args, **kwargs) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 717, in init self.handle() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 426, in handle self.handle_one_request() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 414, in handle_one_request method() File "server.py", line 60, in do_POST form = self.parse_POST() File "server.py", line 34, in parse_POST postvars = parse_multipart(self.rfile, pdict) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\cgi.py", line 220, in parse_multipart headers['Content-Length'] = pdict['CONTENT-LENGTH'] KeyError: 'CONTENT-LENGTH'

Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:31:53] code 404, message File not found 127.0.0.1 - - [07/Oct/2018 19:31:53] "GET /static/ HTTP/1.1" 404 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat.

Exception happened during processing of request from ('127.0.0.1', 55378) Traceback (most recent call last): File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 313, in _handle_request_noblock self.process_request(request, client_address) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 344, in process_request self.finish_request(request, client_address) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 357, in finish_request self.RequestHandlerClass(request, client_address, self) File "server.py", line 28, in init self, req, client_addr, server) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 646, in init super().init(*args, **kwargs) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 717, in init self.handle() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 426, in handle self.handle_one_request() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 414, in handle_one_request method() File "server.py", line 60, in do_POST form = self.parse_POST() File "server.py", line 34, in parse_POST postvars = parse_multipart(self.rfile, pdict) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\cgi.py", line 220, in parse_multipart headers['Content-Length'] = pdict['CONTENT-LENGTH'] KeyError: 'CONTENT-LENGTH'

Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:33:00] "GET / HTTP/1.1" 304 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat.

Exception happened during processing of request from ('127.0.0.1', 55420) Traceback (most recent call last): File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 313, in _handle_request_noblock self.process_request(request, client_address) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 344, in process_request self.finish_request(request, client_address) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 357, in finish_request self.RequestHandlerClass(request, client_address, self) File "server.py", line 28, in init self, req, client_addr, server) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 646, in init super().init(*args, **kwargs) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 717, in init self.handle() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 426, in handle self.handle_one_request() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 414, in handle_one_request method() File "server.py", line 60, in do_POST form = self.parse_POST() File "server.py", line 34, in parse_POST postvars = parse_multipart(self.rfile, pdict) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\cgi.py", line 220, in parse_multipart headers['Content-Length'] = pdict['CONTENT-LENGTH'] KeyError: 'CONTENT-LENGTH'

Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:43:36] "GET /howto.html HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:43:37] "GET /main.css HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:43:37] "GET /images/1.jpg HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:43:37] "GET /images/2.jpg HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:43:37] "GET /images/3.jpg HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. 127.0.0.1 - - [07/Oct/2018 19:43:37] "GET /images/4.jpg HTTP/1.1" 200 - Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat.

Exception happened during processing of request from ('127.0.0.1', 55596) Traceback (most recent call last): File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 313, in _handle_request_noblock self.process_request(request, client_address) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 344, in process_request self.finish_request(request, client_address) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 357, in finish_request self.RequestHandlerClass(request, client_address, self) File "server.py", line 28, in init self, req, client_addr, server) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 646, in init super().init(*args, **kwargs) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 717, in init self.handle() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 426, in handle self.handle_one_request() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 414, in handle_one_request method() File "server.py", line 60, in do_POST form = self.parse_POST() File "server.py", line 34, in parse_POST postvars = parse_multipart(self.rfile, pdict) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\cgi.py", line 220, in parse_multipart headers['Content-Length'] = pdict['CONTENT-LENGTH'] KeyError: 'CONTENT-LENGTH'

Include Path INCLUDE for Windows Kit not assigned. Please edit and use run_python.bat or run_exe.bat. Include Path LIB for Windows Kit is not assigned. Please edit and use run_python.bat or run_exe.bat. Traceback (most recent call last): File "server.py", line 169, in httpd.serve_forever() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 232, in serve_forever ready = selector.select(pollinterval) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\selectors.py", line 323, in select r, w, = self._select(self._readers, self._writers, [], timeout) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python37-32\lib\selectors.py", line 314, in _select r, w, x = select.select(r, w, w, timeout) KeyboardInterrupt

Kamilet commented 4 years ago

You can try to install cupy for cuda then retry. For example, if you are using CUDA 10.1, you can install cupy with:

pip install cupy-cuda101

then run "run_python.bat" to start.

As for KeyError: 'CONTENT-LENGTH', I get it fixed: https://github.com/pfnet/PaintsChainer/issues/150