(py39) daniellee@Danielui-Macmini ~/Develop/test_konlpy_conda python3
Python 3.9.7 (default, Sep 16 2021, 08:50:36)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from konlpy.tag import Kkma
>>> kkma = Kkma()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/daniellee/opt/anaconda3/envs/py39/lib/python3.9/site-packages/konlpy/tag/_kkma.py", line 95, in __init__
jvm.init_jvm(jvmpath, max_heap_size)
File "/Users/daniellee/opt/anaconda3/envs/py39/lib/python3.9/site-packages/konlpy/jvm.py", line 64, in init_jvm
jpype.startJVM(jvmpath, '-Djava.class.path=%s' % classpath,
File "/Users/daniellee/opt/anaconda3/envs/py39/lib/python3.9/site-packages/jpype/_core.py", line 226, in startJVM
_jpype.startup(jvmpath, tuple(args),
OSError: [Errno 0] JVM DLL not found: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/lib/libjli.dylib
python
Python 3.8.8 (default, Apr 13 2021, 12:59:45)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
from konlpy.tag import Kkma
kkma = Kkma()
Traceback (most recent call last):
File "", line 1, in
File "/Users/daniellee/opt/anaconda3/lib/python3.8/site-packages/konlpy/tag/_kkma.py", line 95, in init
jvm.init_jvm(jvmpath, max_heap_size)
File "/Users/daniellee/opt/anaconda3/lib/python3.8/site-packages/konlpy/jvm.py", line 64, in init_jvm
jpype.startJVM(jvmpath, '-Djava.class.path=%s' % classpath,
File "/Users/daniellee/opt/anaconda3/lib/python3.8/site-packages/jpype/_core.py", line 226, in startJVM
_jpype.startup(jvmpath, tuple(args),
OSError: [Errno 0] JVM DLL not found: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/lib/libjli.dylib
brew python
Python 3.8.2 (default, Dec 21 2020, 15:06:03)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
jvm error in conda python3
m1 silicon에서 konlpy jvm 문제 발생, #4
conda로 python3 설치 후 재현해보니 동일한 오류 발생
python3.9, python3.8 모두 발생
일단은 clang version이 다름
정확한 원인 혹은 해결 방법에 대해 확인 필요
conda python test
python Python 3.8.8 (default, Apr 13 2021, 12:59:45) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information.