Re: Getting wx._core.wxAssertionError

"Ishan Buxy (IIT Madras - CE17B117)" <[email protected]> Sat, 11 Dec 2021 00:48:41 +0530
Newsgroups gmane.comp.python.wxpython
Message-ID <CAA=GByZy=VCbr9Pqi7duFxHVATN+4tbe21Cop9mrxwE9Z75cpw@mail.gmail.com>
--00000000000000776b05d2cf987b
Content-Type: text/plain; charset="UTF-8"

Hi Tim

Thanks for the revert. I'll reach out to them.

Regards
Ishan

On Sat, 11 Dec, 2021, 12:47 am Tim Roberts, <[email protected]> wrote:

> Ishan Buxy ce17b117 wrote:
>
>
> I'm using GRASS GIS 7.8 <https://grass.osgeo.org/>, an application
> created using wxPython.
>
> Every time I try to open a dataset using this application, I get the
> following error:
> ...
>   File "C:\Program Files\GRASS GIS 7.8\gui\wxpython\icons\icon.py", line
> 96, in GetBitmap
>     image = wx.Image(name=self.imagepath)
> wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(0, 0), "C") ==
> 0" failed at
> D:\src\osgeo4w\src\wxwidgets\wxwidgets-3.1.5-0df1d81acd6f1be8624022f8eecb51679008ca40\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!
> OnInit returned false, exiting...
>
> You will need to contact the GRASS GIS people about this.  They have a
> Python installation embedded in their release.  All the pieces should be
> playing well together.  Perhaps you're using a code page they haven't
> encountered before.  They have their own mailing lists, and a Twitter
> feed.  This shouldn't be a hard fix (just one line), but I don't want to
> advise you without getting a comment from the authors.
>
> https://grass.osgeo.org/about/community/
>
> --
> Tim Roberts, [email protected]
> Providenza & Boekelheide, Inc.
>
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/wxpython-users/180959e2-05d1-9091-01e9-5eff9280da08%40probo.com
> <https://groups.google.com/d/msgid/wxpython-users/180959e2-05d1-9091-01e9-5eff9280da08%40probo.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/CAA%3DGByZy%3DVCbr9Pqi7duFxHVATN%2B4tbe21Cop9mrxwE9Z75cpw%40mail.gmail.com.

--00000000000000776b05d2cf987b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hi Tim<div dir=3D"auto"><br></div><div dir=3D"auto">Thank=
s for the revert. I&#39;ll reach out to them.</div><div dir=3D"auto"><br></=
div><div dir=3D"auto">Regards</div><div dir=3D"auto">Ishan</div></div><br><=
div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, 11 =
Dec, 2021, 12:47 am Tim Roberts, &lt;<a href=3D"mailto:[email protected]">timr=
@probo.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div>
    <div>Ishan Buxy ce17b117 wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <div><br>
      </div>
      <div>I&#39;m using <a href=3D"https://grass.osgeo.org/" target=3D"_bl=
ank" rel=3D"noreferrer">GRASS GIS 7.8</a>, an application
        created using wxPython.</div>
      <div><br>
      </div>
      <div>Every time I try to open a dataset using this application, I
        get the following error:<br>
        ...<br>
      </div>
      <div>=C2=A0 File &quot;C:\Program Files\GRASS GIS
        7.8\gui\wxpython\icons\icon.py&quot;, line 96, in GetBitmap<br>
        =C2=A0 =C2=A0 image =3D wx.Image(name=3Dself.imagepath)<br>
        wx._core.wxAssertionError: C++ assertion &quot;strcmp(setlocale(0,
        0), &quot;C&quot;) =3D=3D 0&quot; failed at
D:\src\osgeo4w\src\wxwidgets\wxwidgets-3.1.5-0df1d81acd6f1be8624022f8eecb51=
679008ca40\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.<br>
        Things are going to break, please only change locale by creating
        wxLocale objects to avoid this!<br>
        OnInit returned false, exiting...</div>
    </blockquote>
    <p>You will need to contact the GRASS GIS people about this.=C2=A0 They
      have a Python installation embedded in their release.=C2=A0 All the
      pieces should be playing well together.=C2=A0 Perhaps you&#39;re usin=
g a
      code page they haven&#39;t encountered before.=C2=A0 They have their =
own
      mailing lists, and a Twitter feed.=C2=A0 This shouldn&#39;t be a hard=
 fix
      (just one line), but I don&#39;t want to advise you without getting a
      comment from the authors.<br>
    </p>
    <p><a href=3D"https://grass.osgeo.org/about/community/" target=3D"_blan=
k" rel=3D"noreferrer">https://grass.osgeo.org/about/community/</a><br>
    </p>
    <pre cols=3D"72">--=20
Tim Roberts, <a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"nor=
eferrer">[email protected]</a>
Providenza &amp; Boekelheide, Inc.
</pre>
  </div>


<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-users&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]" targ=
et=3D"_blank" rel=3D"noreferrer">[email protected]=
m</a>.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/wxpython-users/180959e2-05d1-9091-01e9-5eff9280da08%40probo.com?=
utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank" rel=3D"norefe=
rrer">https://groups.google.com/d/msgid/wxpython-users/180959e2-05d1-9091-0=
1e9-5eff9280da08%40probo.com</a>.<br>
</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wxpy=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/wxpython-users/CAA%3DGByZy%3DVCbr9Pqi7duFxHVATN%2B4tbe21Cop9mrxw=
E9Z75cpw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://g=
roups.google.com/d/msgid/wxpython-users/CAA%3DGByZy%3DVCbr9Pqi7duFxHVATN%2B=
4tbe21Cop9mrxwE9Z75cpw%40mail.gmail.com</a>.<br />

--00000000000000776b05d2cf987b--