adb014 / nsf2x

A Lotus Notes NSF to EML, MBOX and PST converter
GNU General Public License v2.0
83 stars 25 forks source link

Cannot start application - possible problem with locale #28

Open adriatic-mne opened 4 years ago

adriatic-mne commented 4 years ago

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 commented 4 years ago

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.