Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: startJVM() #419

Open
susie-kim opened this issue Jan 26, 2023 · 1 comment
Open

TypeError: startJVM() #419

susie-kim opened this issue Jan 26, 2023 · 1 comment

Comments

@susie-kim
Copy link

susie-kim commented Jan 26, 2023

그동안 문제 없이 잘 썼는데 쓰던 스크립트에서 갑자기 오류가 발생하기 시작했습니다.

TypeError: startJVM() got an unexpected keyword argument 'classpath'

R에서 reticulate을 사용하여 파이썬 스크립트를 사용하고 있어서 R에서 나오는 오류 메시지는 아래와 같습니다. 터미널에서 파이썬 사용해도 여전히 동일한 오류가 발생합니다.
Error in py_call_impl: TypeError: startJVM() got an unexpected keyword argument 'classpath'

@ksclown
Copy link

ksclown commented Dec 12, 2023

안녕하세요. 늦었지만 작성해 봅니다.

라이브러리konlpy에서 jvm.py 파일 찾아서 아래처럼 코드 수정해보세요.
아마 jpype 버전이 문제로 인한 충돌인 것 같습니다.
저도 이것저것 하다가 결국 이걸로 해결했습니다.

if jvmpath: jpype.startJVM(jvmpath, '-Dfile.encoding=UTF8', '-ea', '-Xmx{}m'.format(max_heap_size), '-Djava.class.path=' + ':'.join(classpath) #classpath=classpath, #convertStrings=True )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants