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

Cannot start application - possible problem with locale #28

Open
adriatic-mne opened this issue Nov 30, 2019 · 1 comment
Open

Cannot start application - possible problem with locale #28

adriatic-mne opened this issue Nov 30, 2019 · 1 comment

Comments

@adriatic-mne
Copy link

I tried using the application on Win 10 system with IBM Notes 9.0.1 and Outlook 365 (v. 1908).
Immediately after running the app, I get "See the log file" error. In the log I find this:
Traceback (most recent call last):
File "nsf2x.py", line 75, in
File "C:\Logiciel\WinPython-32bit-3.4.4.4Qt5\python-3.4.4\lib\gettext.py", line 400, in translation
File "C:\Logiciel\WinPython-32bit-3.4.4.4Qt5\python-3.4.4\lib\gettext.py", line 372, in find
File "C:\Logiciel\WinPython-32bit-3.4.4.4Qt5\python-3.4.4\lib\gettext.py", line 114, in _expand_lang
File "C:\Logiciel\WinPython-32bit-3.4.4.4Qt5\python-3.4.4\lib\locale.py", line 390, in normalize
AttributeError: 'NoneType' object has no attribute 'lower'

In source file nsf2x.py I found that 75th line is read of locale/language:
lang = locale.windows_locale.get(ctypes.windll.kernel32.GetUserDefaultLCID())

I use the system with Serbian Latin keyboard, but locale is English (United States) (at least that's what I find in Language for non-unicode programs setting).

Can I fix the lang variable to English or en-us in order to prevent this error and then recompile? Or if you have any other idea, they are most welcome.

@mladenperisic
Copy link

I had the same problem. The problem is setting of your Regional Format in Windows settings. In Windows Search type "set regional format" and press Enter. In Regional Format field choose English (United States) and the program will run correctly.

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