Error - Unable to connect to dataset defined in project default.proj. Please check settings

17 views
Skip to first unread message

Surli

unread,
Jun 13, 2024, 3:21:00 AM6/13/24
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.

Grant Paton-Simpson

unread,
Jun 14, 2024, 5:53:25 PM6/14/24
to sofasta...@googlegroups.com

Hi Surli,

Sorry to hear there is a problem. I don;t have access to a Windows machine any more so I can't easily test this let along build a new release if a fix is found.

The error message about the dataset connection is misleading (my fault) - what is really going on seems to be related to the locale issue. What language or locale is SOFA being run on? And does anyone else have the same problem? Or are others able to successfully run SOFA with that locale setting?

Sorry for the limited reply - I haven't worked on SOFA for several years and I'm making a semi-replacement which is different from the ground up.

All the best,
Grant

--

---
You received this message because you are subscribed to the Google Groups "sofastatistics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sofastatistic...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sofastatistics/b89976d1-9054-4dcf-a7db-d321ae025413n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages