https://github.com/blobmon/simplechan
上の匿名掲示板を設置して、スレッドを作ろうと思ったのですが、以下のようなエラーが出てきません。
Traceback (most recent call last): File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1741, in handle_exception reraise(exc_type, exc_value, tb) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/root/simplechan/app/app/__init__.py", line 70, in start_thread return handler.handle_start_thread() File "/root/simplechan/app/app/handler.py", line 252, in handle_start_thread img_verify_result = blob_handler.verify(app.config['UPLOAD_FOLDER']) File "/root/simplechan/app/app/blobHandler.py", line 35, in verify verify_image_res = self.verify_image() File "/root/simplechan/app/app/blobHandler.py", line 193, in verify_image self.filesize = BlobHandler.bytes_2_human_readable( self.save_tmp_image_and_return_img_size() ) File "/root/simplechan/app/app/blobHandler.py", line 204, in save_tmp_image_and_return_img_size self.img.save( savepath_tmp, self.img_format ) File "/root/simplechan/venv/lib/python2.7/site-packages/PIL/Image.py", line 1932, in save fp = builtins.open(filename, "w+b") IOError: [Errno 2] No such file or directory: '/path/to/app/app/images/tmp_1529824081209917.png'
どうすれば解決できますか?
~app/config.cfgの部分を編集したら以下のようにエラーが出てきます。
This is the Copy/Paste friendly version of the traceback. You can also paste this traceback into a gist: create past Traceback (most recent call last): File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1741, in handle_exception reraise(exc_type, exc_value, tb) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/root/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/root/simplechan/app/app/__init__.py", line 70, in start_thread return handler.handle_start_thread() File "/root/simplechan/app/app/handler.py", line 252, in handle_start_thread img_verify_result = blob_handler.verify(app.config['UPLOAD_FOLDER']) File "/root/simplechan/app/app/blobHandler.py", line 35, in verify verify_image_res = self.verify_image() File "/root/simplechan/app/app/blobHandler.py", line 193, in verify_image self.filesize = BlobHandler.bytes_2_human_readable( self.save_tmp_image_and_return_img_size() ) File "/root/simplechan/app/app/blobHandler.py", line 204, in save_tmp_image_and_return_img_size self.img.save( savepath_tmp, self.img_format ) File "/root/simplechan/venv/lib/python2.7/site-packages/PIL/Image.py", line 1932, in save fp = builtins.open(filename, "w+b") IOError: [Errno 2] No such file or directory: '/path/to/app/app/images/tmp_1530087947506601.png' The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more. Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.
最初のgist というところは何かのリンクみたいなものでした。そのリンク先は
https://gist.github.com/discover
でした。

回答1件
あなたの回答
tips
プレビュー