How can we have java environment in Cloud Function along with Python 3. Please install java to use language-tool-python.Ĭan anyone please provide a solution how to use LanguageTool from server less functions? ModuleNotFoundError: No java install detected. Please install java to use language-tool-python.') Raise ModuleNotFoundError('No java install detected. Line 236, in load_user_function _module(main_module) File "", line 728, in exec_module File "", line 219, in _call_with_frames_removedįile "/user_code/main.py", line 10, in from libraries.unknown_word import word_meaning File "/user_code/libraries/unknown_word.py", line 18, in tool = language_tool_python.LanguageTool('en-IN')įile "/env/local/lib/python3.7/site-packages/language_tool_python/server.py", line 46, in _init_ self._start_server_on_free_port() File "/env/local/lib/python3.7/site-packages/language_tool_python/server.py", line 183, in _start_server_on_free_port self._start_local_server()įile "/env/local/lib/python3.7/site-packages/language_tool_python/server.py", line 193, in _start_local_server download_lt() File "/env/local/lib/python3.7/site-packages/language_tool_python/download_lt.py", line 144, in download_lt confirm_java_compatibility()įile "/env/local/lib/python3.7/site-packages/language_tool_python/download_lt.py", line 75, in confirm_java_compatibility Did you list all required modules in requirements.txt? Detailed stack trace: Traceback (most recent call last):įile "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker_v2.py", line 359, in check_or_load_user_function _function_handler.load_user_function()įile "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker_v2.py", Error message: Code in file main.py can't be loaded. I'm getting the following error message - Function failed on loading user code. Is there a way that I can manually download the 'en-Us' server, copy it to the remote server and run languagetoolpython from there without connecting to the internet when i run the languagetoolpython. In the requirement.txt we have - language-tool-python=2.4.5 I can do the pip install languagetoolpython without problems but can not download the server during runtime. There is a lot of phrases that LanguageTool need to ignore and those phrases contain underscores, so they look like this: CCCCDDDD. Tool = language_tool_python.LanguageTool('en-IN') Newest Active Filter 0 votes 0 answers 33 views Using underscore in phrase in LanguageTool I have a LanguageTool embedded in my Java application. I'm using the language_tool_python library in the cloud function # install and import for grammar accuracy Please install java to use language-tool-python. I could use the library using my local virtual environment where I have java installed.īut when I'm trying to deploy it in Cloud Function, I'm getting ModuleNotFoundError: No java install detected. How you use language tool in Google Cloud Function? I'm trying to deploy in GCP Cloud Function with runtime Python 3.7.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |