Surli
unread,Jun 13, 2024, 3:21:00 AM6/13/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sofastatistics
Hi, i have installed SOVA Version 1.5.4 on a windows 10.
When i try run statistic, "Unable to connect to dataset defined in project default.proj. Please check settings" always appears. after I checked the output.txt file there was this error
Traceback (most recent call last):
File "C:\Program Files (x86)\sofastats\home.py", line 1104, in on_stats_click
dlg = stats_select.DlgStatsSelect(self.active_proj)
File "C:\Program Files (x86)\sofastats\stats_select.py", line 431, in __init__
bmp = lib.GuiLib.get_bmp(bmp_pth, wx.BITMAP_TYPE_PNG)
File "C:\Program Files (x86)\sofastats\lib.py", line 1129, in get_bmp
img = wx.Image(str(src_img_path), bmp_type)
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at ..\..\src\common\intl.cpp(1694) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\sofastats\home.py", line 1111, in on_stats_click
raise Exception(f'{msg}.\nCaused by error: {traceback.format_exc()}')
Exception: Unable to connect to data as defined in project tes.proj. Please check your settings..
Caused by error: Traceback (most recent call last):
File "C:\Program Files (x86)\sofastats\home.py", line 1104, in on_stats_click
dlg = stats_select.DlgStatsSelect(self.active_proj)
File "C:\Program Files (x86)\sofastats\stats_select.py", line 431, in __init__
bmp = lib.GuiLib.get_bmp(bmp_pth, wx.BITMAP_TYPE_PNG)
File "C:\Program Files (x86)\sofastats\lib.py", line 1129, in get_bmp
img = wx.Image(str(src_img_path), bmp_type)
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at ..\..\src\common\intl.cpp(1694) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
This only happens if I click statistics.
Any pointers towards a solution? Thanks in advance.