You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to use the package, but unfortunately I am encountering an error when importing it.
When calling the "from .lexicon import Lex", there's an error in the LOCALE setting.
LOCALE = locale.getdefaultlocale()[0].replace("_", "-"), but my macOS returns (None, 'UTF8') to the "locale.getdefaultlocale()" call. The error is as follows:
"AttributeError: 'NoneType' object has no attribute 'replace'"
I see in the documentation of "Client" that it has the option to be None, so I think this was considered in the client.py but not on the lexicon.
The fix should be easy, it think: LOCALE = locale.getdefaultlocale()[0].replace("_", "-") if locale.getdefaultlocale()[0] else None
The text was updated successfully, but these errors were encountered:
@LuiFerreiraD I not 100% sure, but it might be an issue with not being able to access environment variables, or some other means of determining your system's locale. I'll add a check for this in the next day or so though, thanks for reporting!
Hi,
I am trying to use the package, but unfortunately I am encountering an error when importing it.
When calling the "from .lexicon import Lex", there's an error in the LOCALE setting.
LOCALE = locale.getdefaultlocale()[0].replace("_", "-"), but my macOS returns (None, 'UTF8') to the "locale.getdefaultlocale()" call. The error is as follows:
"AttributeError: 'NoneType' object has no attribute 'replace'"
I see in the documentation of "Client" that it has the option to be None, so I think this was considered in the client.py but not on the lexicon.
The fix should be easy, it think: LOCALE = locale.getdefaultlocale()[0].replace("_", "-") if locale.getdefaultlocale()[0] else None
The text was updated successfully, but these errors were encountered: