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: module 'iso639' has no attribute 'Language' #1

Open
ZFTurbo opened this issue Jan 20, 2024 · 1 comment
Open

AttributeError: module 'iso639' has no attribute 'Language' #1

ZFTurbo opened this issue Jan 20, 2024 · 1 comment

Comments

@ZFTurbo
Copy link

ZFTurbo commented Jan 20, 2024

Hello. I tried to ise the code to compute metrics but has a problem:

On this line:

languages = [lg if lg == "cjk" else iso639.Language.match(lg).part1 for lg in languages]

I have error:

AttributeError: module 'iso639' has no attribute 'Language'
@cifkao
Copy link
Collaborator

cifkao commented Mar 12, 2024

Thanks for reporting this. I'm not able to reproduce the issue. Can you please make sure you have python-iso639 installed (there are other packages called iso639...) and share the version?

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