IOError:[错误2]错误不会消失

时间:2018-06-29 12:04:05

标签: django linux postgresql python-2.7 flask

https://github.com/blobmon/simplechan 我安装了上面的匿名公告板,并考虑制作线程,但随后的Ehler没有问世。

Traceback (most recent call last): File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1997, in call return self.wsgi_app(environ, start_response) File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app response = self.handle_exception(e) File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception reraise(exc_type, exc_value, tb) File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functionsrule.endpoint File "/home/user/simplechan/simplechan/app/app/init.py", line 70, in start_thread return handler.handle_start_thread() File "/home/user/simplechan/simplechan/app/app/handler.py", line 252, in handle_start_thread img_verify_result = blob_handler.verify(app.config['UPLOAD_FOLDER']) File "/home/user/simplechan/simplechan/app/app/blobHandler.py", line 35, in verify verify_image_res = self.verify_image() File "/home/user/simplechan/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 "/home/user/simplechan/simplechan/app/app/blobHandler.py", line 202, in save_tmp_image_and_return_img_size self.blob_file.save( savepath_tmp ) File "/home/user/simplechan/simplechan/venv/lib/python2.7/site-packages/werkzeug/datastructures.py", line 2725, in save dst = open(dst, 'wb') IOError: [Errno 2] No such file or directory: '/user/home/simplechan/simplechan/app/app/images/tmp_1518974296579073.gif'

大部分工作已经完成,

  

根据需要更新正确的UPLOAD_PATH,DB_NAME,DB_ROLE和哈希值。

我不知道如何编辑上部,但是如下编辑了appconfig部分的UPLOAD_PATH部分。

#Max content length is 5 MB    MAX_CONTENT_LENGTH=5*1024*1024    #specific to machine    UPLOAD_FOLDER='/root/simplechan/app/app/static/images/'
#change the below values with something unique. keep the {} part somewhere thou$    IP_HASH_STR='iphash{}iphash'    TRIP_HASH_STR = 'triphash{}triphash'    #database name and role you created in postgres    DB_NAME='simplech_db'    DB_ROLE='simplech_role'    #for moderator    SECRET_KEY='secretkeysecretkeysecretkey'

此后,尝试创建线程时,将出现如下错误。

Error : mongodb exception : no variable id in line 24

在GitHub中有一个类似的问题,但是没有答案可以解决问题。我与创建者联系了一段时间,但似乎无法与您联系。如何消除错误并将其规范化?

0 个答案:

没有答案