Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Assert at runtime (wxLocale)

I'm trying to use the python source code.
I have
- Windows 7
- Python 2.7
- wxPython3.0-win32-3.0.2.0-py27
- Installed the requirements for Twine 1.4.2

When I start

python app.py

Traceback (most recent call last):
File "app.py", line 332, in <module>
app = App()
File "app.py", line 54, in __init__
self.newStory()
File "app.py", line 58, in newStory
s = StoryFrame(parent = None, app = self)
File "D:\storyframe.py", line 43, in _
init__
self.storyPanel = StoryPanel(self, app)
File "D:\storypanel.py", line 59, in _
init__
self.newWidget(title = title, text = self.parent.defaultTextForPassage(titl
), quietly = True)
File "D:\storypanel.py", line 100, in
ewWidget
new = PassageWidget(self, self.app, title = title, text = text, tags = tags
pos = pos)
File "D:\passagewidget.py", line 25, i
__init__
self.brokenEmblem = wx.Bitmap(self.app.iconsPath + 'brokenemblem.png')
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\_gdi.py", line 648, in __in
t__
_gdi_.Bitmap_swiginit(self,_gdi_.new_Bitmap(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C")
= 0" failed at ..\..\src\common\intl.cpp(1449) in wxLocale::GetInfo(): You prob
bly called setlocale() directly instead of using wxLocale and now there is a mi
match between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objec
s to avoid this
Sign In or Register to comment.