question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem to set 'pt' language

See original GitHub issue

SpellChecker is working for any supported languages, except for Portuguese (‘pt’). When I try using spell = SpellChecker('pt'), an error message appears saying:

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 587200: character maps to <undefined>

I’ve also tried to load the dictionary the other way around:

spell = SpellChecker(language=None) spell.word_frequency.load_dictionary('path/to/pt.json.gz', encoding=u'utf-8')

The same error occurs.

I’m using Python 3.6.8 in Windows 10.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lrthoritacommented, Sep 3, 2019

@barrust, I tested the branch you asked. It is working.

0reactions
lrthoritacommented, Sep 3, 2019

Hi @barrust! Thanks for answering.

Indeed, it seems this problem occurs only on Windows. However, I tried to debug the problem and changed that line I’ve suggested. It worked.

I’ll test it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on setting language to Portuguese · Issue #10002 - GitHub
Error on setting language to Portuguese #10002​​ QGC Language should change from English to Portuguese when set on Application Settings.
Read more >
Portuguese Brazil and Portuguese P… - Apple Developer
When I launch app with Portuguese Brazil (PT-BR) language as a system language, then the app is localized with Portuguese Portugal instead of...
Read more >
[Resolved] Change code in Permalink from pt-br to pt - WPML
Problem: We defined the language and were almost done, but we noticed that we made a mistake with the code of the language....
Read more >
If you have an application localized in pt-br and pt-pt, what ...
Q1: How to I determine the predominant languages for a specified meta-language? I need a solution that will include at least Portuguese, English...
Read more >
Lenovo Smart clock - unable to change "display language" on ...
Select the Assistant tab and change the language from there. Then reset the clock and set it up using the Google account you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found