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

AttributeError: Java package 'kr.lucypark.okt' is not valid #421

Open
CherinaS opened this issue Mar 3, 2023 · 2 comments
Open

AttributeError: Java package 'kr.lucypark.okt' is not valid #421

CherinaS opened this issue Mar 3, 2023 · 2 comments

Comments

@CherinaS
Copy link

CherinaS commented Mar 3, 2023

Window Prompt에서 konlpy를 사용하는데

from konlpy.tag import Twitter
twitter = Twitter()

에서 AttributeError: Java package 'kr.lucypark.okt' is not valid와 같은 오류가 나타납니다.

JPype, JDK, 환경변수 설정, konlpy재설치까지 했는데 계속 오류가 나타납니다

@CherinaS
Copy link
Author

CherinaS commented Mar 3, 2023

#396 (comment)
여기에 나타나있는 조언을 참고하여 오류를 해결하려했지만 실패했습니다

JDK 19, 윈도우, python 3.8을 사용하고있습니다

javadir : C:\Users\username\AppData\Local\Programs\Python\Python38\Lib\site-packages\konlpy\java
os.sep :
classpath: C:\Users\username\AppData\Local\Programs\Python\Python38\Lib\site-packages\konlpy\java\open-korean-text-2.1.0.jar

classpath도 잘 설정이 된 것 같은데 어떤 부분이 문제일까요?

@starwinde
Copy link

해결 방법을 찾기위해 몇번 컴퓨터를 초기화 했지만 방법을 찾을수 없었습니다

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