Symptom
Below error can be seen from docker file diagnostic information when nltk.downloader module is used in the docker image:
[36mINFO[0m[0118] Running: [/bin/sh -c python3.9 -m nltk.downloader all]
/usr/local/lib/python3.9/runpy.py:127: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
[nltk_data] Error loading all: <urlopen error [SSL:
[nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed:
[nltk_data] unable to get local issuer certificate (_ssl.c:1123)>
Error installing package. Retry? [n/y/e]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/vflow/.local/lib/python3.9/site-packages/nltk/downloader.py", line 2540, in <module>
rv = downloader.download(
File "/home/vflow/.local/lib/python3.9/site-packages/nltk/downloader.py", line 788, in download
choice = input().strip()
EOFError: EOF when reading a line
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1
2022-06-03 11:56:41.035962|+0000|ERROR|kaniko build failed: exit status 1||kaniko_build|1|main|main.go(72)
Read more...
Environment
SAP Data Intelligence 2209.14.15 - Cloud Edition
Product
Keywords
DIBUGS-14388, DIBUGS14388, 14388, nltk, certificate, urlopen , KBA , CA-DI , Data Intelligence , CA-DI-CP-PE , Pipeline Engine , CA-DI-CP , Core Platform , CA-DI-CP-PE-SCH , Pipeline Engine - Scheduling , CA-DI-CP-SEC , Security Infrastructure , CA-DI-CP-CM , Connection Management , Known Error
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview