Publication date: Jul 04, 2026
ValueError
ValueError: max() arg is an empty sequence
Traceback (most recent call last)
-
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 1536, in
__call__) -> cabc. Iterable[bytes]:"""The WSGI server calls the Flask application object as theWSGI application. This calls :meth:'wsgi_app', which can bewrapped to apply middleware."""return self. wsgi_app(environ, start_response) -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 1514, in
wsgi_apptry:ctx. push()response = self. full_dispatch_request()except Exception as e:error = eresponse = self. handle_exception(e)except: # noqa: B001error = sys. exc_info()[1]raisereturn response(environ, start_response)finally: -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 1511, in
wsgi_appctx = self. request_context(environ)error: BaseException | None = Nonetry:try:ctx. push()response = self. full_dispatch_request()except Exception as e:error = eresponse = self. handle_exception(e)except: # noqa: B001error = sys. exc_info()[1] -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 919, in
full_dispatch_requestrequest_started. send(self, _async_wrapper=self. ensure_sync)rv = self. preprocess_request()if rv is None:rv = self. dispatch_request()except Exception as e:rv = self. handle_user_exception(e)return self. finalize_request(rv)def finalize_request(self,rv: ft. ResponseReturnValue | HTTPException, -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 917, in
full_dispatch_requesttry:request_started. send(self, _async_wrapper=self. ensure_sync)rv = self. preprocess_request()if rv is None:rv = self. dispatch_request()except Exception as e:rv = self. handle_user_exception(e)return self. finalize_request(rv)def finalize_request( -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 902, in
dispatch_requestand req. method == "OPTIONS"):return self. make_default_options_response()# otherwise dispatch to the handler for that endpointview_args: dict[str, t. Any] = req. view_args # type: ignore[assignment]return self. ensure_sync(self. view_functions[rule. endpoint])(**view_args) # type: ignore[no-any-return]def full_dispatch_request(self) -> Response:"""Dispatches the request and on top of that performs requestpre and postprocessing as well as HTTP exception catching anderror handling. -
File “/nlpapps/app. py”, line 462, in
process_summarytextsentence_list = nltk. sent_tokenize(article_text)# Find the weighted frequency
maximum_frequncy = max(word_frequencies. values())for word in word_frequencies. keys():word_frequencies[word] = (word_frequencies[word]/maximum_frequncy)# Calculate sentence scores
ValueError: max() arg is an empty sequence
This is the Copy/Paste friendly version of the traceback.
Console Locked
The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.
PIN:
<!– Traceback (most recent call last): File "/usr/local/lib/python3. 9/site-packages/flask/app. py", line 1536, in __call__ return self. wsgi_app(environ, start_response) File "/usr/local/lib/python3. 9/site-packages/flask/app. py", line 1514, in wsgi_app response = self. handle_exception(e) File "/usr/local/lib/python3. 9/site-packages/flask/app. py", line 1511, in wsgi_app response = self. full_dispatch_request() File "/usr/local/lib/python3. 9/site-packages/flask/app. py", line 919, in full_dispatch_request rv = self. handle_user_exception(e) File "/usr/local/lib/python3. 9/site-packages/flask/app. py", line 917, in full_dispatch_request rv = self. dispatch_request() File "/usr/local/lib/python3. 9/site-packages/flask/app. py", line 902, in dispatch_request return self. ensure_sync(self. view_functions[rule. endpoint])(**view_args) # type: ignore[no-any-return] File "/nlpapps/app. py", line 462, in process_summarytext maximum_frequncy = max(word_frequencies. values())
ValueError: max() arg is an empty sequence –>
Semantics
| Type | Source | Name |
|---|---|---|
| disease | MESH | long Covid |