[INFO] [2023-03-12 07:05:58,125] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:07:34,693] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 169 [INFO] [2023-03-12 07:07:57,994] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-project HTTP/1.1" 200 385 [INFO] [2023-03-12 07:08:13,992] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-project/4 HTTP/1.1" 200 164 [INFO] [2023-03-12 07:08:37,178] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task HTTP/1.1" 200 165 [ERROR] [2023-03-12 07:08:57,319] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 511, in dispatch self.response = self.finalize_response(request, response, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 423, in finalize_response assert isinstance(response, HttpResponseBase), ( AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from the view, but received a `` [ERROR] [2023-03-12 07:08:57,320] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task/3 HTTP/1.1" 500 79736 [INFO] [2023-03-12 07:09:16,836] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15 [INFO] [2023-03-12 07:16:05,868] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:16:06,164] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:29:10,155] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:29:10,457] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:29:16,438] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15 [INFO] [2023-03-12 07:30:18,657] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:30:18,890] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:33:59,054] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:33:59,301] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:34:02,913] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15 [INFO] [2023-03-12 07:36:30,467] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:36:30,795] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [ERROR] [2023-03-12 07:36:33,805] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 36, in post with open("annote/data_dictionary.json") as file: FileNotFoundError: [Errno 2] No such file or directory: 'annote/data_dictionary.json' [ERROR] [2023-03-12 07:36:33,806] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 94787 [INFO] [2023-03-12 07:36:57,781] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:36:57,959] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [ERROR] [2023-03-12 07:37:01,601] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 36, in post with open("../annote/data_dictionary.json") as file: FileNotFoundError: [Errno 2] No such file or directory: '../annote/data_dictionary.json' [ERROR] [2023-03-12 07:37:01,602] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 94802 [INFO] [2023-03-12 07:37:26,907] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:37:27,169] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:37:29,904] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15 [INFO] [2023-03-12 07:39:02,789] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:39:02,994] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:39:55,415] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py changed, reloading. [INFO] [2023-03-12 07:39:55,671] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:40:15,383] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/datatype/extract.py changed, reloading. [INFO] [2023-03-12 07:40:15,724] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:40:53,433] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:41:06,818] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/purpose/predict.py changed, reloading. [INFO] [2023-03-12 07:41:07,170] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:41:32,874] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [ERROR] [2023-03-12 07:41:37,705] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 41, in post data_type_list, purpose_list = annotate(source, lattice) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py", line 80, in annotate params = load_json('params.json') File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/utils.py", line 115, in load_json with open(json_file, 'r') as load_f: FileNotFoundError: [Errno 2] No such file or directory: 'params.json' [ERROR] [2023-03-12 07:41:37,707] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 114707 [INFO] [2023-03-12 07:42:01,734] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py changed, reloading. [INFO] [2023-03-12 07:42:02,038] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [ERROR] [2023-03-12 07:42:09,432] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 41, in post data_type_list, purpose_list = annotate(source, lattice) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py", line 83, in annotate purpose_list = predict(source, args) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/purpose/predict.py", line 186, in predict model.load_state_dict(torch.load(output_dir, map_location=device)) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/torch/serialization.py", line 699, in load with _open_file_like(f, 'rb') as opened_file: File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/torch/serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/torch/serialization.py", line 211, in __init__ super(_open_file, self).__init__(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: 'purpose/saved_models/model.bin' [ERROR] [2023-03-12 07:42:09,433] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 142875 [INFO] [2023-03-12 07:43:15,463] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:43:55,261] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15 [INFO] [2023-03-12 07:44:38,314] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15 [INFO] [2023-03-12 07:52:53,796] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:52:54,181] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:57:03,819] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:57:04,212] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:57:53,582] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 07:57:53,863] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 07:58:36,930] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15327 [ERROR] [2023-03-12 08:03:35,222] [taskview.py:33] [taskview:post] - 任务已执行完成,不能重复执行 [INFO] [2023-03-12 08:04:07,066] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337 [INFO] [2023-03-12 08:04:11,729] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15376 [INFO] [2023-03-12 08:04:53,172] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337 [ERROR] [2023-03-12 08:04:57,690] [taskview.py:33] [taskview:post] - 任务已执行完成,不能重复执行 [INFO] [2023-03-12 08:05:29,640] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 08:05:30,135] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 08:06:11,589] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15410 [INFO] [2023-03-12 08:06:36,400] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading. [INFO] [2023-03-12 08:06:36,857] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [ERROR] [2023-03-12 08:06:40,457] [taskview.py:33] [taskview:post] - 任务已执行完成,不能重复执行 [ERROR] [2023-03-12 08:06:40,458] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3 [ERROR] [2023-03-12 08:06:40,458] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 42 [INFO] [2023-03-12 08:08:39,553] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 08:08:52,368] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337 [INFO] [2023-03-12 08:11:56,617] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337 [INFO] [2023-03-12 08:15:42,736] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337 [INFO] [2023-03-12 08:19:21,383] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337 [INFO] [2023-03-12 08:25:37,962] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 08:25:56,176] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337 [INFO] [2023-03-12 08:30:29,589] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 09:01:12,022] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [ERROR] [2023-03-12 09:01:23,438] [projectlistview.py:33] [projectlistview:post] - 项目上传失败 [ERROR] [2023-03-12 09:01:23,439] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-project [ERROR] [2023-03-12 09:01:23,440] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-project HTTP/1.1" 500 18 [INFO] [2023-03-12 09:02:06,403] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-project HTTP/1.1" 200 243 [INFO] [2023-03-12 09:02:10,644] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-project HTTP/1.1" 200 129 [INFO] [2023-03-12 09:02:19,584] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-project/1 HTTP/1.1" 200 172 [INFO] [2023-03-12 09:02:31,937] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task HTTP/1.1" 200 165 [INFO] [2023-03-12 09:02:35,199] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 169 [INFO] [2023-03-12 09:03:26,924] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task/1 HTTP/1.1" 200 117 [ERROR] [2023-03-12 09:04:02,778] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/1 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 49, in post data_type_list, purpose_list = annotate(source, lattice) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py", line 82, in annotate data_type_list = extract_data_type(source, lattices, args) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/datatype/extract.py", line 162, in extract_data_type func_content_dict = split_file_by_func(file_name) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/utils.py", line 95, in split_file_by_func content = file.read() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 123: invalid start byte [ERROR] [2023-03-12 09:04:02,779] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/1 HTTP/1.1" 500 187305 [INFO] [2023-03-12 09:06:58,904] [basehttp.py:161] [basehttp:log_message] - "PUT /api/retrieval-project/1 HTTP/1.1" 200 15 [ERROR] [2023-03-12 09:08:39,500] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/1 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 49, in post data_type_list, purpose_list = annotate(source, lattice) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py", line 82, in annotate data_type_list = extract_data_type(source, lattices, args) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/datatype/extract.py", line 162, in extract_data_type func_content_dict = split_file_by_func(file_name) File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/utils.py", line 95, in split_file_by_func content = file.read() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 123: invalid start byte [ERROR] [2023-03-12 09:08:39,501] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/1 HTTP/1.1" 500 187303 [INFO] [2023-03-12 09:09:56,226] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/project/views/projectview.py changed, reloading. [INFO] [2023-03-12 09:09:56,642] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 09:10:01,095] [basehttp.py:161] [basehttp:log_message] - "PUT /api/retrieval-project/1 HTTP/1.1" 200 15 [INFO] [2023-03-12 09:10:40,466] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/1 HTTP/1.1" 200 15327 [ERROR] [2023-03-12 09:10:48,584] [taskview.py:34] [taskview:post] - 任务已执行完成,不能重复执行 [ERROR] [2023-03-12 09:10:48,585] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/1 [ERROR] [2023-03-12 09:10:48,585] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/1 HTTP/1.1" 500 42 [INFO] [2023-03-12 09:10:56,043] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task/1 HTTP/1.1" 200 17721 [INFO] [2023-03-12 09:13:34,485] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/datatype/extract.py changed, reloading. [INFO] [2023-03-12 09:13:34,873] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 09:14:27,260] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/purpose/predict.py changed, reloading. [INFO] [2023-03-12 09:14:27,670] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 11:37:15,223] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/PrivacyRetrieval/settings.py changed, reloading. [INFO] [2023-03-12 13:24:27,965] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2023-03-12 13:25:11,293] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-project HTTP/1.1" 200 261 [INFO] [2023-03-13 15:51:23,799] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/PrivacyRetrieval/settings.py changed, reloading.